android

Nested Linear layout only shows first view after being set from gone to visible in Android

Hi guys, I am developing an Android app but I'm still pretty new. I want to have a button, and when you push that button, a few TextViews and Buttons will appear. So I have a main linear layout, and then another linear layout nested inside containing the things I want hidden. I have the nested linear layout set to android:visibility="go...

android: turn off screen when close to face

My app allows the user to access their corporate voice mail. Normally, durring a phone call when the user holds the device up to their ear, the screen shuts off so they wont accidentally push buttons with their face. I would like to make my app do the same thing when the user is listening to their voice mail. anyone know how to do this?...

Android 2.0: how to add contact groups in the emulator?

how to add contact groups in the emulator or sync with Google contacts or device contacts? ...

Another ArrayIndexOutOfBoundsException in ListView

This one is different than the other one I posted. Any ideas? java.lang.IndexOutOfBoundsException: Invalid location 14, size is 1 at java.util.ArrayList.get(ArrayList.java:341) at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:188) at android.widget.AbsListView.obtainView(AbsList...

What is rotating the preview in the Android sample "CameraPreview"?

The sample in question is: CameraPreview I was wondering what piece of code is making the preview become rotated 90 degrees to the left? I'm certain there's something very obvious I'm overlooking but I just can't seem to find the culprit. Thanks in advance, I really appreciate it. ...

More threads and orientation changes questions.

When it comes to threads and orientation changes, it seems the normal thing to do is something like this: public class Bwent extends Activity { private static Bwent instance; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); instance = this; } //... That way, if you're makin...

Android Activities UI Persistence

I need to have two activities in an Android app that can be switched between each other with UI persistence as follows: Activity A launches Activity B. User triggers some UI changes in Activity B. Activity B returns to Activity A (by a call to onBackPressed() or something similar) Activity A re-launches Activity B. I would like the c...

Can not access android /data folder?

try { Runtime rt = Runtime.getRuntime(); Process pcs = rt.exec("ls -l /data"); BufferedReader br = new BufferedReader(new InputStreamReader(pcs .getInputStream())); String line = null; while ((line = br.readLine()) != null) { Log.e("line","line="+line); } br.close(); pcs.waitFo...

Why does keyboard-slide crash my app?

If I physically slide out the keyboard on my Moto Droid A855, it crashes my test app with the stack trace pasted below. I don't understand why? Also, if I start my app with the keyboard out, my app crashes immediately on startup. The app consists of an activity, which contains a viewflipper as the main view layout. The viewflipper co...

secure from unauthorised access

Hi, Based on the user requirements, he wants to use our android application via pin code access like login whenever he starts to use this application. In Android or any mobile, most of the applications start again the last using layout. so which event should i call this login alertdialog to access each time users start to use it? Or let...

exec: 23: python: not found error?

im trying to build android from source on ubuntu 10.04. when i enter the repo command: repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair it get this error back exec: 23: python: not found any ideas. ...

KeyCode_Enter to next edittext

Hi, In edittext, after typing 'Enter' key, system make a new line inside it. I'd like to focus on next edittext, no new line. how to code? my code in xml is below <EditText android:id="@+id/txtNPCode" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="18sp" android:layout_a...

ideas for android applications

Hi, i am an android application developer. I have developed 10 applications so far. I want to develop a funny and weird android application. Could anyone suggest any ideas..? ...

Android - Having a service run every day at 4AM

Hello everyone, I would like to know the best practices for running a Service every day at 4AM. The way I think I should be doing it is to create a new repeating alarm using AlarmManager and having it run the service at 4AM. Problem is, I'm not sure where to put the code to set the alarm. Do I do it in my main activity as one of th...

how to find Signal Strength of connected bluetooth devices

Hi, In one of my application I need to display all the Wifi and bluetooth devices which are paired to my mobile and it's Signal Strengths .Wifi side it is ok for me to display signal strength(RSSI).But i got a problem at Bluetooth side.I searched for the method which is suitable for this task,i found one method that is intent.getShortE...

Android list all images available

hi friends, I m making an application which requires me to list all the images available on the SD-Card of the phone. i tried querying the ContentResolver way i.e. Cursor image = getContentResolver().query(Images.Media.EXTERNAL_CONTENT_URI, new String[]{Images.Media._ID,Images.Media.DATA,Images.Media.DISPLAY_NAME}, null, null, null);...

Place image at coordinates Android.

I have a program in which I would like to place an image at the coordinates of a touch event. I have the coordinates now I just need help with placing an image there. I will be using a drawable. Edit** I also want to overlay it over another image. I cant find any documentation on this what so ever. I would think it should be easy. Can...

How to create custom Listview in android, which should be maximize and minimize, whenever we click on +/- sign which is add on header of listview ?

How to create Listview in android, which should be maximize and minimize, whenever we click on +/- sign which is add on header of listview ? ...

Are the Sky Map APIs available?

I'm looking to build an application similar to Google Sky Map, and was wondering if it was possible to hook into any of the APIs it uses. If so, which ones? If not, how else can it be done? From what i've read so far, I can do a search via an intent for any the objects in Google's sky map db.. but i'd like to have my own db of satellite...

Converting audio files(.3gp) to video with Album cover and uploading to YouTube

I have an audio file in .3gp format on my Android device which I wish to upload to YouTube. I know that YouTube is a video upload site and that I need to convert this sound file to video. I just want an image to display all the time the audio is playing. Google tells me there are number of tools that can help me. But I want to do this ...