android-emulator

Android: failed to allocate memory

你说的曾经没有我的故事 提交于 2019-12-17 04:55:19
问题 I'm trying to create an emulator with 2047 mb ram. When I run it, I get this error: [2011-02-22 14:24:14 - Emulator] [2011-02-22 14:24:14 - Emulator] This application has requested the Runtime to terminate it in an unusual way. [2011-02-22 14:24:14 - Emulator] Please contact the application's support team for more information. [2011-02-22 14:24:26 - Emulator] Failed to allocate memory: 8 I understand that lowering the number will make it work. But I'd rather have it with more ram, so I can

What is sharedUserId in Android, and how is it used?

别等时光非礼了梦想. 提交于 2019-12-17 03:07:10
问题 I am confused in sharedUserID.what is use of sharedUserId?How to use?Where to use in android? 回答1: SharedUserId is used to share the data,processes etc between two or more applications. It is defined in AndroidManifest.xml like, <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:sharedUserId="android.uid.shared" android:sharedUserLabel="@string/sharedUserLabel" ...> and define the shared parameter in Android.mk for that app, like LOCAL_CERTIFICATE := shared Hope its

How to set Internet options for Android emulator?

房东的猫 提交于 2019-12-17 02:35:21
问题 I've been using this method to gain access to internet from my Android emulator emulator -http-proxy <<proxy-name>> -avd <<avd_name>> 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 Manager" either. 回答1: You could also try explicitly specifying DNS server settings, this worked for me. In Eclipse: Window>Preferences>Android

Android emulator: could not get wglGetExtensionsStringARB error

纵然是瞬间 提交于 2019-12-17 02:31:31
问题 I am getting this error in the android emulator logs since I updated the SDKManager and ADT: [2012-07-10 15:51:23 - Emulator] could not get wglGetExtensionsStringARB What does it mean? And is there anything I can do about it? 回答1: I faced the similar problem. In my case I had created the new virtual device and had enabled the snapshot. I just unchecked the checkbox Go to AVD Manager -> Select the device -> click Edit and uncheck the Enabled checkbox. I hope this works. 回答2: When you create

No internet on Android emulator - why and how to fix? [closed]

柔情痞子 提交于 2019-12-17 02:29:16
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am trying to use internet with the Android emulator, but with no success. Any ideas? 回答1: If by "use internet", you mean you can not

How to set android layout to support all screen sizes?

余生颓废 提交于 2019-12-17 02:28:38
问题 I am developing a program on android version2.2. I have read many documentation on supporting multiple screen sizes but still confused. I designed a layout file, that supports for large and normal screens, when am trying it with small screen it is not adjusting the layout to fit the screen. I used this code in the manifest also. <supports-screens android:resizeable="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="true" /> The

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

为君一笑 提交于 2019-12-17 02:25:03
问题 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 project? I already have the Android tools and platform-tools in my PATH. Edit: How do I tell the emulator to run my HelloWorld project from the command line? I've already built the project with ant. 回答1: I assume that you have built your project and just

Android Emulator sdcard push error: Read-only file system

微笑、不失礼 提交于 2019-12-17 02:08:31
问题 I am developing under Android 1.6 (Android SDK 2.1). I create a avd by using avd manager in Eclipse. When I launch this avd, I found that the /sdcard directory's permisson is "d---------". So I can't push file to the sdcard. Does anyone know how to solve this problem? 回答1: I found this works $./adb shell $su mount -o rw,remount rootfs / chmod 777 /mnt/sdcard exit Source: http://www.coderanch.com/t/611842/Android/Mobile/Android-emulator-sdcard-writable 回答2: Once you started the Emulator from

How to fix: “HAX is not working and emulator runs in emulation mode”

a 夏天 提交于 2019-12-17 01:40:54
问题 Question is I get "HAX is not working and emulator runs in emulation mode", is this related to Intel x86 Emulator Accelerator (HAXM) installation and running avd with cpu set to CPU Intel Atom (x86)? And even though it feels like AVD runs faster after i installed HAXM, does this message indicates that AVD performance is hindered. Should it be fixed and if so, how? I am running on mac os x 10.9.1. Listing what is installed on my system via android sdk manager: Tools Android SDK Tools Rev 22.3

How to fix: “HAX is not working and emulator runs in emulation mode”

≯℡__Kan透↙ 提交于 2019-12-17 01:40:06
问题 Question is I get "HAX is not working and emulator runs in emulation mode", is this related to Intel x86 Emulator Accelerator (HAXM) installation and running avd with cpu set to CPU Intel Atom (x86)? And even though it feels like AVD runs faster after i installed HAXM, does this message indicates that AVD performance is hindered. Should it be fixed and if so, how? I am running on mac os x 10.9.1. Listing what is installed on my system via android sdk manager: Tools Android SDK Tools Rev 22.3