android-emulator

Android 2.3.3 emulator with x86 image won't run with “Use host GPU”

扶醉桌前 提交于 2020-01-03 08:56:40
问题 I noticed that if I check the "Use host GPU" checkbox when creating a new virtual device with Android 2.3.3 and Intel x86 system image, the emulator just won't run, it shows black screen with no signs of life, aside from errors in logcat. According to some information that I found online, running on host GPU was never intended to work for 2.3.3 images, only 4.0.3+. But then I found this answer where the author claims to successfully run it after installing ironhide . But ironhide, which I've

How do I run android tests in the emulator using IntelliJ?

╄→尐↘猪︶ㄣ 提交于 2020-01-03 05:05:09
问题 I'm trying to run the sample unit tests for the sample code that ships with the android SDK. Some of the tests run as standard unit tests, no problem. Other tests, such as com.example.android.apis.view.Focus2AndroidTest, use android classes, and therefore need to run in the emulator, that is a problem. I can run applications just fine in my emulator. When I run tests, though, my emulator starts up, and then just sits there. The test never runs. All I see in the output window in IntelliJ is

How do I run android tests in the emulator using IntelliJ?

那年仲夏 提交于 2020-01-03 05:05:07
问题 I'm trying to run the sample unit tests for the sample code that ships with the android SDK. Some of the tests run as standard unit tests, no problem. Other tests, such as com.example.android.apis.view.Focus2AndroidTest, use android classes, and therefore need to run in the emulator, that is a problem. I can run applications just fine in my emulator. When I run tests, though, my emulator starts up, and then just sits there. The test never runs. All I see in the output window in IntelliJ is

How to rotate a wheel (image png) in android

孤街醉人 提交于 2020-01-03 03:41:05
问题 I want to rotate a png image on linear layout. My image is semi circle in shape and have different colors on it. Any ideas? 回答1: Using Matrix you can do it, Something like, img=(ImageView)findViewById(R.id.ImageView01); Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.refresh); // Getting width & height of the given image. int w = bmp.getWidth(); int h = bmp.getHeight(); // Setting post rotate to 90 Matrix mtx = new Matrix(); mtx.postRotate(90); // Rotating Bitmap Bitmap

Not getting list of YouTube videos

让人想犯罪 __ 提交于 2020-01-03 03:01:06
问题 I have followed a tutorial on how to use the youtube gdata. Populating a listview with videos from youtube and a onclick. The source code is available on: http://blog.blundell-apps.com/click-item-in-a-listview-to-show-youtube-video/ Once i have changed the YouTube GData link from: https://gdata.youtube.com/feeds/api/videos?author="+username+"&v=2&alt=jsonc to : http://gdata.youtube.com/feeds/api/users/GoogleDevelopers/uploads i am not getting list of videos, why? 回答1: Reason is it's not

Eclipse not finding phone

£可爱£侵袭症+ 提交于 2020-01-02 17:02:09
问题 Help. I recently purchased a new PC. I had my eclipse set up and running for about a year no problem. But now with my new PC, Eclipse does not recognize my phone. My Phone is in Debug mode. When I plug the phone into the computer, it does connect. However Eclipse does not find it. In the Android Device Chooser, my phone is not listed as an option to pick. Any ideas? 回答1: I believe you are using Windows? I suppose you need the USB driver so that the OS can recognize your phone in debug mode.

Android emulator does not display Hindi font

淺唱寂寞╮ 提交于 2020-01-02 15:51:48
问题 I changed the locale to hi_IN on the emulator. When I start my application (or even the home screen) on the emulator, all I see is boxes reminiscent of "i dont know how to render this font". Any input on why this might be happening and how to get rid of this is most welcome. I need to display the hindi font in order to test localization of my application. Thanks, Sriram. 回答1: Android does not yet fully support Hindi (droid fonts): Feature request: support Hindi characters in the droid fonts

How to access a service deployed locally in IIS express from Visual studio emulator for android

…衆ロ難τιáo~ 提交于 2020-01-02 09:14:28
问题 I'm have a WebApi project which gets deployed locally on my machine as http://localhost:6143 or http://127.0.0.1:6143. However when I try to browse to that endpoint on the visual studio emulator for android browser, I get net:err connection timed out. Note that on the emulator I'm using http://10.0.2.2:6143 since localhost won't work on the emulator (since it's a vm, localhost refers to itself). I've also tried 127.0.0.1:6143 and get connection refused. I also added port 6143 to the incoming

android x86 emulator not respecting vm.heapSize

不羁岁月 提交于 2020-01-02 08:54:07
问题 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

Linux - run android emulator on Nouveau driver

馋奶兔 提交于 2020-01-02 07:50:58
问题 Linux (Debian Sid x64), kernel 4.14, Nvidia GPU. I am unable to run Android emulator on open Nouveau drivers. There is no any error message that I can post, jus segmentation fault. When I choose software rendering, it works but unusable (it runs very slow). Does anybody know any workaround for that, or I am forced to use official Nvidia drivers? 来源: https://stackoverflow.com/questions/47900233/linux-run-android-emulator-on-nouveau-driver