android-emulator

Adding images in gallery of emulator

橙三吉。 提交于 2019-12-23 14:03:41
问题 I want to display images in my application. But in emulator there no any picture present by default. So it needs to add some images to emulator. I tried it with adding images in sdcard by could't be successful. Please specify steps. 回答1: You can use DDMS or adb push command to push images onto sdcard. Make sure to run MediaScanner from dev tools, post that. 来源: https://stackoverflow.com/questions/5062806/adding-images-in-gallery-of-emulator

Emulator does not load

六眼飞鱼酱① 提交于 2019-12-23 13:09:18
问题 I am using the hello android tutorial and creating an avd through eclipse. When starting the emulator no image is used. It simply displays a black back screen with the word ANDROID in the center and a blinking cursor at the end of the word ANDROID. I have followed the steps to the T for installing the SDK, Eclipse, and the ADT. Even starting the emulator as a standalone produces the same result. Is there a step I am missing to get the emulator to load an android environment to test in? 回答1:

Eclipse Android Emulator-5554 is always displayed

限于喜欢 提交于 2019-12-23 13:07:08
问题 I started to write an android app in Eclipse IDE. But when I run the app (ctrl+f11), the android device chooser is showing emulator-5554 in state online, even if I did not start any emulator yet. My question is: where does this emulator come from? and for what reason? My android device chooser when my emulator started: Has anyone run into this issue and explains it to me? thanks. 回答1: Thanks to Rohan Kandwal. It is true. While i'm running eclipse, my blue stack is running too and used port

MapActivity class in android?

白昼怎懂夜的黑 提交于 2019-12-23 12:35:12
问题 when i extends the MapActivity class it shows an error. error is: cant resolved datatype. why? how to add a maps.jar in my project? thanks. 回答1: You probably haven't done the steps required to set up a Maps project as described in Maps External API Overview. There is no maps.jar to add. Read the document I linked to, and you should be all set. 回答2: Google Map View : Creating a Map Activity 回答3: Here is my code : import java.io.IOException; import java.util.List; import java.util.Locale;

Install Google Settings on HAXM x86 emulator (Google Maps SDK)

ε祈祈猫儿з 提交于 2019-12-23 12:23:15
问题 I've gotten a VM accelerated Android emulator (4.2.2, API 17) working using Intel HAXM (on a Mac). I installed the Google Maps SDK using these instructions, which is basically this answer to a previous SO question - Google maps SDK with new Intel Atom x86 emulator - but with pictures. Therefore, the emulator has access to Google APIs. However, I need to enable location access for Google apps. This is usually done through the Google Settings app, but since the emulator was created targeted to

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

Why is Android virtual device too slow?

自古美人都是妖i 提交于 2019-12-23 10:52:57
问题 I just downloaded adt-bundle from the android developper's site to give it a try. problems begun when i hited the "run" button: The Android virtual device or "avd" is horribly slow. I have a pretty decent machine (core i7 & 16go of ram). Aren't they aware of that? i mean it has been several years that people develop for android, how did they manage to do that? 回答1: Iphone apps running on the iphone emulator are compiled for the native processor on the mac, and those only simulate the iphone

AndroidStudio: Can't run AVD because of Intel HAXM error

喜你入骨 提交于 2019-12-23 10:16:06
问题 According to my AS SDK manager, Intel x86 Emulator Accelerator (HAXM Installer) version 6.0.1 is installed . However, if I attempt to 'run' my app, then choose an 'available emulator' (eg, nexus one api 23), I get the error: intel haxm is required to run this avd . A couple of days ago I was not having this problem (I was able to use an emulator). Also, according to my System Settings/Android SDK , I have Android 6.0, API Level 23. I am using Win XP, with AS2.0. 回答1: You have to install it.

AndroidStudio: Can't run AVD because of Intel HAXM error

孤街醉人 提交于 2019-12-23 10:15:10
问题 According to my AS SDK manager, Intel x86 Emulator Accelerator (HAXM Installer) version 6.0.1 is installed . However, if I attempt to 'run' my app, then choose an 'available emulator' (eg, nexus one api 23), I get the error: intel haxm is required to run this avd . A couple of days ago I was not having this problem (I was able to use an emulator). Also, according to my System Settings/Android SDK , I have Android 6.0, API Level 23. I am using Win XP, with AS2.0. 回答1: You have to install it.

10.0.2.2:8080 in web browser in emulator is not working

北城余情 提交于 2019-12-23 10:09:19
问题 I have a wamp server in localhost. I tried to make http request from my android app. But cannot get it right. Many said 10.0.2.2:8080 will point to localhost from emulator. So i tried to open it in web browser from emulator. i typed in url as "10.0.2.2/cifi/test.php". But emulator popped error as "net:CONNECTION_TIMED_OUT" Need explanation: how to make my wamp server in local machine to listen 10.0.0.2:8080 from emulator's browser. 回答1: Your Wamp Server seems to be accepting only localhost