android

how to create editable spinner in android?

friends, can any one guide me how to create editable spinner in android? any help would be appriciated. ...

How does Android sound mixing really work?

Is there any definitive source that explains how Android sound mixing really works? I'm getting a really unexpected behavior using SoundPool on STREAM_NOTIFICATION when it mixes with music on STREAM_MUSIC. When music is playing, even if its volume is way down, the sounds played by SoundPool are at 50% of the volume than when no music is...

android's ListView does not listen on single clicks

Hi! I'm developing an simple application on Android, where some items are shown on a list. The user may click on one, taking him to a further activity. Basics... But my OnItemClickListener does not get called! I've found this very similar question, but the solution (disallow the list item view to get focus) does not work for me. Howeve...

Can I set an attached device as default launch target?

In Eclipse I am developing an application using google apis (maps) on a Nexus One. When I launch the application for debugging on the device i get: "Automatic Target Mode: Unable to detect device compatibility. Please select a target device." and the "Android Device Chooser" pops up. I can select the Nexus One and everything is ok. It...

android Sax parsing exception for "»" character

hi friends i'm using Sax parser for parsing my xml file which i recieve from the internet... The problem is that the normal xml is parsed fine except the xml files which have "»" symbol in the attributes... everytime i try parsing the file i get the following error 02-11 16:57:35.547: INFO/System.out(754): org.apache.harmony.xml.Expat...

Android: dynamically setting links to text in strings.xml

I'm trying to make an app with localisation built in, but I want a way that I can create a web link within the text, the URL being defined elsewhere (for ease of maintenance). So, I have my links in res/values/strings.xml: <?xml version="1.0" encoding="utf-8"?> <resources> ... <string name="link1">http://some.link.com&lt;/string&gt...

Take picture on HTC tattoo

I wrote an application that takes picture from the camera. I use the native camera application by providing an Uri. When the user has taken the picture and goes back to the application screen, the Bitmap image is null. I dont't know why , it works well on HTC dream/g1 (android 1.5), Nexus One (android 2.1) and motorola milestone/droid (a...

how to create expandablelist view activity with checkboxes??

friends, i am following expandable list tutorial its expand able functionality working fine.. http://mylifewithandroid.blogspot.com/2008/05/expandable-lists.html now i dont know which event to implement to handle checkboxes in list when i click on checkbox it expands the list.... how to distinguish list click with checkbox placed in ex...

After downloading an application with two Launcher components from the Marketplace, clicking "Open" will cause a crash

Create a sample application with two launcher icons. For example, two components such as: <application ...> <activity ... android:name="TestActivity01"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </acti...

OMA DRM v1 & v2 support on Android

Are OMA DRM v1 and v2 supported on Android? If no, is it planned? is there any third party library that implements OMA DRAM v1 & v2? ...

Having several SQLiteOpenhelper in one appli Android

Hi, I would like to know if it is possible to have several DbOpenHelper in the same app Android but to use them to write and read in the same database? because I'm trying to create tables from 2 different OpenHelper (with different names) and only the first one seems to create. when I try to run the 2nd one, i get an error... ...

What ID numbers to use for Notifications

public static final int NOTIFY_FAILED = 1; private final Notification displayErrorNotification = new Notification(R.drawable.notification, "Communication Error", System.currentTimeMillis()); private void displayNotificationError(String message) { PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(), 0); ...

View component in Meteo/news widget

in android 2.1, there is a default meteo/news widget (I think it Genie Widget) If you open the widget , you have an application which have several tabs. When you slide on the content area under the tab, you switch the tab. Do you know which View component it uses to have this mechanism of switching tabs by sliding the content? ...

How can i create a protocol similar to gmail in android?

I would like to explain me better. In android once you receive an email on gmail you would get notified almost in realtime. How does it work? Thinking about an answer i had 1 idea: Android is connected to a gmail server which does not send anything untill it has new mails This solution , which is the only one i can think about, is...

Accessing Google Account Id /username via Android

How do you access the user's Google Account Id / username in code? I building am application that will call a web service to store data and I want to identify the identity of the person sumitting the data. ...

android execution in emulator or device ?

Is there any way to know if my application is running on the emulator or on the device ? ...

Deploying large database with Android application

I am in need to write an application for Android devices that needs to access a large (~200MB) database. What would be the best way to do this? Can I just stick the database in the assets folder? I have read of various limitations that apply to the entire application size and to individual resources within, especially on some devices... ...

How to overlay Camera view with POIs

Hi All, Without using Wikitude, I'm trying to find out how to overlay POIs over Camera. I have seen a few code samples that overlays POIs over MapView. How to do the same for Camera? Any clue/example code would be very much appreciated. To achieve my goal, can I add MapView on top of Camera Preview? If so how is it done? My MapView...

How to copy a file in filesystem?

Hello, I would like to know the best way to copy a file in the filesystem? (android java function ) (sdcard/video/test.3gp -----> sdcard/video_bis/test2.3gp) Is there an example somewhere? Regards ...

Best way for a mobile app to display records from thousands available?

Suppose, you have a larger database of customers, such as 5000 records. Using a simple select query it can take 2-5 seconds on a mobile application to populate a listview with all thousands of customers available. But the user only needs to select one, so what is the best way to select the customer? If you have a few records eg: 50 cu...