android-emulator

Cannot add a google account to android emulator

别说谁变了你拦得住时间么 提交于 2019-12-10 02:52:18
问题 I am having a problem connecting my android emulator to gmail . I cannot add my gmail account even though I can browse the web. I go to the Accounts and Sync/add account/google/sign in , and put in my gmail address and password and then get the following message after a long wait - "Can't establish a reliable data connection to the server" I am going through a company proxy so I suspect this may be the problem. This also happens if I try the create new option. Does anybody know what port

Android: Installed App icon is not visible in emulator

為{幸葍}努か 提交于 2019-12-10 02:09:57
问题 When I run my application code, I could see the following entry in the console: [2011-03-01 10:29:26 - mireader] Uploading mireader.apk onto device 'emulator-5554' [2011-03-01 10:29:26 - mireader] Installing mireader.apk... [2011-03-01 10:29:40 - mireader] Success! [2011-03-01 10:29:41 - mireader] Starting activity com.mireader.reader on device emulator-5554 [2011-03-01 10:29:44 - mireader] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category

Android Things Emulator

大城市里の小女人 提交于 2019-12-10 02:04:00
问题 I was wondering if there is a way to set up an emulator in Android Studio using the system image that can be downloaded from the Android Things website. I already have a Raspberry Pi 3, but I always have to plug it into the tv which is not very practical at all. That's why I'm asking. 回答1: You don't need to plug the Raspberry Pi into a TV for it to work for Android Things. The Pi will still work without a HDMI cable connected. If you do want to create a UI you can use a normal emulator and in

Testing in “Airplane” mode in Android Emulator

送分小仙女□ 提交于 2019-12-10 02:02:15
问题 I'm trying to test my application for situations when the phone has no connection to the internet. In my emulator, I turned on Airplane Mode in the settings. However, my app still seemed to be able to communicate with my server. It works as normal. On my device, the same code throws an error with no data connection. How can I ensure that there is no internet connection in the emulator so I can use LogCat etc to analyze the code. 回答1: You can switch off Internet access by pressing F8 in the

Unable to find System Image in Emulator in Android Studio with Google APIs

旧时模样 提交于 2019-12-10 01:56:54
问题 I want to run in Emulator a System Image with Google APIs installed. I downloaded the System Images for API Version 19 (among others). When I go to start a new AVD in Android Studio, for API = 19 - I am not seeing the image with Google APIs. It should be there because I did download it using the SDK Manager (see screen clippings below). Am I missing something? See below screen in AVD Manager showing that the Kitkat does not have an image with Google APIs. 回答1: Please try the following

Debugging Android Widget Code In Eclipse

折月煮酒 提交于 2019-12-10 01:47:58
问题 I am starting with Android programming with the help of Unlocking Android / Manning which came from Santa and is a pretty good book. After running a few little tests and examples, I'm moving towards developing the concepts for my own application. I want my App to execute as a Home Widget and I'm using this example as my model to get started. While I am able to load and run in the Android ADB emulator the code example in the example's Wiktionoary which is a normal Android App. I am not able to

Android outofmemory error bitmap size exceeds vm budget in 2.3.3

我怕爱的太早我们不能终老 提交于 2019-12-10 01:37:07
问题 I understand that this question is asked few times. None of them is clear on the solution. Let me explain the problem. I have an Activity which loads 4 images at a time. I load the images in the onResume() method. The Activity throws bitmap error when loading. Notes. I am setting image using setImageResource(R.drawable.xxxx) method call and not bitmap/drawables directly. The images are scaled correctly. The activtiy WORKS FINE in all emulators prior to 2.3 and is WORKING FINE in Actual device

Emulator: emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature

不问归期 提交于 2019-12-10 01:10:22
问题 I removed the emulator and reinstalled it and got the same error. Emulator: emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature. Emulator: Process finished with exit code 1. 回答1: Removing the .lock files did the trick for me. Find the avd and remove the lock files. In a Mac .android/avd/'NAMEOFAVD.avd directory . The files I removed were hardware-qemu.ini.lock and multiinstance.lock . 回答2: It can be solved using this method. It worked for me. Follow the

Could not launch './qemu/linux-x86_64/qemu-system-i386': No such file or directory

你离开我真会死。 提交于 2019-12-10 00:47:47
问题 With 25rc1 of the SDK tools I am having a problem when starting the emulators from $PATH ➜ ~ which emulator /home/ligi/bin/android-sdk/tools/emulator ➜ ~ emulator @M Could not launch './qemu/linux-x86_64/qemu-system-i386': No such file or directory ➜ ~ /home/ligi/bin/android-sdk/tools/emulator @M console on port 5554, ADB on port 5555 Anyone knows a workaround? I could write a script to start emulators and cd in tools before but perhaps there is a better solution. 回答1: I encounter this one in

How to disconnect your phone safely when you connect it for debugging through Eclipse?

匆匆过客 提交于 2019-12-09 18:33:55
问题 Is there any safe way or just we need to un-plug the USB cable directly? Didn't get the solution anywhere. Sorry, if my doubt is silly as I am new to Android Development & just bought my new costly Android phone. So I do not want any damage or harm to my phone. When I connected my phone, it says, "USB debugging connected" & "Connected in Media transf. mode". How to disconnect? please corporate. Thanks! 回答1: Change the USB settings on the phone from 'mass storage device' to 'charging'; this