android

Intent on Android

Hi all, I want a clarification on intent.this is my scenario,there are 3 activities in my project namely "A","B","C"..... On clicking the button in Activity "A" ,i pass the values to "B" through bundle and based on the received value i retrieved set of values from database...Similarly "B"->"C" also... The problem when i clicked the bac...

Resetting animation in Android without starting it

I have an AnimationDrawable that is running. How to stop & reset it so that it does not start again until start() is called? Calling setVisible(true, true) resets it, but also immediately starts animation, and I'd like to avoid it. ...

how to display MJPEG over the android.

hi, I want to display MJPEG (generated by live camera) in the Android device. is this possible to display MJPEG over the android device. if yes then how I will implement it. ...

sqlite convert 'dd.MM.yyyy' formated String to date

hello, i have a sqlite database on my android, whith a datetime column, that contains a date with the Format dd.MM.yyyy. It's not my Database, I'm niot able to change the Dateformat. I want to compare the date in the database with a String, which is representing a secon date, but everything I tryed failed. How can I convert this column t...

android data storage question

Hello I would like to know if it is possible to for some application other my own to change a preference value of my application.Also are the preferences been kept by android when the phone is turned off? is it safe to store some data(flags) on sharedpreferences in order to notify an activity for something? when user clears the applica...

Where to put a file when reading from SD Card (Android Development)

If I am going to be reading files from the SD Card, where do I put them during development? Also, when I install the app, will it include these files and put them to the SD Card? ...

In Eclipse, any way to start application in more than one emulator at the same time?

When testing Android layouts, I'm constantly building for three different emulators from Eclipse (with ADT), so I have to run three times and then select each one. Is there any configuration or plugin that allows me to press Run once and the application is started in all three? ...

Does android have a built-in PDF viewer?

I heard something recently about it being included in Froyo and I was wondering if there was any truth to it. If there is, it would help me with an app idea greatly. ...

Android Intent usage

I am working developing a tab layout based RSS Feed reader app for my android. I have four different sites to get the feeds from and each feed should go into the separate tab. Now I have the app working fine but I was just wondering if there is a way to pass in the feed url while invoking the feed activity? I guess what I am after is t...

padding issue while setting a image as background in android

Hello In my android application i am using a image as background initially. Then on top of that i need to place small images and on top of the small images i would like to place a textview with some text on it. I am using below code for that.With this am able to place the small images but the textview if i am trying to place it place in...

Converting time durations from string to float

I'm working on an Android application that tracks time durations of tasks. Internally, it saves these durations as a float representing how many hours were spent on the task. So 30 minutes would be 0.5, 1 hour would be 1, etc. I've got all that code working great, along with code to convert these into hh:mm format for easier reading. ...

Populate radiobutton group with data from squlite database

Hi! I am writing a game app for Android, where a question word with four different alternatives will show that the user can choose between. I have a database and i can insert from the app, but what would be the easiest way to use a select statement, and then parse the response and populate the five different positions in the radio group...

is there any inbuilt function for image recognition

Hi, i want to use a function for image recognition i dont want to make an algorithm. please suggest me a function where i could compare two images and tell whether these images belong to the same object. please help me!. ...

Getting touch event in any view (Android)

Hi, I need to make a service that capture all touch events, not in a specific view or when an specific activity is open. This service is started when the boot is completed (and I have an app to stop/play this service when I want it). So it write something (in a Toast) when the user touch any place in the screen. Can I do this? Or only ...

ListPreference dependency

I have a ListPreference which look something like this: <ListPreference android:title="Choose item" android:summary="..." android:key="itemList" android:defaultValue="item1" android:entries="@array/items" android:entryValues="@array/itemValues" /> Then, I have another preference which should only be enabled if "item3" is selected in t...

[Android] Rotate of 90 degrees a Dialog / AlertDialog created by the system ?

Does it exist a way to apply a rotation (of 90 degrees) to an AlertDialog that has been created by the system ? This could seem tricky at first sight. My application uses the camera in preview and must work in landscape AND in portrait, starting from Android 1.5. However, when the OS automatically manages the phone orientation, the pr...

fill edit text to the complete screen android

Hello In my android application on click of image i would like to display a page which could provide a notepad facility to user. I placed a edit text with fill parent but the cursor starts from the middle of the screen. Is there any way that i can start the cursor from the beginning. Please share your valuable suggestions. Thanks in ad...

Android: sending subsets of image set to imageview

Late hour @ work, brain turned off. I have 1 big set of images with different categories. User can choose to view all images or from 1 category only via dialog option. How should I change the default set for image adapter? Currently the code is rly messy, but images are like: private Integer[] images = { R.drawable.img1, R.drawable.img...

Looking for an Android 3d engine that able to simulate coin flipping ?

Hi , I am planning an app with a "coin flipping simulation" function(Activity) in an Android phone. I am new to 3D (OpenGL) here , and I know there will be a lot of efforts to build from scratch. So , I am looking for an existing 3D engine , which is able to simulate : Coin flip and drop , with G-Sensor , so that users can shake/wave h...

How do you make Android LocationManager use Cell network and not Wifi network?

I have an android application using LocationManager get the cell network location and not the Wifi location? If I have turned off the Wifi antenna and do the following: LocationManager lm = (LocationManager) paramContext.getSystemService(Context.LOCATION_SERVICE); Location location = lm.getLastKnownLocation(LocationManager.NETWORK_PROV...