I installed all the prerequisites for Android development. I created a virtual device through Eclipse and tried to run the Hello World sample application in that device. I received the following error message.
emulator: ERROR: unknown virtual device name: 'Android21Device'
emulator: could not find virtual device named 'Android21Dev...
Is it possible to detect (in real time) if somebody is blowing into the microphone ?
Thanks
...
I have a simple LinearLayout. When I add the android:background to the LinearLayout, the TextView is no longer visible.
What am I not understanding?
<LinearLayout
android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="53px"
android:background="@drawable/glossy_black_top_bar"
>
...
I'm looking for a way to allow a user to press a button to browse the contents of the SD card, and then select a folder, whose path will be returned to the application. Similar to how you pull up the "Browse..." dialog on Windows for installations.
...
I'm working on my first game, and it works fine, but clearly needs some optimizing. Initially, I had everything running on one thread (I used the LunarLander API to get started on gaming). Since then, I've added 2 new threads to the game. It still works just fine, but I see no improvement. I must be doing something wrong..
This is the b...
I am working on a media player for an example application... and things are moving along great... except that when I add my AlbumAdapter to the Gallery Widget... it never calls getView.
Isn't this right?
albumList = getAlbums(mCurrentArtist);
// updateAlbumArt();
if (albumList.size() > 0) {
Log.v("Log", "got here");
...
I'm trying to get my current location and show it on a map.
Class com.google.android.maps.MyLocationOverlay.MyLocationOverlay does most of the work for you.
But it's coming back with a very coarse result that's off by a couple of clicks.
I'm listening for onAccuracyChanged() but that never gets called.
How can I get a more accurate...
I have a free application that has a number of paid-for upgrade applications you can buy for it. The base game is free and remains the application that the user always launches, it detects the presence of the other applications and unlocks various upgrade features as appropriate.
I wanted to use the new licensing service to detect wheth...
In Android, is it possible to share files between 2 different apps running in separate processes?
...
Can you please tell me how can I get the photo data if I have a list of photo_ids?
I try this:
cursor = mResolver.query(Contacts.Photos.CONTENT_URI, null, "_id IN (?)" , new String[] {"458"}, null);
But the cursor return null.
Any idea How to troubleshoot?
Thank you.
...
I've built a dialog that asks the user to pick a city from the list provided when the application first opens. The dialog works perfectly, however I want to store the user's choice so that when the app is opened a second time, it checks to see if the user has already made a selection previously. If they have, it doesn't display the dialo...
i have been trying to setup kannel using motorola droid with android 2.1 for 2 weeks but i couldn't made it work together!
does anyone tried to do the same?
...
Hi , i would like to show data from my database onto a spinner. how would that be possible?
As there is an null error in my logcat.
Booking.java
public class Booking extends Activity
{
private DBAdapter db;
private Spinner colourSpinner;
private String txtArrival;
/** Called when the activity is first created. */
...
i have downloaded the phonegap example from its website.but it doesn't run.i can't find the reason.help me to get the solution please.when i run it shows
"The Web page at file:///andriod_asset/www/index.html could not be loaded as:
The requested file was not found.www/index.html"
...
I am just starting to learn Android development using the Android SDK and Eclipse. I can get my HelloWorld starting app to run in the device emulator, but not on my Verizon Droid handset. I have downloaded the drivers for Windows 7 and I can see the files on the handset in Windows Explorer, so I'm assuming I have the drivers working. I h...
I have an app which has a section that needs to convert the temperature from Celsius to Fahrenheit, but for some reason on only a couple phone models (like the htc desire and Sony Ericsson X10) it crashes at this part, but I have no idea why. can anyone help?
double cel = x/10;
finalTFF = 9.0f/5.0f * cel + 32.0;
DecimalFormat twoD...
I want to record audio in MP3 format in my android application. I know I can read PCM audio using the audioRecord class. Is there a java library compatible with android that will encode PCM to MP3? Is it possible to use the Lame mp3 encoder library?
...
Hi!
I need help in geting results back from intent launched from
preference screen
// Intent preference
DevicePref =
getPreferenceManager().createPreferenceScreen(this);
// Show a Screen with list of Devices Discovered
Intent i = new Intent(this,getDevice.class);
DevicePref.setIntent(i);
DevicePref.setTitl...
I've got the following node in my XML layout:
<com.x.y.view.TagLayout android:id="@+id/TagLayout"
android:layout_width="fill_parent" android:layout_height="170dip" />
TagLayout is a class that extends ViewGroup, and basically holds a bunch of buttons with text (a custom object that act as tags, but that's neither here or there).
The...
I've a local service that is started in my main activity. The service is responsible for network I/O. It also interacts with other activities in my application. Till, now the service was only "providing" data to activity (using callbacks and not Intents.)
Now I need to send data (custom objects) from my activities to the service. I unde...