android-emulator

How can I speed up deployment to the android emulator?

匆匆过客 提交于 2019-12-03 09:03:17
It takes several minutes each time I try to deploy an app for debugging on the emulator. I have installed HAX and that made the start of each instance and the execution much faster. I haven't optimized my computer for running the emulator in any other way. And deployment is still painfully slow. Is there any measures I should take to speed it up? Current OS are Win8 and Ubuntu 13.4 And I wan't to stress that the question is about speeding up deployment on an allready running instance of the emulator. The startup of the emulator itself sometimes is faster than the actual deployment of the app.

Copying database in assets to Android's internal databases fails at first attempt in the emulator

南楼画角 提交于 2019-12-03 08:59:14
I have a database (1.69 MB) in assets to need copy to internal databases folder. My problem is that for the first try db is copied but not with exact tables. It becomes 3072 (3kB) size in the emulator file explorer. When I look in that db with sqlite explorer I can't see my tables. The only table exists in db is android_metadata table with one column of my locale info. But if I clear that db from databases and re-run the application, it seems working for this time. Why does it fail for the first try? How can I be sure it won't happen in real devices? Is that a bug with the emulator? finally i

AudioRecorder in Android Error Invalid buffer size

时光毁灭记忆、已成空白 提交于 2019-12-03 08:53:13
I need to record and play audio simultaneously and i use the help of 2 threads for it.here is the code recorder = new AudioRecord(AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSize); if (recorder.getState() == android.media.AudioRecord.STATE_INITIALIZED) recorder.startRecording(); isRecording = true; audioPlayer = new AudioTrack(AudioManager.STREAM_MUSIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSize, AudioTrack.MODE_STREAM); audioPlayer.play(); new Thread(new Runnable() { @Override public void

APK path is not specified for module “Example-Example”

丶灬走出姿态 提交于 2019-12-03 08:52:26
问题 I am newbie in the world of android app development. I was creating a project Example on Android Studio . I have my LunchList.java file in src/main/java/apt.tutorial.lunchlist .Till yesterday Everything was working fine. But when I open android Studio today I got an error saying "The modules below have been removed from Gradle structure. Check those to be removed from the project too:" ☑ LunchList ☑ LunchList-LunchList And there is OK and Cancel Button. I don't want to remove them. So I click

haxm hangs emulator on osx

馋奶兔 提交于 2019-12-03 08:51:13
After installing Intel HAXM on my osx 10.6.8, eclipse juno, adt 21.1.0 I am not able to run any of the emulators. The emulator process fries my cpu as in: where cpu usage never goes below 100%. Yet I have a huge black screen on the emulator. HAXM extension does not throw any errors. At console, I read [2013-04-02 20:09:58 - myapp] Launching a new emulator with Virtual Device 'x86' [2013-04-02 20:10:03 - Emulator] HAX is working and emulator runs in fast virt mode [2013-04-02 20:10:07 - myapp] New emulator found: emulator-5554 [2013-04-02 20:10:07 - myapp] Waiting for HOME ('android.process

Android 4.0.3 emulator crashes: Failed to allocate memory: 8

心已入冬 提交于 2019-12-03 08:43:02
问题 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

Publisher closed input channel or an error occurred. events=0x8

若如初见. 提交于 2019-12-03 08:42:43
问题 02-12 18:48:57.049: E/InputQueue-JNI(4659): channel '2be9da40 com.forwardapps.liveItems.LiveItemsService (client)' ~ Publisher closed input channel or an error occurred. events=0x8 I'm getting this error in Ice Cream Sandwidth(ICS) whenever I set my livewallpaper as the background. It works fine on all other versions of android. Does anyone know what's going on here or could they explain it? 回答1: Are you actually seeing a problem, or just being troubled by the error message? This message is

PANIC: Missing emulator engine program for 'x86' CPU. windows 10

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 08:27:07
I have this cordova app and tried to run cordova platform add android cordova emualate android but it give me below error from the console and when I check from the android studio, everything seems installed below is my android studio info and I my environment variables and I can confirm from the folder location that those path I put existed, any help, ideas please? Check this answer: PANIC: Missing emulator engine program for 'x86' CPU. and Mac and "PANIC: Missing emulator engine program for 'arm' CPU." For newer version of Android SDK, the emulator path should be /<xxx>/Android/sdk/emulator

Pixel launcher keeps stopping issue in Android 7.1.1 (API 25) emulator

耗尽温柔 提交于 2019-12-03 08:19:50
问题 I have created an Emulator using android 7.1.1 (API 25) CPU X86. When I start the emulator its showing pixel launcher keeps stopping issue. I have checked with CPU x86_64 also but same issue. Here is the screenshot: Here is my details config: 回答1: Selecting emulated performance --> graphics:Software-GLES 2.0 option in AVD setting.Solves my problem. 回答2: EDIT It seems like the issue is solved in Android Studio 2.2.3. If for some reason you still see this problem, the solution below works.

Android Emulator cannot connect to webcam with “unrecognized pixel format error”

拥有回忆 提交于 2019-12-03 08:17:27
After upgrading my macbook to Yosemite, I have been getting the following error whenever I launch an android emulator. I've tried all combinations of settings, but all report the same error. Any attempt to launch the built in camera app, or use the camera in my own app produces a crash. Below is the error I get when the emulator launches. Running the emulator with additional debug flags did not produce any additional useful info. emulator: ERROR: Unrecognized pixel format 'v024' emulator: ERROR: Pixel format 'v024' reported by the camera device is unsupported This is an example of one of my