emulation

Running android emulator with Azure windows 10

点点圈 提交于 2019-12-11 15:13:58
问题 I am trying to run an android emulator on an azure VM running windows, Windows 10 Pro version 1809 - But I am getting the following error message running the android emulator: C:\Program Files (x86)\Android\android-sdk\emulator>emulator -AVD androidemulatorapi28 emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure the Windows Hypervisor Platform (WHPX) is properly installed and usable. CPU acceleration status: HAXM is not installed on this machine The hyper-v

Android emulator root access app

本秂侑毒 提交于 2019-12-11 13:58:19
问题 I am having trouble copying files to the virtual sdcard on the android emulator. I am creating an app that copies the data/data/package folder to the sdcard. This works fine when the app copies its own package but it won't do it for other apps. I have looked into other topics, but I can't seem to give my app super user status. 回答1: From Android Developers, Security and Permissions: A central design point of the Android security architecture is that no application, by default, has permission

Android HttpUrlConnection Url doesn't work on emulator

本秂侑毒 提交于 2019-12-11 12:36:10
问题 I am trying to get json object as string from this url http://digitalcollections.tcd.ie/home/getMeta.php?pid=MS4418_021. It doesn't work I get an error after downloadUrl function. java.io.IOException: unexpected end of stream on Connection{digitalcollections.tcd.ie:80, proxy=DIRECT@ hostAddress=134.226.115.12 cipherSuite=none protocol=http/1.1} (recycle count=0) Although it does work for this androidhive url http://api.androidhive.info/volley/person_object.json. I am new to httpconnection

J2ME - PNG created in PhotoShop not displaying in emulator

时间秒杀一切 提交于 2019-12-11 12:08:17
问题 My midlet is showing some images fine, but not others. They are all 8-bit PNGs, but the ones that aren't displaying are the ones I have created myself in PhotoShop. So I am thinking maybe my PhotoShop (CS6) settings are wrong... PNG-8, Selective, Diffusion, Colors: 256, Dither: 100%, Matte: None, Web Snap: 0%, Convert to sRGB: ticked, Width: 48, Height: 48, Percent: 100%, Quality: Bicubic. I've experimented with a few of these settings, but to no avail. Any ideas? There is a similar problem

Android emulator access to IPv6 possible? Network is unreachable

烈酒焚心 提交于 2019-12-11 11:10:18
问题 I am running an Android 4.0 emulator on windows 7 with a valid global ipv6 address. The emulator can access the ipv4 of the host machine addresses but not the ipv6 address. Pinging the ipv6 address from a third party site works. Is there some magic trick to tell the emulator to use IPv6 as well? The emulator hasn't really got a lot of configuration options. I always get the message "Network is unreachable". 回答1: Starting from SDK 25.3.0 running Android Emulator in IPv6-only environment is

android emulator cannot start

被刻印的时光 ゝ 提交于 2019-12-11 10:51:56
问题 when I start a new emulator it comes this: Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. how to repair it? 回答1: This question suggests that this problem occurs when you are using too much RAM. 回答2: This blog post suggests that you should lower the amount of RAM you allocated to your AVD. 回答3: As I mention here: https://stackoverflow.com/a/14420779/1993898 I was able

Does anyone know how to create a folder tree in the Eclipse DDMS File Explorer?

早过忘川 提交于 2019-12-11 10:47:54
问题 I'm trying to create the path "/package name/databases" under the sdcard folder. Anybody got the secret? 回答1: Are you using fileobj.mkdir() method from File class? Check if the directory already exist if not exist then create it.Refer And don't forget about writing permissions for external storage, WRITE_EXTERNAL_STORAGE . 回答2: Just select the parent folder and click the small + ("New Folder"). Do this again for the next subfolder. 回答3: Creating SD Card Access to your Android SDK Tools folder

Chrome Emulator not working properly

不问归期 提交于 2019-12-11 10:39:25
问题 Today, Google has released the latest Chrome. The emulator is not working correctly on JQM. Anyone else experiencing this problem? Yesterday, all touch events were working fine before this latest update... 回答1: The problem is described here: https://code.google.com/p/chromium/issues/detail?id=415053 A simple workaround until the update is out, is here: https://code.google.com/p/chromium/issues/detail?id=415053#c21 来源: https://stackoverflow.com/questions/26413472/chrome-emulator-not-working

Emulator run slowly when come to a specific layout

好久不见. 提交于 2019-12-11 10:24:08
问题 I don't know what's wrong with my xml layout. Everytime when it intent to AddMoreClaims activity, my emulator will run slowly and sometimes not responding as image shown below. And this are the logCat message 12-09 05:05:59.758 2688-2688/? E/RichInputConnection﹕ Unable to connect to the editor to retrieve text. 12-09 05:05:59.758 2688-2688/? W/RichInputConnection﹕ Unable to connect to the editor. Setting caps mode without knowing text. 12-09 05:05:59.760 2688-2688/? I/Choreographer﹕ Skipped

Nullpointer exception when trying to use Bluetooth

邮差的信 提交于 2019-12-11 10:17:14
问题 I'm trying to create an Android application that uses the Bluetooth of the device. However, when I try to emulate the application, it gives me this error: unfortunately Application has stopped. I've searched for a solution but for the problem, and I've done the following: Use an actual device instead of the emulator since Bluetooth functionality cannot be emulated Modify the code according to some suggestions I found online Use a VM instead of the normal emulator on a Bluetooth-capable