android-emulator

Android Emulator won't start after Android Studio 2.0 upgrade

倾然丶 夕夏残阳落幕 提交于 2019-12-12 02:51:09
问题 I recently upgraded Android Studio to 2.0 (Windows) which broke the emulator. The symptom is that the emulator starts a (single thread) process that takes about 100% of its CPU. Nothing shows on the screen. Of course, this worked like a charm before the update. Few things I tried: Used an AVD created before and after the update Increased AVD memory to 1G Delete / Install Android Studio Used different CPU Architecture (Arm & x86) Used different versions of API (21 & 23) 回答1: A temporary

Emulators for Android Studio?

北城余情 提交于 2019-12-12 02:47:19
问题 I want to get a few emulators for Android Studio so I can test my apps, but I can't find out where to get them and how to install them. Thanks for the help! Edit: Thank you both I got it working! 回答1: 1 - SDK Manager. Here you can install android system image. 2 - AVD Manager. Here you can define own Android Virtual Device. (First you need to install android system image via SDK Manager and then define you device based on that image) 回答2: I'm glad you got the emulators working so you can test

Android: LocationManager.requestLocationUpdates doesn't respect params

笑着哭i 提交于 2019-12-12 02:42:33
问题 I have a problem recieving notifications from LocationManager after a set period of time: locationManager = (LocationManager)getSystemService(LOCATION_SERVICE); if(useGPS) { locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 999999, 999999, locationListener); In emulator my location listener's onLocationChanged method gets called whenever I send a fix via emulator control (i.e. every other second) So, the question is - is this because the way I'm testing on emulator, or

Titanium Alloy with Android Emulator on Windows 10

假装没事ソ 提交于 2019-12-12 02:31:53
问题 I'm having huge problems with Titanium Alloy on Windows 10. I am using the Atom editor to write my apps. Whenever I execute ti build , enter the command up to 10( !!! ) times until an Android device can be found. For the Android emulator I get an error message as follows: [Error] Failed to install apk on "emulator-5554" [Error] Error: device not found I tried the commands ti build -p android , ti build -p android -T emulator and ti build -p android -T emulator -C emulator-5554 --log-level

trouble using Airplane Mode on Android

主宰稳场 提交于 2019-12-12 02:25:24
问题 I have troube to use Airplane mode on my app. The app runs perfectly well on my emulator but not in my real phone when I try my apk. Here is the code to activate the Airplane : Settings.System.putInt(getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 1); // Post an intent to reload Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); // send a broadcast //intent.putExtra("state", !isEnabled); intent.putExtra("state", true); sendBroadcast(intent); To desactivate it : Settings

Which Layout is better to use?

被刻印的时光 ゝ 提交于 2019-12-12 02:22:32
问题 In My Application i have to use the Calculator. The Different Button in Calculator should be like below image. So, What should be better to implement such type of the Layout ? I think gridView is good, but while thinking about the "0" Button and the Button below "C" button, I dont know how to set it in to the gridview. So Anybudy tell me which one is the Best way to set this type of layout ? recently i have use the relative layout to set this layout. Please help me regarding this. and if the

Project has no default.properties file

六眼飞鱼酱① 提交于 2019-12-12 02:16:10
问题 When i select a project (File->new->Android Project-> From existing source) to import am getting the error [2012-09-24 22:18:41 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read E:\android-sdk\AndroidManifest.xml: java.io.FileNotFoundException: E:\android-sdk\AndroidManifest.xml (The system cannot find the file specified) also am getting the error After importing the project [2012-09-24 22:21:02 - SplashScreen] Project has no default.properties file! Edit

Mock location does not work in Android Studio Emulator

♀尐吖头ヾ 提交于 2019-12-12 02:09:44
问题 From reading this guide, I tried to send gps location to the emulator, but it doesn't work. I tried with Google Maps. The emulator info: Nexus 5, API Level 19, Kitkat 4.4 A screen shot: (click send but nothing happens) 回答1: You can use mock location in your app, I don't think it will work google maps as it won't have permission to use mock location. You have to declare android.permission.ACCESS_MOCK_LOCATION in manifest. Get the location using LocationManager locationManager =

Location not being updated on new geo fix in android emulator

寵の児 提交于 2019-12-12 02:02:22
问题 I am trying to make it so a MapView zooms to a current location based on a GeoPoint. I am setting the location using the geo fix command in telnet. My problem is that when I first input a location using geo fix my code will correctly navigate to a location on the map. If I try to set another location using geo fix however it does not update. Here is the code to update: public void updateLocation(Location loc) { p = new GeoPoint((int)(loc.getLongitude() * 1E6),(int)(loc.getLatitude() * 1E6));

Bug Calculator Program for Android

人走茶凉 提交于 2019-12-12 01:57:55
问题 I've finished coding the simple program but when I try to run it on the emulator, it stops and I see the following error in my LogCat. My MainActivity.java and activity_main.xml will also be provided below. 07-23 07:43:17.256: D/AndroidRuntime(1259): Shutting down VM 07-23 07:43:17.256: W/dalvikvm(1259): threadid=1: thread exiting with uncaught exception (group=0xb3ad7ba8) 07-23 07:43:17.296: E/AndroidRuntime(1259): FATAL EXCEPTION: main 07-23 07:43:17.296: E/AndroidRuntime(1259): Process: