android-emulator

Android Emulator laggy even with all optimizations

自闭症网瘾萝莉.ら 提交于 2019-12-04 20:46:35
问题 HAXM Enabled version 7.1.0 and i verified that it's working when the emulator is running The emulator is using the Nvidia GPU however it's barely using maximum 7% of the GPU at any given time I have 27.3.1 of Emulator version ( Latest ) Tried x86 image and x86_x64 image I tried hardware acceleration I tried software acceleration I bumped the emulator ram to 4GB (I have 20 GB) I set the emulator CPU priority to real time I have EVERYTHING but Android Studio and emulator running The emulator is

How to add another layout number of time to my already created LinerLayout?

家住魔仙堡 提交于 2019-12-04 20:38:35
Here is my Prent layout (main.xml) <!-- ============================================================ --> <!-- All Employees are added here (added and More then one) --> <!-- ============================================================ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/myLayout" android:orientation="vertical" android:layout_gravity="center_vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#00000000"> <!-- ++++++++ here extra layout is added programmatically --> </LinearLayout> Here is

HAXM not working on Linux

*爱你&永不变心* 提交于 2019-12-04 19:50:01
问题 Here we go for GingerBread : http://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assistedvirtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-gingerbread-emulator/ Any updates for ICECream sandwich or Kitkat ? Helpful answers are highly appreciated!! 回答1: HAXM is only needed on Windows and OS X. On Linux, you need to have KVM installed. See the "Configuring VM Acceleration on Linux" section on: http://developer.android.com/tools/devices/emulator.html#accel

How to play ringtone selected from RingtonePreference

北战南征 提交于 2019-12-04 19:37:35
问题 I am trying to play a ringtone which is selected from a RingtonePreference. How can I play it? Here is my xml file code <RingtonePreference android:title="Choose Alarm" android:key="ringtone" android:summary="this is summary" ></RingtonePreference> Here is what I am doing in java SharedPreferences getAlarms = PreferenceManager.getDefaultSharedPreferences(getBaseContext()); String alarms = getAlarms.getString("ringtone", "default ringtone"); When I use toast like this Toast.makeText

Change buttons' order of DatePickerDialog for Android 4.0.3

。_饼干妹妹 提交于 2019-12-04 19:35:49
I created an DatePickerDialog : DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day); and show it On Android 4.0.3 (API 15) device, it looks like this: As you see above, the " cancel " button is displaying on the left-hand side while the " Set " button is on the right-hand side. But on Android 2.3.3, the button order is the other way around. So, how can I change the buttons' order of DatePickerDialog in order to show " Set " button on left-hand side, and " cancel " button on right-hand side on Android 4.0.3 device? So, how can I change the buttons'

How to deploy the android application to emulator like Application Deployment of WP7

倾然丶 夕夏残阳落幕 提交于 2019-12-04 19:29:49
I have developed the Hello World Android application using Eclipse. I can run the application in the android emulator through this eclipse. But i want to run the apk files using Android emulator without opening the Eclipse(like WP7 xap files are running through Application Deployment Software without opening the VisualStudio). How to do this? I have used the following procedure. Procedure to run the apk files in Android Emulator without opening the Eclipse: Check your installed directory(ex: C:\Program Files (x86)\Android\android-sdk\tools), whether it has the adb.exe or not). If not present

Android Emulator - invalid command-line parameter:

烈酒焚心 提交于 2019-12-04 19:23:13
问题 When I try to launch my Android Virtual Device, I get the following error. Files\Android\android-sdk-windows\tools/emulator-arm.exe. Hint: use '@foo' to launch a virtual device named 'foo'. Please use -help for more information. I have been using the emulator for months, and I just downloaded new updates from SDK/AVD Manager. 回答1: This problem is caused by blank spaces in the path you setup in the Android SDK. The solution is that you should move the folder of the Android SDK to a place

Android emulator, Finding mock user location coordinates. Having problems

百般思念 提交于 2019-12-04 19:14:39
Hey guys, I'm having trouble trying to find the user's longitude and location as I run my program and set the telnet command for geo fix for the mock location. While the emulator is running, I set the mock coordinates only for the emulator to become unresponsive and have my program fail in detecting the input coordinates. import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.location.LocationProvider; import android.os.Bundle; import android.widget.TextView

Android Emulator Stuck With Black Screen

僤鯓⒐⒋嵵緔 提交于 2019-12-04 19:11:46
I'm just new with Android Development, and running the default blank project. I have Android Studio 2.1.2. The problem is the emulator stuck with the black screen although HAXM works well: "HAX is working and emulator runs in fast virt mode" Most solutions suggest to uncheck "use host gpu" in AVD Manager, yet it seems this feature no longer appear in the new version of Android Studio. I run macOS El Capitan. The reason why I got stuck with black screen in the emulator is that I needed to update my Android SDK Tools. Hope this could help someone get the same issue. Increase the RAM size to 2

Creating Galaxy S5 emulator

南楼画角 提交于 2019-12-04 19:09:05
问题 According to website gsmarena.com, the specifications of Galaxy S4 and Galaxy S5 are almost the same. Of course, those that concern us who want to create an S5 emulator. Is it advisable to use existing S4 emulator? If not, what should be changed to get Galaxy S5 emulator? My current S4 emulator, looks like this 回答1: I think it isn't necessary to update your S4 emulator since the changes are minor. However, if it is for testing applications or develop purposes I would recommend update it,