android-emulator

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

戏子无情 提交于 2019-12-02 21:59:13
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? To change what TelephonyManager.getSimCountryIso() returns, simply execute adb shell setprop gsm.sim.operator.iso-country no and it now returns no (Norway). If you want to change what TelephonyManager.getSimOperator() returns (MCC+MNC) then execute adb shell setprop gsm.sim.operator.numeric 24201 and you

How to run or debug on android phone instead of emulator?

依然范特西╮ 提交于 2019-12-02 21:10:00
Android emulator is so slow that it is not possible to test run applications. Is there anyway to debug/run applications on real phone with IDE instead of emulator? fleetway76 You can generally switch on USB debugging on your handset and connect it up to your PC over USB. The handset will then appear to adb in the same way as an emulator. You might need to download drivers from your handset manufacturer for your phone. On my HTC desire the setting is under: Settings -> Applications -> Development -> USB Debugging Enable USB-Debugging on your phone. Connect it to your computer. ADB should

How can I create an Android AVD for a Samsung Galaxy Note 2?

烂漫一生 提交于 2019-12-02 20:45:52
I want to create an AVD to test apps on a Samsung Galaxy Note 2. I have checked similar questions, but they are intended for older AVD versions. Which device should I use? Should I set the target as "Android 2.3.3 - API Level 10"? RobA I know the following: Screen Size 5.55" Resolution 720w x 1280h Density xhdpi RAM 2 GiB Hardware buttons* The rest I just left at the defaults: Sensors: Accelerometer, GPS, Gyroscope, Proximity Sensor Cameras: Front, Rear Input: No Nav Size: Large Screen Ratio: long Buttons: Software Portrait: Enabled Device States: Enabled *Picture does not show the "Buttons"

Android 4.0.3 emulator crashes: Failed to allocate memory: 8

狂风中的少年 提交于 2019-12-02 20:38:48
The problem started when I changed the skin built-in display setting to WXGA720. Then everytime I'm trying to run the emulator it says the following message: Starting emulator for AVD 'android403' Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I already tried to lower down the RAM size to 800 MB and then 512 MB (or even 256) but it didn't work either... I don't know what to do... Here's a screenshot of the emulator settings window: Thanx upfront. I do sometimes have

Run react-native on android emulator

偶尔善良 提交于 2019-12-02 20:19:33
I try to run react-native app on genymotion android emulator on my mac. When I write react-native run-android It gets Running /usr/local/opt/android-sdk/platform-tools/adb reverse tcp:8081 tcp:8081 error: closed Could not run adb reverse: Command failed: /usr/local/opt/android-sdk/platform-tools/adb reverse tcp:8081 tcp:8081 Building and installing the app on the device (cd android && ./gradlew installDebug... Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development

Can't find Android 8.0-8.1 (Oreo) API 26-27 ARM System Images

前提是你 提交于 2019-12-02 20:17:14
Are there anywhere Android 8.0 (Oreo) API 26 and Android 8.1 (Oreo) API 27 ARM System images (ARM, not x86 Intel) for AVD Manager? Thanks. Unofficial? Beta? Alpha? Any? You should build Android sources for specific platform by yourself The ARM images for API 26 and 27 are not available yet. ARM images available till API 25 only. Note: Google recommended an x86 system image on an x86 host for better emulation performance. Recent updates enabled computers with AMD processors to run Android Emulator and you don't need to install ARM images anymore. Taken from the Android Developers blog: If you

Why can't I boot an AVD from Eclipse with 1024 MB of RAM?

你离开我真会死。 提交于 2019-12-02 19:43:27
So, like a lot of people starting Android development with Eclipse, even with a fast machine, I notice that the emulator runs frustratingly slow. I search SO for any tips to make it run faster and I run across this question , whose top answer suggests a couple of things, including making the AVD have more RAM. They suggest 1024MB: Sounds good. But when I try to launch it, I get this: Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. If I set it to 512MB (up from the

Connecting to Android Emulator through VNC

你说的曾经没有我的故事 提交于 2019-12-02 18:55:24
How can we connect to Android emulator through VNC with the help of noVNC using javascript? i would like to render the emulator on my browser.How can that be done.thanks You can start the emulator on the console with emulator -avd <the avd name> and add options for qemu with -qemu in your case -qemu -vnc :2 will start a VNC server listening at Port 5902 . If you get an error, that your keymap was not found you can creating a symlink from android-sdks/tools/keymaps to the keymaps folder of your local qemu install. Until now I couldn't find out, how to forward the mouse to the VNC server. You'll

Emulator: Unexpected feature list: MultiDisplay VulkanNullOptionalStrings YUV420888toNV21 YUVCache

给你一囗甜甜゛ 提交于 2019-12-02 18:12:41
My android emulator showing error & not opening. If someone helped, I am very thankful. Emulator: WARNING: unexpected system image feature string, emulator might not function correctly, please try updating the emulator. Emulator: Unexpected feature list: MultiDisplay VulkanNullOptionalStrings YUV420888toNV21 YUVCache Gradle build finished in 11 s 518 ms ADB rejected shell command (getprop): closed Emulator: Process finished with exit code -1073741819 (0xC0000005) I have Dell G5 5587 with Win10 and I have exactly same issue from yesterday morning. After some updates to Android studio emulator

How to configure the Android Emulator to show onscreen buttons like the new Galaxy Nexus?

こ雲淡風輕ζ 提交于 2019-12-02 17:56:10
I would like to convert/adapt my application to Android 4.0. To do so I plan to use the ActionBar on devices that support it. All Android version >= 3.0 do so. Furthermore devices that do not have a hardware menu button seem to show an "menu" button on the actionbar automatically. When I test my application on the emulator using API level 13 this does work as expected... ... but somehow I'm not able to setup the emulator to behave the same way while emulating a phone on API level 14 (Android 4.0). When I try to set " Hardware Back/Home keys " to false there are no buttons at all (not on the