android

How to connect android market in an application ?

Hi I m developing android apps. I have to connect android market in my application. So ,kindly suggest me how to connect android market. Thanks in adv. ...

How to stop an application if any of the activities were killed by the OS

I have an application with many forms implemented as separate activities. The form variables are dynamically built based on a database, and there are a ton of variables in the C++ side of the application (accessed via JNI). I don't see how saving out all of this data to persistent storage each time the onPause() or the onSaveInstanceSt...

I want to make apps for Android what other language(s) can i make them in EXCEPT java?

Possible Duplicate: Alternatives to Java for Android development? I want to make apps for Android (Mobile OS) what other language(s) can i make them in EXCEPT java? Thank you in advance ;-) ...

How do I debug System.load link exception on Android Froyo?

On froyo, when I get a Link exception while loading a library, it does not give the symbol that it could not find! On eclair, there used to be a helper message saying "cannot locate xyz symbol'. Without, this information, how do I debug this library load error on Froyo? I am using System.load to load libabcjni.so. When I build the testa...

Android: Behaviour of launchMode="singleTask" not as described?

Hi, I've been learning Android and have come across an issue with launchMode="singleTask". The documentation states that when this attribute is used, the Activity is always launched into a new task as the root Activity. Secondly, the documentation states that if an Intent is targeted at such an Activity when there are Activities sitting...

How to get a controls id from a custom List adapter in android?

I have a custom list adapter contains a layout with controls in it. I was wondering how I can get each individual controls id? I am planning on changing the color of some textviews. private void UpdateDisplay() { // define the list which holds the information of the list List<Map<String, Object>> resourceNames = new ArrayList<...

Simple Adapter problem, Text + Image in spinner. Java, Android

Greetings all. I've got a little problem...Well, let me first state what I'm trying to accomplish. I had a spinner that pulls strings out of a stored array. Like so, you dont need to read it though: ArrayAdapter healthadapter = ArrayAdapter.createFromResource( this, R.array.health, android.R.layout.simple_spinner_i...

Intent to take photo with better resolution?

My app is using this Intent to take photos: startActivityForResult(new Intent(MediaStore.ACTION_IMAGE_CAPTURE), TAKE_PICTURE); But the resolution is really low... Is there any way to improve the resolution? or I have to create my own Camera Activity? ...

Encode a series of Images into a Video

Hello, How can I create a video file from a series of images/photos on Android? Can this be done with the current SDK? or do I need a codec library? Thanks. ...

switch and case option

i have an activity with 5 button, i want to use the switch option, how i can find what the button is clicked ?. ...

Android screen lock/car charger is killing my thread..

I have a very tough problem I can't solve. I have an app which I can put into airplane mode remotely to save power. I have a thread running which gets the power-save message, removes callbacks for all other threads, puts the phone into airplane mode, and waits a specified number of minutes before waking the phone back up. When the pho...

what is Best way to save the large number of Checkboxes state in Android ?

I have some 34 checkboxes on one Activity which i have to mark and unmark. and I want to save the status of the each checkbox. I want this persistently. So should i have a sqlite table or preferences ? If sqlite table is recommended, then what should be the ideal table structure design? ...

Zooming an ImageView

This should be easy, but I'm having trouble figuring out how to zoom an ImageView. I have an ImageView inside of a ScrollView and a HorizontalScrollView. I floated a ZoomControls over the ImageView and now I'm trying to figure out how to actually zoom the image. I was thinking I would just scale the Drawable inside of the ImageView, but...

Andorid bindService or/and startService help

Hello, I want to create Service using bindService method. But when I close one Activity my Service is destroyed, I don't want that. I try to put service foreground using startForeground(NOTIFICATION_ID, notification); service onCreate , but service still destroy. Now I try with call two methods for starting Service at same time : ...

How to use ThreadSafeClientConnManager.requestConnection(HttpRoute route, Object state)

With ThreadSafeClientConnManager.requestConnection(HttpRoute route, Object state), what is the second item "state" supposed to be? Ultimately I'm trying to ThreadSafeClientConnManager.releaseConnection(ManagedClientConnection conn, long validDuration, TimeUnit timeUnit) to release the connection. But I need the ManagedClientConnection, ...

My custom ringtone previews but is silent during incoming call?

I have an MP3 file that I can play outside of Android and stored on the sdcard. I did the call to MediaScannerConnection.scanFile(mContext, ... so it has been discovered. In Froyo, the ringtone shows up in the **Sound -> Phone ringtone** list. In Eclair it does not list (I expected it in the User add ringtones ...

Android: Dialog etc restore after rotation changed

How to restore the dialog etc after rotating the screen? For example, pop up an alertDialog to tell user some information. then the user rotate the screen to another orientation. How to restore the alertDialog? Can any one guide me to do it? Thanks! Appended later: I looked into the android source code and find these things: Dialogs ...

Calling startActivity() from outside of an Activity?

Hi all, I'm using an AlarmManager to trigger an intent that broadcasts a signal. The following is my code: AlarmManager mgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE); Intent i = new Intent(this, Wakeup.class); try { PendingIntent pi = PendingIntent.getBroadcast(this, 0, i, 0); Long elapse...

How can I find out what kinds of actions and URI's a given app package will respond to?

Say I want to ask the Phone app to dial a number, or the Maps app to display a particular location, or the Navigator app to navigate to a particular place, etc.... Obviously I need to broadcast or send an intent. But what actions/categories/data URI's do I use? What will each app recognize and respond to? This seems like basic inform...

Android AAPT problem in Android

Hi Everyone, i am getting the following error in Eclipse. No resource identifier found for attribute 'class' in package 'android' Can any one help me in solving this. Any help would be appreciated.... ...