Questions tagged [android-emulator]

An Android emulator is software which simulates the functionality of an Android device running the Android OS. Emulator allows developers to develop and test applications without the need of various real devices with different configurations.

The Android emulator is a virtual mobile device running on your computer. The software emulates an Android device, running the Android OS, for debugging applications without needing a variety of devices and OS versions. The Android emulator has various settings to make possible the emulation of a large set of Android devices.

  1. Android Emulator
  2. Using the Android Emulator
  3. Android Emulator Keyboard Commands

See also , a third party Android emulator that provides a very fast and feature rich alternative to the ADT emulator.

11323 questions
3451
votes
77 answers

Why is the Android emulator so slow? How can we speed up the Android emulator?

I have got a 2.67  GHz Celeron processor, and 1.21  GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android Emulator should start fairly quickly on such a machine, but for me, it doesn't. I have followed all the…
Andrie
  • 3,461
  • 3
  • 14
  • 3
1411
votes
32 answers

How can you get the build/version number of your Android application?

I need to figure out how to get or make a build number for my Android application. I need the build number to display in the UI. Do I have to do something with AndroidManifest.xml?
Fahad Ali Shaikh
  • 14,135
  • 3
  • 13
  • 4
1045
votes
23 answers

How do I rotate the Android emulator display?

How can I rotate the Android emulator display to see it in landscape mode?
mahdi
  • 15,691
  • 15
  • 47
  • 69
757
votes
34 answers

How do you install an APK file in the Android emulator?

I finally managed to obfuscate my Android application, now I want to test it by installing the APK file and running it on the emulator. How can I install an APK file on the Android Emulator?
aryaxt
  • 69,636
  • 87
  • 281
  • 421
671
votes
15 answers

Set ImageView width and height programmatically?

How can I set an ImageView's width and height programmatically?
praveenb
  • 9,891
  • 14
  • 55
  • 79
525
votes
14 answers

How to connect to my http://localhost web server from Android Emulator

What can I do in the Android emulator to connect it to my localhost web server page at http://localhost or http://127.0.0.1? I've tried it, but the emulator still takes my request like a Google search for localhost or worse it says that it didn't…
479
votes
63 answers

'App not Installed' Error on Android

I have a program working in the Android Emulator. Every now and again I have been creating a signed .apk and exporting it to my HTC Desire to test. It has all been fine. On my latest exported .apk I get the error message 'App not installed' when I…
Entropy1024
  • 7,269
  • 9
  • 28
  • 30
470
votes
33 answers

How to emulate GPS location in the Android Emulator?

I want to get longitude and latitude in Android emulator for testing. Can any one guide me how to achieve this? How do I set the location of the emulator to a test position?
UMAR-MOBITSOLUTIONS
  • 73,009
  • 94
  • 197
  • 273
445
votes
12 answers

How to remove the Flutter debug banner?

How to remove the debug banner in flutter? I am using flutter screenshot and I would like the screenshot not to have banner. Now it does have. Note that I get not supported for emulator message for profile and release mode.
Tree
  • 19,548
  • 13
  • 65
  • 87
424
votes
12 answers

How to build an APK file in Eclipse?

When I develop the project using Eclipse, the APK file goes on the emulator. But I want to upload my application to a real device. Is there a tool to build an APK file? What is the process? Or is it possible to pull the APK file from the emulator?
sean
  • 8,908
  • 21
  • 63
  • 79
408
votes
28 answers

How do I launch the Android emulator from the command line?

I'm on Mac, working on Android development from the terminal. I have successfully created the HelloWorld project and now I'm trying to run it from the command line in the Android emulator. Which command runs the emulator for my HelloWorld…
Thierry Lam
  • 41,912
  • 39
  • 108
  • 142
370
votes
20 answers

Failed to allocate memory: 8

From today, when I tried to run an app in NetBeans on a 2.3.3 Android platform, it shows me that: Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support…
Denees
  • 8,719
  • 13
  • 45
  • 73
358
votes
28 answers

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…
codeman
  • 8,240
  • 11
  • 47
  • 76
349
votes
18 answers

How to access data/data folder in Android device?

I am developing an app and I know my database *.db will appear in data/data/com.****.*** I can access this file from AVD in Eclipse with help of sqlite manager But I can't access this file in my Android phone. I googled it and it says I need to root…
Naveen Prince P
  • 4,072
  • 3
  • 13
  • 17
332
votes
39 answers

How can I detect when an Android application is running in the emulator?

I would like to have my code run slightly differently when running on the emulator than when running on a device. (For example, using 10.0.2.2 instead of a public URL to run against a development server automatically.) What is the best way to detect…
Joe Ludwig
  • 6,286
  • 7
  • 27
  • 29
1
2 3
99 100