android-emulator

How much time It takes to perform all tests using Android CTS tool?

我们两清 提交于 2020-01-06 05:15:32
问题 I am developing custom android device and need to execute compatibility test cases using android CTS tool . So i just want to know how much time it will take to execute all the test cases on the android device(Android Emulator) using android-cts-2.3_r3-x86 tool . 回答1: The time for execution of CTS depends upon the total number of test cases and each status of the test case result. To pass a test the result must come in 5 seconds for most of test cases, otherwise the test cases is timed out.

problem in getting gps coordinates in android 2.1(Found Answer)

匆匆过客 提交于 2020-01-06 03:32:05
问题 I am having a problem in getting GPS coordinates in 2.1. The code i am using right now is working well in 1.6 but when i test this same apk in 1.6 device is showing null values please help me to find a way to work with 2.1 devices also Here is my code. public class GpsLocator { private static String PROVIDER="gps"; private LocationManager myLocationManager=null; public GpsLocator(Context context) { myLocationManager=(LocationManager)context.getSystemService(Context.LOCATION_SERVICE); } public

Bitmap Size Exceeds VM Budget Error on Emulator but Not on Device

只谈情不闲聊 提交于 2020-01-06 03:04:23
问题 I am getting the above error whenever I test on an emulator, but not any devices I have tested on. Can anyone suggest why this might happen ? 回答1: You are probably testing on high profile devices that might have 32Mb or more heap size memory. The emulator could be using 24Mb and that's the reason is crashing. Go to the AVD (Android Virtual Device) editor, and add "Max VM application heap size" to your virtual device hardware properties. Set that value to 32Mb and reboot your emulator. That

Bitmap Size Exceeds VM Budget Error on Emulator but Not on Device

前提是你 提交于 2020-01-06 03:04:05
问题 I am getting the above error whenever I test on an emulator, but not any devices I have tested on. Can anyone suggest why this might happen ? 回答1: You are probably testing on high profile devices that might have 32Mb or more heap size memory. The emulator could be using 24Mb and that's the reason is crashing. Go to the AVD (Android Virtual Device) editor, and add "Max VM application heap size" to your virtual device hardware properties. Set that value to 32Mb and reboot your emulator. That

How to simulate speed on Android emulator?

我与影子孤独终老i 提交于 2020-01-06 01:58:19
问题 Is there a way to simulate speed on Android emulator? [edit] The purpose of this to test the getSpeed() method Example: I would like to set the device is going at 20 miles an hour. 回答1: Yes you can do that. If your using Eclipse to develop your app, you have to go to the DDMS perspective. There you should find a window called Emulator control. In this window you can send new geo locations (GPS coordinates) to your emulator or device. As you want to emaulte speed its better to use GPX or KML

Android App works on Eclipse Emulator but Play Store says my device is not compatible

倖福魔咒の 提交于 2020-01-05 08:39:35
问题 I'm programmming an App that works fine when I run it on the emulator with Android 2.2, also I execute the .apk in my tablet Galaxy Tab2 Android 4.0.3 and works fine too. Then, I sign the App and put on the Market like a Beta Version and when I go to install, Play Store says that my tablet is not compatible. In my AndroidManifest, I define the minSdkVersion = "8" and the targetSdkVersion = "17" Any suggestions? Thanks ;) Edit: <manifest xmlns:android="http://schemas.android.com/apk/res

IME in Android Studio emulator not responding to Shift-B on keyboard

一笑奈何 提交于 2020-01-05 07:41:09
问题 I noticed that Shift-B is not being recorded or received on EditTexts when I am using the emulator with my physical keyboard. Keyboard works fine elsewhere in all other programs - "B" - see! Lower-case ''b' works fine everywhere All other SHIFT alphabet characters work from the keyboard except "B" Clicking on shift-B on the IME (soft keyboard) works fine When pressing SHIFT-b, the onKeyListener.onKey() receives a keyCode of 0 I have used Android Studio and the Emulator extensively for a year

How to add icon/image to listitem of ListView

我的梦境 提交于 2020-01-05 05:55:45
问题 I have created listview by using arrayadpter i add arraryadapter to listview contaning string array but i m unable to add icon to eatch listitem help me out... 回答1: Here is a free excerpt from one of my books that discusses the techniques involved. In a nutshell, you will need to extend your Adapter class (e.g., ArrayAdapter , CursorAdapter ) and take direct control over the creation of rows, so you can apply your desired business logic. 来源: https://stackoverflow.com/questions/2200052/how-to

Excessive garbage collection (GC_FOR_MALLOC) in Android emulator when using simpleframework

我的梦境 提交于 2020-01-05 04:35:09
问题 I have an Android app that uses the SimpleFramework for XML serialization. The app runs fine on all real devices I have tested it on with no lags, but when run on the emulator, the garbage collector kicks in a runs for about about 3 minutes on each launch of the app. Here is what I have observed so far: Garbage collection kicks in just before serializing objects to XML It only happens before the first object is serialized and sent over the network, and does not happen for successive calls.

Travis-CI implementation of Android SDK 25 with Emulator

隐身守侯 提交于 2020-01-05 03:49:05
问题 I need help with implementing Travis-CI in my android repository. My Project is compiled with SDK 25 but is downwards compatible to Version 21. How do I have to change my .travis.yml to run an android emulator thats compatible with that SDK Version? .travis.yml: language: android jdk: oraclejdk8 android: components: - tools # to get the new `repository-11.xml` - tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943) - platform-tools - extra-google-google_play