android

Android: get current location from best available provider

Hi all, I have some Android code that needs to get the best available location QUICKLY, from GPS, network or whatever is available. Accuracy is less important than speed. Getting the best available location is surely a really standard task. Yet I can't find any code to demonstrate it. The Android location code expects you to specify c...

How can I update the album art path using contentResolver?

Hi! I want to update/insert a new image for an album in MediaStore but i can't get it work.. This is my code: public void updateAlbumImage(String path, int albumID) { ContentValues values = new ContentValues(); values.put(MediaStore.Audio.Albums.ALBUM_ART, path); int n = contentResolver.update(MediaStore.Audio.Albums.EXTERNAL_C...

Add newlines to a text resource in Android?

I have a custom Dialog that contains only a TextView to display some text in my application. The documentation lists that only the b, i, u, tt, big, small, sup, sub, and strike tags are supported. I really need to add some newlines for readability. Do I need to change to a more complicated layout, or is there some way to encode newlin...

Which Eclipse for Android ?

Should I use 32-bit Eclipse or 64-bit Eclipse for Android development? Im on a MacBook Pro (Core 2 Duo). Does it matter which version for Android coding? ...

Android Certificate Changed?

I recently formatted my computer and updated to Windows 7. I backed up my keystore and tried to sign my apk with it but it gave me an error that said my certificate expires in 22yrs. which is just shy of what the market requires to upload the apk. So now I am stuck not being able to update my app... How did this happen? Is there a way ...

Can Anyone point me to a Android Market catalog or application list.

I'm up and running in Eclipse, have worked through several tutorials and would like to start developing my first marketable app. Is there anyplace I can find a comprehensive list or catalog of what's available on the Android marketplace? I'd hate to waste a lot of development time building an app that has twelve free versions already a...

how to add item to Spinner's ArrayAdapter?

i had a EditText , a button and a spinner . When click the button , the spinner will add a new item with name you entered in the EditText. But here is the question, my adapter.add() method seems doesn't work...here is my code: public class Spr extends Activity { Button bt1; EditText et; ArrayAdapter<CharSequence> adapter; Spinner spinn...

Set zoom for Webview

I have a WebView and 2 urls to open it it. What I want to do is, when i set a zoom level for 1st url, and then i go to 2nd url, it should also have the same zoom level. Right now, the zoom level resets for both. Thanks, Farha ...

Start application on receiving sms from particular number.

hi there i want to start an application on receiving sms from a particular number. i am trying it with onMessageWaitingIndicatorChanged(boolean mwi){ } method but i m struggling. so, anyone there to help me in detail? Thanks ...

Can I get design doc on Audio Flinger?

Hi I Want to understand the audioflinger and the audio HAL in android 25E. 16. Is there any document on this. Any suggestion is appreciated. Thanks in advance ...

Internal links in WebView

I want to find out when a user clicks an internal link in a url currently opened in webview. How can I do that? Thanks, Farha ...

Filtered ListView not updated

I have a ListView with a custom Adapter that extends ArrayAdapter. It's a ArrayAdapter of Type Artist. Artist is a very small class that has a name and an id. The Artist Class has toString() overridden to return just the name. I have an EditText. The EditText has an TextChangeListener where i call .getFilter().filter(chars, callback...

What is a good android disassember that can produce infomative results

as titled, like function calls, application behavior when running ...

Set focus on a runing Activity

Hi all, I have an Activity that keeps running after the HOME button is pressed (naturally) and of-course the focus is in the home screen, and when the running process ends i need to restore the focus on that activity... in more PC expression, i need to maximize the application ;) Any help is good. thx in advance. ...

Android seekbar widget: no vertical orientation?

I can't believe there is no way to change the orientation of the SeekBar widget. I've been perusing this widget's properties and I can't find anything that allows me to change its orientation to vertical. So, am I missing something obvious? Do I have to write my own implementation of a seekbar to have its thumb slide up/down instead of ...

Using backport-android-bluetooth on Android 1.6

Hi, I'm trying to write an application using Bluetooth on Android 1.6. Since it's not officially supported, I found the backport of android.bluetooth API ( http://code.google.com/p/backport-android-bluetooth ). But when I deploy the sample chat application (modified for backport) LogCat gives me the error below: My question is, how I c...

auto m3u creation

Hi, I am looking for a solution to automatically create .m3u playlists for each music folder in my sdcard so that the music player can play music by folders. I had written a simple VB.Net app in the past that does exactly the above but apparently, it has to be run from Windows. Since I have no Java nor Android developing experience I fo...

how to import files into the sdcard on emulator in android?

hi all, i want to load some photos into my sd card image in the emulator. how to do this by command prompt.how to do that? ...

how to change position of Toast in android?

when i use toast to display some text on screen it displays little bit above the bottom(default position). now i want to display it in the middle of screen or according to my choice can any one guide me how to achieve this? any help would be appreciated. ...

Android Twitter Application Development and Usage of TextView and Linkify

I'm on developing a twitter kind of Application where in I want that the user would be displayed the timelines and the Textview in the Lists require to perform clicks on (http://)URLs, (@)usernames, and (#)hasTags and I want to invoke custom methods over these actions, I have used the Linkify class and the actions but where of no use bec...