android-emulator

Why I am not able to see proper custom dialog Box in Motorola Atrix Emulator?

断了今生、忘了曾经 提交于 2019-12-06 11:02:36
I have created Custom Dialog for my application. While i run that application in normal Samsung Galary Ace then it shows proper in that device but while i am going to run that app in Motorola Atrix then the Custom Dialog Box not seen proper with the border. . . Please see the Image of Motorola Atrix Emulator with my Custom Dialog in it. Should i have to remove the border of the custom dialog or what else i have to do to see only my custom dialog in any device ? If i have to remove the border from the custom dialog then let me know how ?? Thanks. I know this has been answered but here is how I

Android Studio Run Emulator Failed on linux

三世轮回 提交于 2019-12-06 10:04:33
I'm tried to run the Android Emulator from Android Studio 2.3.3 (On linux machine) but if fails with no error (I try with a x86 image API 24). So I try to run from console /opt/android/android-sdk-linux/tools/emulator @Nexus_5_API_24 and I get this error libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X

Fetch ip address of pc on android emulator through code android

时光毁灭记忆、已成空白 提交于 2019-12-06 09:59:38
I want to get the ip address of my pc in android emulator through code....or tell me to achive ip address of all devices connected in a lan to identify each one uniquely .......please help me to sort out this problem Thanks in advance The above functions are possible only by checking the arp cache where the IP address will be added one by one depending on how each one connect to the device. USe the below code and check. Just put button with proper name and call this method on click public void getClientList() { int macCount = 0; BufferedReader br = null; try { br = new BufferedReader(new

Checking NFC feature on Android Device

隐身守侯 提交于 2019-12-06 09:55:18
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 visited Android developer Site ,but they didn't mention the API level. Another question is Can I test

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

血红的双手。 提交于 2019-12-06 09:43:50
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 without any skin shown. I am using Android SDK 25. And, unfortunately, it looks like https://developer

Android Studio - Emulator Profile and Device Profile VERY different

安稳与你 提交于 2019-12-06 09:32:53
I came across this while asking a different question, why does the Android Emulator show such a different performance profile than a comparable device profile? Specifically, the device calls a huge graphics section that is not visible on the emulator... is there a reason for this? Device - 26api - 48Mb Emulator (Pixel2) - 26api - 24Mb - Hardware Graphics Emulator (Pixel2) - 26api - 54Mb - Software Graphics Device - 24api - 52Mb Emulator (Pixel2) - 24api - Hardware Graphics - 15Mb Emulator (Pixel2) - 24api - Software Graphics - 40Mb Device - 22Api - 50Mb Emulator (Pixel2) - 22api - Hardware

Download Android kernel source code

久未见 提交于 2019-12-06 09:27:44
问题 I have been trying to download goldfish kernel source code but no luck. Upon hitting the following command I end up with the source code of sized 1GB: git clone https://android.googlesource.com/kernel/common However we I pressed on following command, git checkout -t origin/android-goldfish-2.6.29 -b goldfish it prompt me: Fatal error: git repository not found. Even though, git branch -r is also giving me same error. 回答1: git clone git://android.git.kernel.org/kernel/common.git and then cd

Emulate an incoming call on physical device via PC (Eclipse)

别等时光非礼了梦想. 提交于 2019-12-06 09:27:25
I am working on an android project, and I want to be able to test my app on a physical device. The only way I can test my app is to receive incoming text messages and calls. I know I can simulate texts and calls on the emulator either via telnet or via DDMS in Eclipse. Is this possible to do the same thing without having to keep texting myself or calling myself from another device as its going to cost. I'd much prefer to do it on a device as it is much quicker than on the emulator. Thanks for any help you can provide. You can use applications from google play like this one https://play.google

Android - Error Test GPS on Emulator

非 Y 不嫁゛ 提交于 2019-12-06 09:02:20
问题 i wanna test GPS on my android emulator but i find my apps has Error "Stopped Unexpectedly" when i try to run its on emulator. here some sort of my codes AndroidManifest.xml <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> and main.java public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState);

android x86 emulator not respecting vm.heapSize

霸气de小男生 提交于 2019-12-06 08:54:04
The Android x86 ( API-10 ) emulator does not seem to respect the VM size specified through the AVD manager. See below for config.ini created from AVD manager hw.lcd.density=240 sdcard.size=64M skin.name=WVGA800 skin.path=add-ons/addon-intel_atom_x86_system_image-intel_corporation-10/skins/WVGA800 hw.cpu.arch=x86 abi.type=x86 hw.keyboard=yes vm.heapSize=96 hw.ramSize=256 image.sysdir.1=add-ons/addon-intel_atom_x86_system_image-intel_corporation-10/images/x86/ When I start up the app I print out what the maxmemory and a few details are using this: Runtime rt = Runtime.getRuntime(); long