android

getting Null pointer exception

Hi I am getting this message on emulator when I run my android project: The application MediaPlayerDemo_Video.java (process com.android.MediaPlayerDemo_Video) has stopped unexpectedly. Please try again I am trying to run the MediaPlayerDemo_Video.java given in ApiDemos in the Samples given on developer.android.com. The code is ...

alert in embedded webview

When embedding WebView in an application and loading html-pages in it, JavaScripts alert() do not work.Give me an example pls ...

In an Android TextView, is it possible to insert paragraphs?

Below is an example of the type of problem that I have. I have data in a pojo that I need to display in a textview... the data has pseudo code that denotes each paragraph with [p] I would like to somehow parse the [p]'s into paragraphs when they are displayed in the textview. Can this be done? Is there something I can substitute for the...

Android: How to enable my button back if EditText is not empty?

I have 2 EditText01 and 02. My button will be disable once the activity is started. And when these two EditText box got text inside, the button have to be enabled back. However my button is always disable and can't enable back using, button.setEnabled(true);. Can anyone help me with this? Thx... :) summit.setEnabled(false); buttonEnab...

How do I make an app/service for virtual/soft buttons for (Home, menu,Back, Search) always on top?

I want make an app/service that looks like (Nexus One touch buttons) for the navigation keys (Home, menu,Back, Search) The buttons should always stay on top and send the command to the actually app thats running. Someone have ideas and sample codes how to do that? Ken ...

Display a ListView on a Home Widget with AppWidgetProvider

Hi all, I would like to create a Home Widget containing a ListView, but I don't know if this is possible and if it is, how to do it. I was using a ListActivity and it was pretty simple, but can't figure out a way to do it using AppWidgetProvider. Thanks for your help ...

Upload/Download images to FTP without bothering the user

Hi, I know a lot of posts have been made in regards to FTP, but none have led me to what I need. I'm trying to upload a picture to a server (currently attempting FTP) but do it without notifying requiring the user to be involved. I want to be able to seamlessly upload/download the image when a certain user action occurs, but I don't wa...

Do we need to launch the virtual device from eclipse every time we want to test our code?

If yes, then is there any other method to make it a bit faster? ...

How to install an application on an Android phone?

I create an android application. I need the check, how my application is working on the device. How to install the application on the android device ? -Thanks in advance ...

Passing ArrayList<String> between tabs

Hi all, I'm not very clear about the Intent object and how to use it to pass data between Activities. In my application I have several tabs between which I want to pass ArrayList. Here is a sample code I plan to use, but I'm missing the part where the main activity catches the Intent and passes it to the new activity on start : 1. myTa...

Show milliseconds with Android Chronometer

I'm looking for a way to make the Chronometer in Android (preferably 1.6 and upwards) show 10ths of a second while counting up. Is it possible to do this? If not, is there a free (and preferably open source) library that does the same? Failing that I'll write my own, but I'd rather use someone else's! ...

android ringing vibration activate/deactivate

hi friends, I have a small problem... i tried searching high and low but couldnt find a way i can activate and deactivate the vibration at the time of incoming calls... The option in the menu --> Settings --> Sounds & Display mentions - PHONE VIBRATE - vibrate phone for incoming calls... i want to activate and deactivate it through co...

Android: How to create custom shape keys on keyboard?

I wonder how could is possible to make custom shape key on android keyboard. To create custom keyboard is relatively easy, but what needs to be done to create new buttons. They also need to respond with all events as normal keyboard. Any ideas where to start? ...

Can we use preferences accress multiple different acvtivities in android?

I save preferences in one activities but not able to get saved preferences in other activity. I can access saved preferences in the same activity but not in other one. It is not giving me any error but always gibing null values in second activity. Below is the code: First Activity: public static final String PREFS_NAME = "MyP...

Android GPS app not closing connection

Hi there, Fairly new to Android, so just trying to work out: I have a simple Maps app that plots a couple of locations. It's a demo for a potentially bigger app later. The one thing I would like to do is make it exit correctly. I want to assume that when a user hits the "Home" or "Back" button on the phone, that they have exited the ap...

HelloWebView Sample: now using SDK 3 and getting killed

Hey Folks, Updated: I have now included the logcat file below. Looking at it it appears I am still having a permission problems (06-05 14:10:36.593) - I am guessing the same problem I am having with SDK 7 Well I was trying to get the HelloWebview example working with SDK 7 with no success (see HelloWebView Sample: java.lang.SecurityE...

How can I update the version of an APK which I did not create myself

I am new to Android development. I am using a x-platform development tool which builds and signs the APK for me. This tool has a bug and it does not generate APK's with the version code I specify, all APK's generated are version 1.0. I would like to unpack the APK, edit the version code, and then resign and repackage it. It was signed u...

How can an Android Service know that its not bound to any Activities

I have an Android Service that I would like to keep running even after the last Activity has been popped off the stack, or the User has chosen to do something else. Essentially the Service is listening for changes on a remote server, and I would like to generate a Notification if and only if an Activity from the app isn't running(or vis...

Webview duplicate HTML problem

Hi all, I load a url over the web containing images (their source is another url). when then view loads the html, it loads it without the images. after few milliseconds, the images come along but then the html is redrawn, and it does so over the previous html, causing it the web view to hold 2 htmls one over the other (very ugly result)....

Emulate back button in multi-view TabActivity

Hi, all I have a TabActivity with several tabs. Each tab corresponds to a specific view, and those views may further switch to other views. For example, one of my tabs displays RSS feed list, after user clicks one of the RSS feed, it will switch to a view displaying a list of articles, and after user clicks one of the titles, a full art...