android-emulator

Webcam in Android emulator: “Cannot start camera” and “Result too large”

杀马特。学长 韩版系。学妹 提交于 2019-12-29 07:47:25
问题 I have an Android 4.1.2 AVD that needs to use the camera. I tried using my webcam as a substitute in the emulator, but I get this error: [2012-11-16 10:35:37 - Emulator] emulator: ERROR: _camera_client_query_start: Cannot start camera 'AndroidEmulatorVC0' for NV21[640x480]: Result too large How do I fix this error? 回答1: Goto window -> AVD Manager -> select your AVD name ->click Edit button -> Abstracted LCD density click value drop down value select 160. To enable Camera in your Android

Webcam in Android emulator: “Cannot start camera” and “Result too large”

久未见 提交于 2019-12-29 07:47:10
问题 I have an Android 4.1.2 AVD that needs to use the camera. I tried using my webcam as a substitute in the emulator, but I get this error: [2012-11-16 10:35:37 - Emulator] emulator: ERROR: _camera_client_query_start: Cannot start camera 'AndroidEmulatorVC0' for NV21[640x480]: Result too large How do I fix this error? 回答1: Goto window -> AVD Manager -> select your AVD name ->click Edit button -> Abstracted LCD density click value drop down value select 160. To enable Camera in your Android

IBM Worklight - Push Notifications feature does not work in Android emulator

陌路散爱 提交于 2019-12-29 07:19:08
问题 I am trying to set up the sample project for Worklight push notification on Android. When I launch the app in the Android emulator only the first two buttons (isSubscribed and isSupported) are clickable. The other two buttons (Subscribe and Unsubscribe) remain disabled. My steps are: Import the project into Eclipse Replace the SenderID and API Keys with the one obtains from GCM Console in application-descriptor.xml Deploy the PushAdapter (included in the project) Build and deploy Launch the

why does the gingerbread emulator orientation get stuck in apps?

痞子三分冷 提交于 2019-12-29 05:46:11
问题 At first I thought this was a problem with my app, but it seems to be happening in any app (though interestingly, not the home screen) in the gingerbread emulator. To replicate my issue, open eclipse and fire up the android emulator for gingerbread (I'm using the "Google APIs - API Level 9" as my target) So the procedure to duplicate once the emulator loads is press LCtrl-F11 to shift orientation to landscape, then again to switch to portrait Result: In the homescreen: The view rotates to

Where are the additional command line options in Android Studio version 1.5.1 for the emulator

ぃ、小莉子 提交于 2019-12-29 05:10:11
问题 After the latest update to AS, the emulator's additional command line options are missing. I use this primarily for -http-proxy and -scale commands. Any help in locating these options, or it's replacement, would be appreciated. 回答1: It's a known bug in version 1.5: https://code.google.com/p/android/issues/detail?id=195031 The Emulator tab has disappeared from the Run Configurations . You can try to downgrade to 1.4.1: http://tools.android.com/download/studio/builds/1-4-1 来源: https:/

Android Studio Emulator and “Process finished with exit code 0”

给你一囗甜甜゛ 提交于 2019-12-29 04:28:04
问题 I've updated android studio from 3.0 to 3.0.1 but when I launch Emulator it didn't get launched and gives message in event log: Emulator: Process finished with exit code 0 回答1: You need to check: Your size on disk is not full - this's often happen due to creation of some virtual devices that are unused The RAM size of emulator is not minimum as your requirements One more thing that I personally use: Use Pen Drive as a RAM Updated: Use HDD as RAM Right Click on “This PC or My Computer” and

Failed to open the HAX device! HAX is not working and emulator runs in emulation mode emulator

倾然丶 夕夏残阳落幕 提交于 2019-12-29 04:05:07
问题 My Android emulator is running properly but it is showing this error every time I start the emulator. Starting emulator for AVD AVD_for_Nexus_4 emulator: Failed to open the HAX device! HAX is not working and emulator runs in emulation mode emulator: Open HAX device failed emulator: emulator window was out of view and was recentered I do not understand what is the exact problem. 回答1: I think you are trying to run an emulator based on x86. I got the same error when I just download the HAXM

Eclipse, adb, and ddms not detecting Android Emulator

左心房为你撑大大i 提交于 2019-12-29 03:36:26
问题 I wanted to try my hand at programming android devices, so I followed the directions from the android website, installed the sdk, the java sdk, and eclipse. My computer is Windows 7 64-Bit, but I have the 32-bit Java SDK and Eclipse installed since hearing that there are issues with the 64-bit versions. I am running the most recent version of the Android sdk, 4.0 R15. I believe followed all of the instructions for installation, but when I load up a sample (Lunar Lander in this case), it loads

How to get screen width and height

六眼飞鱼酱① 提交于 2019-12-29 02:45:59
问题 I tried to use following code to get screen width and height in android app development: Display display = getWindowManager().getDefaultDisplay(); int screenWidth = display.getWidth(); int screenHeight = display.getHeight(); but I got NullPointerException for my display , why? how to get screen width and height then? 回答1: If you're calling this outside of an Activity, you'll need to pass the context in (or get it through some other call). Then use that to get your display metrics:

Android emulator black screen with “GPU emulation - yes”

别来无恙 提交于 2019-12-29 01:51:32
问题 I'm trying to use the new feature of the android avd features "GPU emulation - yes" It's needed to use GLES2.0 on the emulator. However, when I turn that on, the screen of the emulator goes blank. Here is the output when I call it from command line. 回答1: For those having the same problem and having a nvidia card with optimus... Just install ironhide! sudo apt-add-repository ppa:mj-casalogic/ironhide sudo apt-get update sudo apt-get upgrade sudo apt-get install ironhide Then follow the