android-emulator

Unable to launch Android application in Eclipse; An internal error occurred during: “Launching myApp”

浪尽此生 提交于 2019-12-18 19:05:38
问题 I'm unable to start up my Android application in Eclipse, I'm getting the following error when I select "Run as Android Application" I have my Android Virtual Device running, can't see any issues with that (I'm able to navigate around the OS on the emulator etc) When I try to "Run as Application" I get the following popup from eclipse An internal error occurred during: "Launching myApp". When selecting "View Error Log" this is as much info as I can get java.lang.NullPointerException at com

Check if view element is added to layout or not programmatically

≯℡__Kan透↙ 提交于 2019-12-18 18:36:54
问题 In my fragment class, I add a child view element programmatically to my layout conditionally : LinearLayout child = (LinearLayout) inflater.inflate(R.layout.child_view, null); LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT,100); container.addView(child, params); Since the above code will be run conditionally, so, at some point, I would like to check if the child view has added or not , how to make this checking programmatically? 回答1: I think you can simply use findViewById

Android Emulator Screen Size Issue

那年仲夏 提交于 2019-12-18 17:37:14
问题 My Android studio emulator screen is off the original positioning and I have tried resizing, reloading the emulator, and Android studio to no avail. What is wrong with the emulator Display? 回答1: Not sure if this helps, but I had this same problem (together with the side panel menu being overly large) after updating from Android Studio 2.3.0 to 2.3.1. After restarting my computer it went away... 回答2: I have Alieanware 17 ( Dell Gaming Series ) when i updated my android studio version after

Execute adb commands from java

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 17:34:45
问题 I want to push a file from my Java program to an Android emulator. Now, I can launch the emulator by using ProcessBuilder and also trap the logcat messages. But whenever I'm trying to use the adb push command in process builder, the process hangs and no output is generated. The code: try { ProcessBuilder proc = new ProcessBuilder("D://android-sdk//platform-tools//adb.exe", "push D:\\final.xml /mnt/sdcard/final.xml"); Process p = proc.start(); BufferedReader br2 = new BufferedReader(new

Running Custom Android ROM on Emulator

落花浮王杯 提交于 2019-12-18 16:22:03
问题 I built a custom ROM based out of AOSP (7.0 for Nexus 6) and I would like to use this ROM with SDK emulator. The lunch combo for the build is 'aosp_x86_64-eng' which I believe should work on SDK emulator. However, I don't see an option in AVD Manager to specify my custom system image. It only allows me to use the listed ROMs from Google. I tried copying my custom ROM's system.img over the stock Nexus 6 AVD but the emulator doesn't launch after that. Note that the emulator that gets generated

Running Custom Android ROM on Emulator

帅比萌擦擦* 提交于 2019-12-18 16:20:01
问题 I built a custom ROM based out of AOSP (7.0 for Nexus 6) and I would like to use this ROM with SDK emulator. The lunch combo for the build is 'aosp_x86_64-eng' which I believe should work on SDK emulator. However, I don't see an option in AVD Manager to specify my custom system image. It only allows me to use the listed ROMs from Google. I tried copying my custom ROM's system.img over the stock Nexus 6 AVD but the emulator doesn't launch after that. Note that the emulator that gets generated

Android Studio Emulator and “Process finished with exit code -1073741511 (0xC0000139)”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 15:27:29
问题 I'm trying to emulate my application using Android Studio Emulator (i'm developing by Android Studio) but I receive this error message: Emulator: Process finished with exit code -1073741511 (0xC0000139) Do what can I do? Problem image: 回答1: Simply follow the below points Open Android Virtual Device Manager Click on Options for Virtual device Step 1: Wipe Data Step 2: Cold Boot Now 回答2: Android Studio Emulator: Process finished with exit code 1. Maybe disk drive is FULL. You can delete some

How to avoid Android getSystemService(Context.SENSOR_SERVICE) hanging emulator?

隐身守侯 提交于 2019-12-18 15:17:25
问题 Whenever I call this method in the Android emulator: SensorManager sensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE); The emulator hangs. When searching for this problem, I find a lot of references of this being fixed back in 2009, but I'm currently using the latest SDK/Tools available at the current time (Dec 2011). API level 8 / v2.2. Must I really implement code for checking if I run in the emulator and avoid all sensor based code? 回答1: I experienced something similar

How to update Android emulator without Android Studio?

自闭症网瘾萝莉.ら 提交于 2019-12-18 14:12:10
问题 I don't have Android Studio, just the Android SDK. When I launch one of my Android emulators using the Android Virtual Devices (AVD) Manager, I get the following message: Your emulator is out of date, please update by launching Android Studio . According to the steps, it seems that one could update the emulator even without Android Studio just by using the Android SDK Manager. But there is no SDK Tools tab. Is the SDK Manager which is launched as a standalone application different from the

Android emulator window top bar out of the screen

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 14:01:27
问题 I am using windows 7 when my windows toolbar on the right hand side, the android emulator out of the screen. This causes me cannot move the window. How to fix this 回答1: Press the Alt-Space keys and you should get the window with the option allowing you to move the emulator window. Then move it e.g. using keyboard arrows. It works for me on Windows 7. 回答2: Try to change your screen resolution temporarily (e.g. to a lower value). Then switch back to your original screen resolution. That should