android-emulator

retrieving image from sd card in android

How can I retrieve the last image in the SDcard - Last one captured - plz, give me a sample code thanks ...

Exceeds maximum number of OpenCore instances in android

Hi, when i run my application it shows "Exceeds maximum number of OpenCore instances" error.How to resolve this error. Thank you ...

android emulator is start but window show blank screen

when i run the andrioid application. emulator is start well, but screen doesn't show anything. ...

list in android

How to put image and name in the list in android ...

Android - Emulator internet access

Hi, I've been using this method to gain access to internet from my Android emulator emulator -http-proxy <> -avd <> It works but is that the best way to do it? It just doesn't feel right that I need to open the emulator from command line and can't just do it from Eclipse or something. Can't seem to find an internet option on the "AVD ...

Not able to update contact name in emulator 2.1

Hi, I am tring to update name of existing contact in android 2.1 emulator with the following code but always getting "java.lang.IllegalArgumentException: Emplty values" Exception. ContentValues contactValues = new ContentValues(); contactValues.put(People.NAME, "rishabh"); getContentResolver().update(UpdateContactUri, contactValues, n...

Creating an image of an Android phone

Does anyone know how to create a 1:1 disk image of an Android phone? I am taking a forensics course and our final project involves creating tools to recover information from a suspect's Android based phone, however to do this we need to be able to create a 1:1 image of the phone's disk for baseline comparisons. Also would the image be lo...

Android: How to find the position clicked from the context menu

Hi, I have a list view filled with data. I set up a context menu for the listview using the following code: list.setOnCreateContextMenuListener ( new View.OnCreateContextMenuListener() { public void onCreateContextMenu(ContextMenu menu, View view, ContextMenu.ContextMenuInfo menuInfo) { AdapterContextMenuI...

access virtual host(name based) in android

hii i have set up virtual host in apache and and added relevent information in windows host file. it works fine for desktop browsers but i am not able to access this from android simulator's browser. as a example a i created a virtual host "testweb" i added this information in widows hosts file also so in desktop browser it wor...

Problems with calendar application on Android 2.1

Hi, I have compiled the android 2.1 source code and I can start the emulator. But I can't launch calendar application. Every time I tried to lauch the calendar application, it crashed. The log is as following: // CRASH: com.android.calendar (pid 272) // Short Msg: java.lang.NullPointerException // Long Msg: java.lang.NullPointerExcepti...

how can i get proper Uri of a particular contact in android 2.1

I have written an application and added 2 contacts on emulator, but i am not able to update their names on android 2.1, code is working on android 1.6 platform with the following code. ContentValues contactValues = new ContentValues(); contactValues.put(Contacts.People.NAME, firstName+" "+lastName); getContentResolver().update(UpdateCon...

AVD is located over UNC path and cannot start.

How does one tell it where to put the AVD? by default it is creating it in my windows home directory under a .android folder. i cannot start my avd if its located over a \unc path\to\avd. our sys admins put all of your home directories on another shared server. Thanks in advance, Kirby ...

Android development

I'm currently trying to get a grip on Android development and working my way through Notepad example part 2 when this warning popped up and I can't fix it. [2010-03-18 21:26:47 - androidTest] ActivityManager: Can't dispatch DDM chunk 46454154: no handler defined [2010-03-18 21:26:47 - androidTest] ActivityManager: Can't dispatch DDM chu...

How long does the Android Emulator take to start? Do you need to close/start if every time you change Java code?

When developing for Android do you typically need to stop the emulator and restart it every time you make a change to your Java code or is there a faster way? The emulator takes about 1.5 minutes to start for me, is this normal? ...

Can you redeploy an Android application via Intellij 9 Ultimate's Android support?

I know that eclipse can do this, can Intellij via the new Android support do this? ...

Screen orientation landscape back to portrait not working

Hello, I've racked my brain for hours over this issue. I have created a main.xml and designed one for the res/layout-land (landscape) format and another one for portrait in res/layout. When I rotate the emulator (ctrl-F11), my app rotates properly to landscape using the correct main.xml, but a subsequent rotation back to portrait just...

Force close on clicking on radio button

Whenever I try to press a radio button on my emulator, it just force closes! public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button b = (Button)this.findViewById(R.id.btn_confirm); b.setOnClickListener(this); RadioButton radio_ct...

Where can I get source code for apps on the Android emulator?

I have two question to put forward: I was very interested, even intrigued by the Maps application on the android emulator. Where can I get the source code for it? There is a Maps Editor on the Android Market, it cannot be downloaded to the emulator. But again, where can I find the source code to that? ...

How to run Android instrumentation tests from the command line (in Kubuntu)?

We are able to run instrumentation tests of Android from the command line on Windows by launching: adb shell am instrument -w <package.test>/android.test.InstrumentationTestRunner This gives us good results. Using the same architecture, we are unable to run the same in Kubuntu. We have the same setup in Kubuntu. Can someone l...

Zoom controls not appearing after first click, for later clicks

My problem is that the zoom controls don't appear on the mapview after one click, i.e the first click after the application loads. (I am using the deprecated version.) In my application, on a click I position a pushpin on the touched location and also generate a toast with the co-ordinates. After I click the map, the pin is re-loacated ...