android

UI android question/problem with Listview

Hi, I'm trying to recreate the UI screen called 'My Places' that is used in the Weather Channel app. I'd attach a screenshot of the screen, but I can't seem to do it here. It seems they're using two listviews one on top of the other, but I'm not sure for certain. Could anybody confirm this for me? If they are doing this, how is this d...

Google Earth on Android

I have installed the Android Emulator: http://developer.android.com/sdk/index.html I now have it up and running using the eclipse plug in. What I want to do is interface with/open/access google earth on the Emulated phone.. Is this possible? ...

Setting Priorities on Buttons

Hello Android Developers, I am trying to figure out how to set priorities on imagebutton. I want to have a layout with a bunch of Icon or buttons that can be selected either by touch, radio, or checked box. As these images are selected they are set on queue to be displayed in order of Precedence. (that is to be pre-determined). The im...

How to convert "9:00 PM EST" to a Date object

I am developing an Android application and require some basic datetime manipulation. I have a Date object (from Java.util.Date) holding a specific date. I need to add a specific time to it. The time I have is a string in this format: "9:00 PM EST" How would I "add" this time to the previous date? If the Date object currently has: "4/24/...

Can I copy debug.keystore from one PC to another?

Can I copy the debug.keystore in My home directory to another PC's home directory? Does it have to be Linux on Linux, and Windows and Windows? Can I copy Linux keystores to Windows, and vice-versa? ...

Android: passing paramters between classes

I have a class2 which is involved by class1 when clicks are made. I have to pass some parameters/objects from class1 to class2. I only know the standard way which does not have an option of passing parameters. // launch the full article Intent i = new Intent(this, Class2.class); startActivity(i); ...

Android Development with Xcode

This question has been asked before, but that was back when there wasn't an NDK for Android.. So, I'll ask again. Has anyone setup the Android NDK & SDK to work with Xcode? ...

Posting comments to a wordpress-blog in Android

I am working on a module that allows users to post comments on a blog published on Wordpress. I looked at the HTML source for Post-Comment-Form displayed at the bottom of a blog entry (Leave a Reply section). Using that as a reference, I translated it to Java using DefaultHTTPClient and BasicNameValuePairs and my code looks like: Defaul...

Http Connection in Android

hello folks, i am new to android... I want to connect with server .Like i want to sent data and recieve data from server through Http Connection.. Can anyone help me how to do this. Can anyone provide me the sample of both side-client as well as server side. Thanks in advance... ...

Sample code for using camera digital zoom in Android-app?

Need set zoom for camera preview... ...

hey i have to create 3d game for android device. for that i have to use a which software to make the 3d game.

hey i have to create 3d game for android device. for that i have to use a which software to make the 3d game. please reply thanks ...

How to know all id's that i have in the file main.xml in android?

Hello guy's, i'm new at Android world, and i have a doubt, is there any method that give me the name of the id's i create in main.xml? For example i have this: main.xml <TextView android:id="@+id/text1" android:layout_width="70px" android:layout_height="70px" android:text="Google" /> <TextView android:id="@...

How to set an EditText on top of a ListView ?

Hi everyone, I am trying to do an autocomplete version my way (logic, layout, etc...) , so I don't want to use the AutoCompleteTextView. My question is how to set an EditText on top of a ListView in a class inheriting from a ListAcvitivy. I tried two kinds of layout, none of them worked. First one : <EditText android:id="@+...

Background Activity for Map in Android started again if phone orientation is changed

Hi, i've developed an android app that's fetches an xml file and displays this data via several markers on the map. This works fine so far. The problem right now is that when i switch the orientation of the phone (portrait->landscape or vice versa) the markers disappear for a small moment, the xml processing is started again and then ...

Getting Bitmap of all the Views in ViewFlipper in Android?

Hi, I need to take the Bitmap of all the Views in ViewFlipper. But it gives me the Bitmap of only the current content on the screen. Is there any way of getting Bitmap of all the Views in the ViewFlipper. Or is there any other way around to get the Bitmap of all the Views. I have four views and need to load them at the same time and ge...

Send a xml file with POST and receive in php

hi guys, I'm working on an application using Android SO and Java. I would like to send an xml file as POST to a php server, that inserts the information from the xml into a database. how can i do that? regards :D ...

How do I use PackageManager.addPreferredActivity()?

In SDK 1.5 I was using the PackageManager class to set the preferred home screen to be my app using PackageManager.addPackageToPreferred(). In the new SDK (using 2.1) this has been deprecated so I'm trying to use addPreferredActivity() for the same result but it's not working as expected. Some necessary background. I'm writing a lock sc...

Web Service Client on Android

I wanted to create an application which can be a web service client on Android cell. Any recommendations how to do that. I can send SOAP requests to the server Thanks cell ...

Android - Querying the SMS ContentProvider?

I currently register a content observer on the following URI "content://sms/" to listen out for incoming and outgoing messages being sent. This seems to work ok and I have also tried deleting from the sms database but I can only delete an entire thread from the following URI "content://sms/conversations/" Here is the code I use for tha...

Instrumentation class in the Android API.

Hi All, I have question on the Android API. Android API provides a class called "Instrumentation" class. What is the use of this class? Is the Instrumentation class be used only together with Junit for unit testing. Can Junit framework can be used to test the methods of the Android API without using the Instrumentation class. Since Ju...