avd

How to set the location manually in Android Studio emulator

[亡魂溺海] 提交于 2019-12-23 11:51:25
问题 I have a project in which I need to get the location as India. But in my emulator I am not getting the location. I need to get the location as India when I take the google maps from my emulator, it is showing the current location in middle of the sea. API level I am using is 27. Emulator I use is Nexus 5x. how to get the current position in this Emulator and also manually. I tried to edit the location in Emulator and tried to give the latitude and longitude but it is not working. 回答1: First

Default AVD in Android Studio

你说的曾经没有我的故事 提交于 2019-12-23 07:57:51
问题 Does anyone know of a way (or if it's even possible) to set the default preview AVD in Android Studio v0.4.5. Every time I create a new activity it shows it in a Nexus 4 preview but as I have TEGRA Note 7 and have a custom AVD created for that, I want to see that as the default. Is this possible and, if so, can anyone advise how to do it? I've checked all the settings but can't see anything that jumps out. Thanks in advance. 回答1: In Android Studio 1.2.2, I was able to solve this problem by

Checking NFC feature on Android Device

牧云@^-^@ 提交于 2019-12-23 01:12:58
问题 This is in response to question Step #1: Put this in your manifest: <uses-feature android:name="android.hardware.nfc" android:required="false" /> Step #2: Call hasSystemFeature(PackageManager.FEATURE_NFC) on PackageManager to see if NFC is available on the current device i set the API level to 8,Step 1 is ok, but when I write hasSystemFeature(PackageManager.FEATURE_NFC) it says Feature_NFC doesnot resolve to a field, Feature_WIFI FEATURE_BLUETOOTH FEATURE_CAMERA are the options there. I have

Android Emulator running into loading problems

旧街凉风 提交于 2019-12-22 17:37:15
问题 Up until 2 days ago, everything has been working fine and perfect. I was using the Nexus 5x and 4 emulators with no issues apart from a few crashes on the 5x due to virtual memory. Now everytime I try to load any of my emulators, I am greeted with a "GPU driver issue" error box and the emulator I'm working on loads but is very laggy and virtual unusable and the UI of the app I'm testing keeps bugging out. I tried updating my driver, in fact this is the error message I got after updating to

How to create an Android AVD for Pixel device, from command line?

心已入冬 提交于 2019-12-22 17:05:25
问题 I'd like to use only the command-line tools to create a new virtual Android device. I want to create a virtual Pixel. I'm able to create a new AVD but unfortunately I can't figure out how to correctly set the skin and the correct device screen resolution. This is what I've tried thus far: C:\Users\*******\AppData\Local\Android\Sdk\tools>bin\avdmanager create avd -n MyPixel2 -k "system-images;android-25;google_apis;x86" --device 17 When I run that AVD via the emulator , I see a low-res device

Simultaneous Running HAXM AVD Emulator Limit

☆樱花仙子☆ 提交于 2019-12-22 08:59:45
问题 To elaborate on the title, I'm running many simultaneous AVD's for my automated build/test processes (think concurrent builds for a project, or multiple projects building at once). Most problems that people have with running multiple HAXM accelerated AVD's at once is memory related. THIS IS NOT MY PROBLEM (I think). I have a pretty beefy i7 machine with 32gb of ram. When installing HAXM, I allocated 28gb (sorry, I can't post more pictures without more rep). Here is my AVD configuration(s).

Unable to simulate location data in Android emulator

余生颓废 提交于 2019-12-22 08:13:23
问题 I'm trying to test my app, which uses geolocation using the emulator. Several methods are described here. I'm going to Window->Open Perspective->DDMS , then entering lat. and long. one in Location Controls and then I hit "Send". But it doesn't work. Instead I see the following error: Unable to send command to the emulator. Why is this happening!? I don't think my app is the problem because I tested with the emulator's default browser and it also cannot access location info. Details: OSX 10.9

Android Studio - AVD Manager is not visible

梦想与她 提交于 2019-12-22 04:45:23
问题 I have installed Android Studio 2.3.2 and The AVD Manager (which should be under the tools menu is not visible). Is there any way that i could make it available? Tools menu in Android Studio Menus and Toolbars 回答1: You can find it in: tool->Android->AVD Manager. If you want to make the AVD Manager icon be visible, you can doing this: Right click on the Toolbar and select the Customize Menu and Toolbar.. , Choose the Main Toolbar. Then,you can see this: Click on the Restore Default , then the

Installing Intel x86 Atom System Images offline (manually) for Android

ぐ巨炮叔叔 提交于 2019-12-22 04:33:15
问题 I want to install the Intel x86 Atom System Image because my emulator speed is too slow. Each time I tried to install it from the Android sdk manager I failed getting this message:- Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml Validate XML: https://dl-ssl.google.com

Android SDK 14 - Can't Create GTV device

大憨熊 提交于 2019-12-22 04:03:07
问题 I'm a Google TV developer, and today, shortly after the android sdk 14 was released, I updated everything, from the android sdk to the eclipse ADT. Since then, I can't create a Google TV virtual device. I came to the point where I completely deleted everything and tried to do a fresh install. Here is what happens: With a fresh download of the android sdk with only Android 3.1 and the Google TV add-on: $ android list targets Available Android targets: ---------- id: 1 or "android-12" Name: