android

How can I check in code the Android version like 1.5 or 1.6

Hi all I need to check in code what Android release version is running currently on target device Can you supply code example Thanks ...

Popup window size in android

I'm creating a popup window in a listactivity in the event onListItemClick. LayoutInflater inflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View pop = inflater.inflate(R.layout.popupcontact, null, false); ImageView atnot = (ImageView)pop.findViewById(R.id.aNot); height = pop.getMeasuredHeight(); width ...

Android changing colors with themes

I am trying to provide user settable colors in my app. White text on black background and black text on white background. I have multiple layouts with many listviews, both standard and custom adapters. People have suggested using Themes, but I have had no luck changing the text colors across all layouts. Can anyone show me an actual ...

Application hangs or collapses on submitting the data in the sign-up form, second time...First time it run perfectly.....

Hi, below is the code of a sign up form, when we CLICK second time to submit the entered details, the application collapses and hags just displaying the dialog_thread....On executing very first time it rum perfectly..............The code of dialog_thread is given after onClick()....Please help me, how to get rid of this problem and let...

Android: TabHost

Hi, I have a question in regards to http://developer.android.com/resources/tutorials/views/hello-tabwidget.html Lots of issues are already discussed but this example only works for me if I in the onCreate() method do NOT use setContentView(R.layout.main); Why is that? What do I have to do if I want to mix a tab layout with other element...

Is it possible to run a MIDP application under Android

The Google Market offers an application purporting to run J2ME MIDP applications on the Nexus One. I have tried this application but it only appears to run MIDP applications that are downloaded from particular web sites; it does not seem capable of picking up a MIDP application that is stored on the SD card in the phone. I have suggest...

PHP: How to get version from android .apk file?

I am trying to create PHP script to get app version from Android APK file. Extracting xml file from APK (zip) file and then parsing XML is one way, but i guess it should be simpler. Something like PHP Manual, example #3. Any ideas how to create script? ...

Android: How to change the Size of the RadioButton

Hallo, I have many RadioButtons in mein App. The RadioButtons are too big for me. Is there any way to make it smaller? Thanks a lot ...

Store database in /assets and access it

Hi i have very large database so i am not able to store it in... \data\data\"PACKAGE_NAME"\databases so i want to store database in Assets and access it from there .I do not want to copy database from assets into \data\data\"PACKAGE_NAME"\databases .. So any fertile brain there to plant solution..... ...

Wifi just goes into IDLE

Hi, I have written some software which uses Wifi as a possible internet-connection medium.. I did notice though, that after some time (I am guessing around the 15-20 minutes) after the device has gone into power save mode (anyways when the screen has gone black) the Wifi connection will simply be dropped, even though it is still being us...

how to handle orientation of an linearlayout control in android

![alt text][1]Hi folks i am using admob ads for my android applicaiton.in portrait mode it fixed top of the screen when i changed to landscape mode.that add disply size of the portrait mode add size how i get fill parent in landscape mode +import com.admob.android.ads.AdManager; import com.admob.android.ads.AdView; import android.ap...

how can i take multiple photos on click ListView save them in android?

i am working on a app for a android , i have to take three photos by activating android camera and save it in particular location in sd memory and assign it to them as thumbnails, 1st shot working fine and coming to second photo it is not saving and not assigning to the thumbnail. Please let me know how can i take multiple photos on c...

Sharing code between Android and Windows Mobile

I'm doing some initial research on smart phone development, and I noticed that Android and Windows Mobile both support c++ for application development. I was curious if anyone had any experience trying to manage shared files between both Android and Windows Mobile, and to what extent that code can be shared? e.g. no user interface can ...

where is android.camera.NEW_PICTURE defined?

i used com.android.camera.NEW_PICTURE to check whether an image is captured or not. (receiver android:name="NewPhotoReceiver") (intent-filter) (action android:name="com.android.camera.NEW_PICTURE"/) (data android:mimeType="image/*"/) (/intent-filter) (/receiver) but com.android.camera.NEW_PICTURE is...

Android page Curl animation

Hi... Two questions: Is there a simple way to do the Curl page flipping animation? A Curl animation is animation of pages flipping, including the page above rolling and the shadows over the lower page. What is the recommended way to do a "gallery" that displays two pages at a time (just like a book)? Is it: Letting the adapter displa...

Problem in using SectionIndexer

Hi, I have a listView which loads records either sorted by distance or sorted by Name and the type of records that gets loaded is decided by a button click. I get list from db that is sorted by distance and i wrote two adapter class to display, one is SimpleAdapter and other is customized adapter implementing SectionIndexer to display or...

In Eclipse, when building an Android app I've somehow deleted the "R" class and cannot get Eclipse to generate it again.

Hi all, I'm new to Eclipse/Android development so I'm hoping this is something basic that I'm just doing wrong. Basically I've been playing around with developing Android apps and I was editing one earlier. I changed my main.xml file and when I went back to my class that runs the app all references to the "R" class were broken. I look...

Google Analytics for Android tracking Market keywords?

Hello there, I do want to implement the Google Analytics for mobile on my android application using the sdk provided on this page http://code.google.com/intl/it-IT/mobile/analytics/docs/android/ Does someone knows, before i start to integrate it, if it tracks the keywords people used on the android market in order to arrive and insta...

How can I change the color of a complex graphic?

I have a graphic in Adobe Illustrator (lets say a cat) that I want to use in an Android application. I would like to have the user be able to change the color of the fur using a color picker. What can I save the graphic as (SVG?) to allow me to programatically control the color from with the android app? Do I have to have a separate imag...

Signing a Android App: What about the various fields?

Hi, I was wondering about the wizard of eclipse, what the difference was between the keystore password and that asked in the after screen? And what if i post both the same? Tnk's Valerio From Italy ...