avd

Android Emulator Skin Layouts - Are there tools and a specification?

ⅰ亾dé卋堺 提交于 2019-12-03 16:34:04
Skins for Android emulators are defined in a directory among /platforms/android-xxx/skins Additional vendor-specific skins also in the folder /add-ons). Here parts of the skin like images for backgournd and buttons are stored and a file that organizes these parts into the skin which is called layout. The layout file contains a herarchical list of key-value pairs, defining parts and layouts. Here is a fragment as illustration: display { width 480 height 800 x 32 y 106 } background { image htc-evo-4g.png x 0 y 0 } button { soft-left { image key.png x 191 y 921 } home { image key.png x 73 y 921 }

Android Emulator: How to Copy an Emulator / AVD?

好久不见. 提交于 2019-12-03 16:30:41
I am currently making an upgrade of an existing app that's already on the Google App store (aka Google Play). I want to test that the data conversions go smoothly when customers upgrade. I have an AVD with the old version of the app installed. The usual thing would be to run the new version on this app and see if it works. But the problem is that after doing this, that particular AVD is no longer mimicking that old state. I'd like to make copies of this AVD/Emulator (yeah, the whole thing!) so that I can make repeated tests. This seems like something that would happen often, but I can't find

onEditorAction() is not called after Enter key has been pressed on Jelly Bean emulator

南楼画角 提交于 2019-12-03 14:55:10
问题 I'm having a problem with the behavior of the latest Jelly Bean emulator. I have several EditTexts in my app. An OnEditorActionListener provides special handling when a user presses the ENTER key on the keyboard. This worked up until ICS, but now on Jelly Bean the listener callback method onEditorAction() no longer gets called. Only a new line is inserted into the EditText . This can be reproduced this way: EditText testEditText = new EditText(context); testEditText.setOnEditorActionListener

How to shut down Android emulator via command line

亡梦爱人 提交于 2019-12-03 14:48:46
问题 I am unable to stop the emulator from command prompt gracefully. I am using Linux Ubuntu 10.04 version (64-bit) and Android SDK Version is 2.3. I started emulator using its snapshot. Now my concern is to shut down the running instance of Emulator gracefully. I have tried with kill -9 (process Id for emulator running) which shut downs the emulator but next time it does not start as its snapshot got corrupted. Please help me to avoid forceful shutdown of the an emulator. Any idea how to fix it?

Android Studio - Panic: Could not open AVD

ε祈祈猫儿з 提交于 2019-12-03 12:08:59
After many hours of fixing Gradle issues, I was able to build my test app in Android Studio. But when I tried to run it in an AVD, it just won't open. This is the log: Waiting for device. C:\Users\Rahaman\AppData\Local\Android\android-studio\sdk\tools\emulator.exe -avd testAVD -netspeed full -netdelay none PANIC: Could not open: testAVD P.S.: I've defined the environment variable ANDROID_SDK_HOME to point to the .android directory. Okay, my libraries are in D: drive. So I had to copy the .android folder from d:\myName\ to c:\Users\myName\ . That fixed it. You can use mklink (builtin of cmd.exe

Running Android emulator with -noaudio option returns “qemu-system-i386.exe: -audio: invalid option”

…衆ロ難τιáo~ 提交于 2019-12-03 12:06:05
I'm running Windows 10, 64 bit, Android Studio 2.2.2. When creating an AVD from the Android SDK's AVD Manager, I don't see an option to completeley disable audio (input and output). I'm using Android SDK which has verion of Android Tools 25.2.2). In older AVD manager, i recall that option to completely disable audio on AVD was present. When I want to create a batch script, to run with -noaudio option, as mentioned in the Google's official Control the Emulator from the Command Line page, I'm running the command as emulator.exe -avd Nexus_4 -noaudio , but it throws error qemu-system-i386.exe:

Android emulator (Nexus_5_API_23_x86) not starting

℡╲_俬逩灬. 提交于 2019-12-03 11:55:23
I'm on Android Studio 1.3.2, with Android SDK 6 and Java SDK 8. I'm trying to run a hello world app, but the emulator keeps loading forever. AVD: Nexus_5_API_23_x86 (I did install everything for 64bits, I'm not sure what this 'x86' is doing here). Logcat (filtering errors only, and showing the final, as the full log is too large and Stackoverflow doesn't allow me to post): at libcore.io.IoUtils.readFileAsString(IoUtils.java:114) at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96) at android.text.Hyphenator.init(Hyphenator.java:154) at com.android.internal.os.ZygoteInit

Android AVD, No Target Selected

我的未来我决定 提交于 2019-12-03 11:18:53
I am trying to create an AVD, but after selecting the target also, it is showing "No Target Selected". to solve the problem. install one of CPU System Images. for example: ARM EABI v7a System Image Falaque This problem has been solve in another thread: AVD Manager - Cannot Create Android Virtual Device To solve the problem: You need to install the CPU system image. e.g. open your SDK manager and install ARM EABI v7a System Image under the Android 4.2 section. If you are using Eclipse, restart it.(I stuck here ;) Emann Tumala Saligue You must install one CPU on the android ADV and then restart

AVD Emulator stuck on loading screen in Android Studio

孤街浪徒 提交于 2019-12-03 10:33:43
I decided to try Android Studio 2.0 having used Eclipse in the past but I'm having considerable difficulty getting the AVD to load correctly. I've done quite a bit of googling and research into the problem, both here on SO and Google.So far nothing has worked. The emulator simply hangs on the android load-up screen ever time I try to run it. I've seen it advised to use Genymotion but I would first prefer to resolve the issue natively in Android Studio to feel confident going forward using the IDE for building projects. Here's what I've tried: Complete reinstall of Android, SDK and SDK Tools

Android Emulator: Unable to start webcam to capture picture in emulator

拟墨画扇 提交于 2019-12-03 10:32:19
问题 I have created an armeabi API 21 emulator in the AVD manager in Android Studio, set it to use the webcam as a front camera, and launched it. The problem is that it's not able to open it, as I'm getting this error: emulator: ERROR: camera_device_start_capturing: VIDIOC_STREAMON on camera '/dev/video0' has failed: Timer expired emulator: ERROR: _camera_client_query_start: Cannot start camera '/dev/video0' for NV21[640x480]: Inappropriate ioctl for device How can I solve this? The webcam works