android-emulator

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

回眸只為那壹抹淺笑 提交于 2019-12-03 21:14:30
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. Here is the code to getMac Address without using wifi manager. public static String getMACAddress(String interfaceName) { try { List<NetworkInterface>

Hardware backing HAL too slow, could only write 0 of 720 frames

瘦欲@ 提交于 2019-12-03 20:58:04
问题 Can someone please explain why do I keep getting this warning in android studio all the time? It is so annoying as it fills up the entire log and then to search something I have to keep scrolling. Even if I select "show only selected application" still this warning keeps showing. I am using the default android emulator to test my app. 01-15 15:51:13.304 1338-1361/? W/audio_hw_generic: Hardware backing HAL too slow, could only write 0 of 720 frames . . . 01-15 15:51:14.324 1338-1361/? W/audio

Unable to install apk in android emulator

帅比萌擦擦* 提交于 2019-12-03 20:54:05
I am trying to install an apk (downloaded from one site) in ICS emulator through adb shell but its giving following error: Failure [INSTALL_FAILED_UID_CHANGED] What could be the issue? Uninstall the previous version of the app from the emulator first, then try again. You can do this by visiting System Settings > Applications > Manage Applications and selecting the app. If the app still fails to install, then start the emulator with the Wipe user data option selected. Simply rm -r the data directory in question. If you were installing and got this error, you'd simply run "rm -r /data/data/com

how to resolve this emulator: ERROR: unknown skin name 'WVGA800' solution

China☆狼群 提交于 2019-12-03 18:46:10
问题 i am trying to start the android emulator from eclipse classic ( juno ) and it keeps giving me this error: ERROR: unknown skin name 'WVGA800' I developed my software using eclipse indigo, but since I installed eclipse juno and imported the same project it started to give me this error. any idea why? and how to resolve this issue? 回答1: My solution was to create a new custom virtual device from the android virtual device manager and use that. 回答2: For me on Mac OS X this error went away when I

Android emulator error: std::bad_alloc

眉间皱痕 提交于 2019-12-03 17:44:11
问题 I'm using Eclipse Juno and the Android emulator (SDK Tools 21.1) and I'm having this error a lot of times (well, two or three times in 6 hours): [2013-03-22 11:41:19 - Emulator] terminate called after throwing an instance of 'std::bad_alloc' [2013-03-22 11:41:19 - Emulator] what(): std::bad_alloc [2013-03-22 11:41:19 - Emulator] [2013-03-22 11:41:19 - Emulator] This application has requested the Runtime to terminate it in an unusual way. [2013-03-22 11:41:19 - Emulator] Please contact the

How to implement Google Maps new version of API v2

守給你的承諾、 提交于 2019-12-03 17:20:23
问题 Hi every one I came to know that google maps has deprecated its previous version API v1 and introduced a new version of google maps API v2. I tried out one example by following some links in google any how i am pretty sure that i got the api key correctly by providing the exact hash key code and managed to get the correct api key. Now i managed to write some code as well but when i tried to execute the code i am getting the errors please help me to solve this here is my code and i even tried

Android N Preview emulator crash

北城以北 提交于 2019-12-03 17:18:04
问题 I am getting this crash on the new Android N preview emulator, right on the start. qemu: fatal: goldfish_tty_read: Bad offset 20 RAX=0000000000000009 RBX=0000000000000000 RCX=0000000000000000 RDX=0000000000000000 RSI=ffffffff817b6c7f RDI=ffff88005c3eb0c0 RBP=ffff88005e471bf8 RSP=ffff88005e471bb8 R8 =ffff88005c6a87f4 R9 =00000000ffffffff R10=ffff88005c3eb000 R11=0000000000000001 R12=ffffc9000003e000 R13=ffff88005e750810 R14=ffff88005c3eb000 R15=0000000000000000 RIP=ffffffff8127a837 RFL

Android/samsung galaxy S emulator

为君一笑 提交于 2019-12-03 17:13:30
Is there a way, to try my project on a samsung galaxy emulator, or something like that? My project work on HTC Legend, but its crashes on that device. How i can set up a samsung galaxy s on android/eclipse? I set up a W800/854 2.2 AVD but it work.. but on the samsung phone it was a crash.. The odd thing with Galaxy S is the presence of two external storages. This can not be emulated in AVD. More over current Android SDK lacks support for two storages. At least this was the issue with my own application on Galaxy S. 来源: https://stackoverflow.com/questions/4177556/android-samsung-galaxy-s

How to use Android OS VirtualBox as device in Eclipse

蓝咒 提交于 2019-12-03 16:54:22
I found this tutorial on how to run Android OS here: http://www.javacodegeeks.com/2010/06/install-android-os-on-pc-with.html Has anyone tried to use the set-up as a replacement for the emulator? If so, how did you do it? I haven't used the guide you link to, but instead downloaded an eeepc image from the Android x86 Project . The steps I followed are: Install Android to a virtual PC - I used a 64bit virtual machine, enabled all the hardware virtualisation, and used the PCnet-FAST III virtual network adapter in bridged mode - see image 1 Disable host mouse pointer integration - this will allow

java.lang.RuntimeException: createWindowSurface failed EGL_BAD_ALLOC in android

徘徊边缘 提交于 2019-12-03 16:39:51
I created customized Galaxy S4 AVD with 1080x1920 for my application. I can able to run my application in that AVD. After few seconds its blinking and its throws some error like this. 02-05 12:06:39.809: E/EGL_emulation(829): rcCreateWindowSurface returned 0 02-05 12:06:39.809: E/EGL_emulation(829): tid 829: eglCreateWindowSurface(631): error 0x3003 (EGL_BAD_ALLOC) 02-05 12:06:39.819: D/AndroidRuntime(829): Shutting down VM 02-05 12:06:39.819: W/dalvikvm(829): threadid=1: thread exiting with uncaught exception (group=0x40a71930) 02-05 12:06:39.869: E/AndroidRuntime(829): FATAL EXCEPTION: main