android

Drag and drop overlapping ImageView in Android

Hello all, I have a table-top style game board consisting of 10x10 squares. Each square is a PNG image. On top of these squares I want to place tiles which can be drag and dropped on top of the squares. What would be my best approach concerning Views? Is it possible to have two layers where layer one is a grid of ImageView's which rep...

Asynchronous image loader on listview [Android]

I'm having problems to implement an acynchronous image loader to the following code. I read some posts arround the web about it and I think I understand the logic behind it, but I seem to fail in implementing it. The code bellow is what I use to simply load the images in my listview. public class MyCustomAdapter extends ArrayAdapter<RS...

saving state of an android Application?

Which of the following is/are appropriate for saving the state of an Android application? a. Activity.onFreeze() b. Activity.onPause() c. Activity.onStop() d. Activity.onDestroy() e. Activity.onFinish() ...

What resources are required to run Flash on Android?

I have HTC T-Mobile device having Android OS 1.6, Eclair platform. I doubt if Flash Adobe Air can run on that. Because that is the only supported on 2.1 and 2.2. Please confirm. Also can i upgrade my device's OS to Froyo by downloading the OS from android.source.com? I have downloaded SDK 2.1 and 2.2 on my machine. Can i develop and run...

Why doesn't my BroadcastReceiver receive broadcasts from another app?

App A has this BroadcastReceiver in its manifest (within <application>): And this receiver: public class RemoteControl extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.w(TAG, "Look what I did!"); } } I'm trying to trigger this from App B: public void onClic...

Android : Sending an SMS (using the Outbox)

I'm working on an SMS Application for Android, which undoubtedly needs to send SMSes (go figure! ;) Now, i know there are a plenty of sources on the net that describe using the SmsManager to send SMSes...But, apparently, when using that method, the SMSes aren't stored in the "SENT" Folder...which is kind of a basic requirement for an SM...

WebView.getUrl() returns null

Hi, I have an issue with Webview. I'm programming my own WebChromeClient class overriding onProgressChanged method because I want to show the page when it finishes loading and then, to hide the splash screen. As I just want it to happen with a specific url, I compare the actual WebView url with a specific string, but there is a problem...

How to display lines created in android in web google maps?

Hi everyone. Does anyone know how to display points, lines etc. (basically every overlay) created in android in standard google maps on website? The android db is synchronized with remote db. I'm getting the points from the database, creating kml file from them and uploading in to the map. The problem is that the areas I've created are n...

how to integrate Google Sky map in android

Hi!!! i want to integrate google skymap in my application. it has any API????? or what steps should be taken... please guide how can i integrate it....... ...

Android Pending intent started from notificaion does'nt replace the last

I've read many posts on the same topic and tried all the given solutions without getting the result I want. The program should start an intent with extras from a notification: NotificationManager mNotificationManager = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE); Intent notificationIntent = new Intent(...

how to add dummy SMSs to android avd?

Hi, I am trying to build an app that accesses the sms on android os. But i dont have an android device.. so how to add some dummy sms on to the avd so that i can test my app on those sms?? or any other way out? Thanks. ...

About get the values from SQLite

I wanna set a textview as the values from SQLite when I click the ListView Here is my way: myListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView arg0, android.view.View arg1, int arg2, long arg3) { myCursor.moveToPosition(arg2); setContentView(R.layout.main2); _id = myCursor.g...

How to receive Multicast packets on Android

Hi, I'm trying to receive data from a multicast address, but the call to MulticastSocket.receive() blocks until a timeout takes place. I did some network sniffing and found out that my device (and the emulator) never send a MulticastSocket.joinGroup request. I tried running the same Java code from my PC as a standalone application and...

Sending messages of different types to Android Handler

Is there a way to distinguish between types of messages sent to an Android Handler? For example, I have 2 background threads and would like the handler to recognize which thread a message came from. ...

Song picker for Android

Is there a song picker for Android that can be invoked programatically? I'm looking for something similar to iPhone's MPMediaPickerController, which shows a view from where the user can select songs. ...

Android bundles passing Pointer or copies of objects

If I attach an object to a bundle and store the bundle in an intent and start another activity, does that activity work on a copy of the original object or does it use the same object but just passes along a pointer? ...

Is there a listener to listen for changes in the volume in android?

Is it possible to register a listener to listen for changes in the volume level of the music stream in Android? I'm displaying the actual volume in a SeekBar and I would like to change the seekbar if the user changes the volume with the hardware volume keys. At the moment the correct volume is displayed until the user changes the volume...

Google Gears Database performance

I made a javascript class that let me use gears or html5 (if available) storage to store an stringified json object. the code is ment to be use on Android 1.5 and 2.0. When I save many objects into gears, it's very slow even on a PC (google chrome / gears). The CPU doesn't go high but the page gets unresponsive for 45 sec. On a cellphone...

About get the values from SQLite (2)

I wanna set a textview as the values from SQLite when I click the ListView Here is the code: public class SQLiteTest2 extends Activity { private DoDB ToDoDB; private Cursor myCursor; private int _id; private ListView myListView; public TextView textStudyUID; protected ListAdapter adapter1; public void onCreate(Bundle savedIns...

Android Developer console error report

I posted a free app and I've got a couple users who posted a comment saying that the app force closes in google's feedback. It's got a few hundred downloads in the day it's been up with an 84% retention rate. Google's error report in the developer's console says it has 0 errors. I've never had an app that reported any errors in the co...