android-emulator

How to test Calendar Event on emulator?

Hi everybody, I am developing an application which requires to add Calendar event. I have written the code for inserting event to the calendar. But whenever i run my application, everytime i get error that "Fail to find provider info for Calendar" and it also throws me NullPointerException error. So, what it means and i found that emula...

how to import files into the sdcard on emulator in android?

hi all, i want to load some photos into my sd card image in the emulator. how to do this by command prompt.how to do that? ...

How to use 3G Connection in Android Application instead of Wi-fi?

How to use 3G Connection in Android Application instead of Wi-fi? I want to connect a 3G connection, is there any sample code to connect to 3G instead of Wi-fi? ...

How to delete a contact in android 2.1

Hi, I have added one contact to android by following code. ContentValues values = new ContentValues(); Uri rawContactUri = getContentResolver().insert(RawContacts.CONTENT_URI, values); long rawContactId = ContentUris.parseId(rawContactUri); values.clear(); values.put(Data.RAW_CONTACT_ID, rawContactId); values.put(Data.MIMETYPE, ...

how to show the web view as OverviewMode(completely zoomed out) in android? how??

i want to load my web view as a overview mode(completely zoomed out). that is the webpage zoomed out completely at the initial state. i coded like this: webview_obj.getSettings().setLoadWithOverviewMode(true); its not working. what is the mistake and how to rectify it? ...

Differences in Android emulator Mac vs PC

This is probably a basic question, but can someone tell me why an identical AVD created identically on a MAC (10.6.2) and then on a PC (Windows 7) display 2 different virtual keyboards? The keyboard on the MAC appears to be the full keyboard. The Keyboard on the PC displays alpha numeric (for example, with GHI over the number 4), and a...

does M4V format file play in android??

i have a url for the video file.the format of that file is itunes M4V. i want to play it in android mobile. is it possible? if not so let me know? and also i cannot play the mp4 file in emulator why? ...

Android : Sample KML/GPX compatable with DDMS

I am testing out an Android application I wrote with google maps. The DDMS is not loading the KML/GPX files I found on the internet. What I assume is that the files are relatively old in format (Maximum 2007) and the DDMS cannot read them. I was wondering if there is somewhere I can download a sample KML or GPX file that I can use to t...

callback in android?

in android application development, i frequently go through the word "CALLBACK" in many places. i want to know want it means to tell us technically. and how i can manage the callback of the applications. i would need a guidance to understand about it.... ...

Ringing myself using android emulator

Hi all, I am developing a small application on Google's android emulator. I am trying to figure out how I can simulate a phone call from one instance of an emulator to another (both running on my computer). Does anyone know how this can be done? Thank you very much. ...

back button is working on emulator but it is not working in device in android

Hi all, am new to this android development. I have index page and am displaying every links in the same page using div concept. Now i want to use the back button for my application i have developed code to handle the div and it is working in the AVD(Andriod Virtual Device 5556) but if i upload the apk into my device it is not working. ...

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? ...

is there a default back key(on device) listener in android?

I am having two activities A and B. when i click the button in A that will shows B. when i click the Button in B it backs to A. i had set the overridePendingTransition method after the finish() method. it works properly. but in case the current Activity is B. on that time i click the default back button in the device. it shows the right ...

how to maintain a Home Button Presistent state of an app in Android?

hi all, i am working on my App. in between i pressed the Home button on the device. my app will go to the background tasks. After that i long press the home button it will show my app as a persistent state. i.e where and what i had done in my app. But i click my app in the directory window it restarts my app. i want to do if my app is i...

Android emulator is based on QEMU. Can I use KVM with it?

My laptop supports hardware virtualization (AMD SVM) and I know that: QEMU can make use of hardware virtualization through KVM; The Android emulator is very much based on QEMU Natural question follows: can I combine the two (Android+KVM) to get improved performance in the emulator? ...

How to play ringtone/alarm sound in Android

I have been looking everywhere how to play a ringtone/alarm sound in android. I press a button and I want to play a ringtone/alarm sound. I could not find a easy, straightforward sample. Yes, I already looked at Alarm clock source code... but it is not straightforward and I cannot compile it. I cannot make this work: Uri alert = Rin...

Switching to landscape mode in Android Emulator

This is probably a pretty easy to answer question, but I can't find the solution myself after a couple hours of searching the documentation and Google. I set the orientation of my Android app to landscape in the AndroidManifest.xml file: android:screenOrientation="landscape" However, when I run the app in the simulator, it appears sidew...

Android: how to change the time in emulator?

Hey guys, Ive noticed that the time in my emulator for android projects is wrong. Its one hour behind. How do I go about changing the time and can I do it in eclipse? Thanks ...

Android ddms screen capture with skin?

Hi, Can we use DDMS to take a screen capture with a device skin? Right now I'm just getting the exact screen rect area in my screen captures, Thanks ...

How do I change the Mobile Country Code (MCC) in the Android Emulator?

My Android application needs to react differently to different Mobile Country Codes. It seems like it is hardcoded to mcc310 (US). I can read this value from TelephonyManager.getSimCountryIso() or by using a resource folder like res/values-mcc123/, but how do I set this value in the emulator? ...