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.

12292 questions
3526
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,451
  • 3
  • 16
  • 3
1562
votes
36 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
  • 15,645
  • 3
  • 15
  • 4
1053
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
  • 16,257
  • 15
  • 52
  • 73
831
votes
36 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
  • 76,198
  • 92
  • 293
  • 442
743
votes
29 answers

How can I remove the debug banner in Flutter?

I'm using flutter screenshot and I expected the screenshot to not have a banner, but it has. Note that I get a not supported for emulator message for profile and release mode.
Tree
  • 29,135
  • 24
  • 78
  • 98
718
votes
15 answers

Set ImageView width and height programmatically?

How can I set an ImageView's width and height programmatically?
praveenb
  • 10,549
  • 14
  • 61
  • 83
664
votes
17 answers

How to install Google Play Services in a Genymotion VM (with no drag and drop support)?

VmHow can I install Google Play Services in a Genymotion emulator with no drag and drop support? I can't install it as mentioned in Stack Overflow post How do you install Google frameworks (Play, Accounts, etc.) on a Genymotion virtual device? due…
anp8850
  • 16,688
  • 4
  • 16
  • 17
596
votes
18 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…
546
votes
40 answers

Android Studio error "Installed Build Tools revision 31.0.0 is corrupted"

I'm on Android Studio 4.2.2. I created a new project and haven't added anything to the starter code and whenever I click build or run, I get this error: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK…
526
votes
66 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,847
  • 9
  • 30
  • 32
512
votes
36 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
  • 77,236
  • 95
  • 209
  • 278
476
votes
31 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
  • 45,304
  • 42
  • 117
  • 144
429
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
  • 9,198
  • 22
  • 65
  • 80
393
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,521
  • 3
  • 16
  • 17
375
votes
41 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,756
  • 7
  • 30
  • 29
1
2 3
99 100