android-emulator

Need help correctly emulating the Samsung Galaxy Nexus with AVD

风流意气都作罢 提交于 2019-12-21 17:24:12
问题 I'm working to ensure my app is getting tested on ICS properly using the popular Galaxy Nexus as a basis. I'd like to emulate it as faithfully as possible. I've created an AVD with the following parameters (from config.ini). This was mostly created using the GUI (disk.dataPartition.size is a hand-edited param based on other articles I've read). The memory values may be on the low side but that's not causing a problem for me at the moment. Since the device had no external sdcard I've said "no"

Android Emulator having issues with Geolocation

ぐ巨炮叔叔 提交于 2019-12-21 17:06:03
问题 I have been using Android and the 2.2 emulator for a bit now and just started running into an issue. My geolocation is not being set in the Emulator. At first I thought it was an issue with PhoneGap 0.92 but after reverting to .91 and opening an older project the same holds true. In DDMS my coordinates are set and I 'send' them. I also telnet and issue the geo fix command and I get a OK response. It seems all is well but for some reason the emulator still has no clue. I found some older posts

Bus error when running Android Emulator

陌路散爱 提交于 2019-12-21 13:44:44
问题 I am running emulator for Android 4.4. On running command emulator -avd myAVD it gives Bus error on console. How to fix it? 回答1: You want to be using emulator64-arm , it should be located in the tools folder, at the same place as the other emulator. 回答2: Turned out that I had to use emulator64-x86 rather 32 bit default emulator file. I simply removed emulator file and renamed emulator64-X86 as emulator . It worked then 来源: https://stackoverflow.com/questions/22709471/bus-error-when-running

Show Dialog nearly full screen in my case (With ActionBar & overlay)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 12:38:39
问题 I am working with Android Support package. I have created a dialog: Dialog dialog = new Dialog(activity, android.R.style.Theme_Translucent_NoTitleBar_Fullscreen); Since I would like the dialog show in a full screen, so I applied the theme Theme_Translucent_NoTitleBar_Fullscreen to it & it works. I have following two questions: I would like my dialog to show like full screen still but leave the top ActionBar not be covered by it, what Theme should I use then? How to have an gray color overlay

Does Visual Studio Emulator for Android still support drag and drop package installation?

ε祈祈猫儿з 提交于 2019-12-21 09:45:21
问题 I installed a package on Visual Studio Emulator for Android by drag-and-drop before. I got a new update yesterday. The emulator does not seem to support drag-and-drop anymore. Could anyone shed some light on this? 回答1: This can happen if you are running the emulator with elevated permissions. Try re-running without elevation (not as Administrator). 回答2: It's likely that the emulator is unable to connect to ADB. See this document: https://msdn.microsoft.com/en-us/library/mt228282.aspx

Emulator disconnect frequently and Android Studio Stuck. How To fix it?

感情迁移 提交于 2019-12-21 09:26:37
问题 I have a strange problem which cannot find any fix for it. Every thing is OK for the first time when i open emulator and AVD run normally. but after 5-10 minutes, the emulator disconnect,it lose it's internet connection and i cant connect to it,also the Android Studio completely stuck and nothing happen ! I should close the emulator and after that everything become normal again. These are what I tested : adb kill-server and then adb start-server I also tried connecting and disconnecting again

STORAGE application( stock app) crashing (in android EMULATOR)

不打扰是莪最后的温柔 提交于 2019-12-21 08:50:10
问题 When I try to open the Storage from Settings menu in the emulator, it(always) crashes with following logcat-output java.lang.NullPointerException at com.android.settings.deviceinfo.StorageVolumePreferenceCategory.updatePreferencesFromState(StorageVolumePreferenceCategory.java:238) Here are the details of my AVD: Name: Mx Path: /home/vvy/.android/avd/Mx.avd Target: Android 4.2.2 (API level 17) ABI: armeabi-v7a Skin: 480x800 Sdcard: /home/vvy/Documents/ANDU/sdC.img _____________________________

How to type in Android Emulator using PC-Keyboard

北战南征 提交于 2019-12-21 06:47:10
问题 I can not type in Emulator using PC-Keyboard. can anyone help me ? 回答1: Go to windows-> Avd Manager . Select your AVD and edit it and add keyboard support under Hardware section . Make its boolean value true and Enjoy typing with PC's keyboard. 回答2: For those who are using Android Studio. Open Android Virtual Device Manager. Click the ' Pencil icon ' align with the selected Emulator. (A dialog will popup) Select Show Advance Settings button. Find ' Enable Keyboard Input ' and ensure it's

How to get the MAC address of an android device(WIFI is switched off) through code?

不想你离开。 提交于 2019-12-21 06:06:15
问题 I need to design an Android app that should display the MAC address of the device.. I have already done the following coding.. WifiManager wifimanager = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiInfo winfo = wifimanager.getConnectionInfo(); String MACAddress = winfo.getMACAdress(); But the problem is, this code is working only when wifi is turned on, but my requirement is to find the MAC address whether wifi is turned on or not. 回答1: Here is the code to getMac Address without

trouble running the emulator

只谈情不闲聊 提交于 2019-12-21 06:00:12
问题 If I run my application when there is allready an emulator running, the applications isn't run on the existing AVD, but a new one is started. [2011-12-22 18:03:15 - Report_v6_2] ------------------------------ [2011-12-22 18:03:15 - Report_v6_2] Android Launch! [2011-12-22 18:03:15 - Report_v6_2] adb is running normally. [2011-12-22 18:03:15 - Report_v6_2] Performing mast.avalons.ReportActivity activity launch [2011-12-22 18:03:15 - Report_v6_2] Automatic Target Mode: Preferred AVD 'Acer' is