android-emulator

Android studio is showing an error, 'invalid option --enable whpx'

谁说我不能喝 提交于 2019-12-10 20:02:50
问题 android studio is showing an error, while running AVD, like below "invalid option --enable whpx " please suggest a better solution to remove this 回答1: Try this :) The Android emulator requires the Windows Hypervisor Platform (WHPX). Ensure WHPX is properly installed and usable. https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/ I hope this suggestion helps you 来源: https://stackoverflow.com/questions/51454797/android-studio-is-showing-an-error-invalid

Android x86_64 and x86 emulator crash on AlertDialog.onClick event

ぐ巨炮叔叔 提交于 2019-12-10 19:59:39
问题 I'm testing an Android app in x86_64 and x86 emulator and it crash (Android emulator closed unexpectedly) after select an item from a AlertDialog that shows a list. AlertDialog is called from onOptionsItemSelected overrided method in class that extends from AppCompatActivity. Some code: public class ListViewActivity extends AppCompatActivity { private static final String TAG = "android-user-interface"; @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu

Failure trying to reinstall new Camera.apk to android emulator 2.2

懵懂的女人 提交于 2019-12-10 19:34:52
问题 According to this, I tried to modify GLRootView.java and reinstall new Camera.apk; however, some errors show up when I tried to uninstall the old Camera.apk. Do you know what's the issue and how to resolve it? $ ./adb remount remount succeeded $ ./adb shell rm /system/app/Camera.apk rm failed for /system/app/Camera.apk, Directory not empty $ ./adb uninstall com.android.camera Failure reinstall from eclipse [2011-05-08 17:41:43 - Camera] Uploading Camera.apk onto device 'emulator-5554' [2011

Intel x86 emulator starts but android doesn't boot

99封情书 提交于 2019-12-10 19:34:37
问题 I want to run my app on a emulator api level 10 using Intel HAX technology. I've downloaded the HAXM package from sdk manager and installed it. I've also enabled the "Virtualization technology" in BIOS setting (Reading this thread) but when start the emulator screen keeps black and android doesn't boot/start. Here's the Avd message on starting emulator: Please help me, I've no idea what's wrong! (My pc config: Windows 7 - 64bit, 4gig RAM, intel M 520 2.4 GHz, working on eclipse) Edit: Here is

What's wrong with my Android virtual device?

吃可爱长大的小学妹 提交于 2019-12-10 19:29:09
问题 I tried to emulate the app on android virtual device emulator. It started booting up and then just stopped. That emulator does not work at all. I tried almost 10 times now. The errors I'm getting are [2014-04-15 13:41:25 - Emulator] NAND: nand_dev_load_disk_state ftruncate failed: Invalid argument [2014-04-15 13:41:25 - Emulator] savevm: unable to load section nand_dev [2014-04-15 13:42:42 - learningandroid] emulator-5554 disconnected! Cancelling 'com.example.learningandroid.MainActivity

Android Emulator: Receive SMS sent from emulator on a port

本小妞迷上赌 提交于 2019-12-10 18:46:53
问题 I intend to use the Android Emulator to send/receive SMS. I send SMS to the emulator using the sms send command. I'm aware of emulators being able to converse with each other over SMS but would it possible to receive that the SMS reply sent from an Android Emulator on a external TCP port? Any pointers would be very appreciated. Many thanks. 回答1: You can start 2nd Android Virtual Device, one for send SMS another for retrieve SMS. In the receiver field, you have to input the port number of

Android Studio memory usage Ubuntu 16

被刻印的时光 ゝ 提交于 2019-12-10 18:17:59
问题 I'm facing an issue when consecutively running my android test class on an emulated device. I notice that after each run my PC RAM usage steadily increases by about 1.1Gb. This happens until my RAM is full, and then I have to restart my Android Studio and Emulator to run the test class smoothly again. To investigate I looked at my system monitor. In it, my emulator and android studio maintain roughly constant RAM usage after each test class run. android studio and emulator RAM usage However

Entering both if AND else statement?

别来无恙 提交于 2019-12-10 18:13:38
问题 So I've got this code (updated for solution). @Override public View getView(int position, View convertView, ViewGroup parent) { ... final Direction d = directions.get(position); if (d != null) { TextView direction = (TextView) row.getTag(R.id.directionTextView); TextView departure1 = (TextView) row.getTag(R.id.departure1); TextView departure2 = (TextView) row.getTag(R.id.departure2); TextView departure3 = (TextView) row.getTag(R.id.departure3); direction.setText(d.getName()); if (d

How can I download a file to my downloads folder android

纵饮孤独 提交于 2019-12-10 17:34:53
问题 I want to download a file using android to my sdcard and then see it from my android emulator. I can download a file to /mnt/sdcard/myfile.jpg I want to see this file from my android emulator. Or I can download it to my downloads folder. 回答1: Please check this example for downloading and saving the file: http://www.androidsnippets.com/download-an-http-file-to-sdcard-with-progress-notification. After you downloaded the file you can see it in the DDMS perspective, at the "file explorer" view.

How to Disable Hyper-V and install HAXM in Windows 8

跟風遠走 提交于 2019-12-10 17:17:06
问题 I am trying to install HAXM for android studio but it is showing error: Now my system has VT-x enabled: after this I tried to disable HYPER-V but when i try through cmd it shows a error: In windows feature I dont have a HYPER-V option: I have uninstalled my AVAST anti virus and I have tried to disable HYPER-V through powershell also but it is not working.. I am using windows 8.1 64-bit OS with intel i5 Please Help Thanks in Advance!! 回答1: After Doing lot of search on internet about this