I am using Android emulator 2.0, everything is fine. Device Information:
Name: Nexus_5X_API_23
CPU / ABI: Google API for Intel Atom (x86)
Path: /home/khang/.android/avd/Nexus_5X_API_23.avd
Target: google_apis [Google API] (API level 23)
Leather: nexus_5x
SD Card: /home/khang/.android/avd/Nexus_5X_API_23.avd/sdcard.img
hw.dPad: no
runtime.network.speed: full version of hw.accelerometer: yes hw.device.name: Nexus 5X
vm.heapSize: 100
hw.device.manufacturer: Google
hw.gps: yes image.androidVersion.api: 23
hw.audioInput: yes image.sysdir.1: system-images / android-23 / google_apis / x86 /
tag.id: google_apis
hw.camera.back: emulated
hw.mainKeys: no
AvdId: Nexus_5X_API_23
hw.camera.front: emulated
hw.lcd.density: 420
runtime.scalefactor: auto
avd.ini.displayname: Nexus 5X API 23
hw.gpu.mode: auto
hw.device.hash2: MD5: 1be89bc42ec9644d4b77968b23474980
hw.ramSize: 1536
hw.trackBall: no
hw.battery: is
hw.cpu.ncore: 2
hw.sdCard: yes tag.display: Google API
runtime.network.latency: none
hw.keyboard: yes hw.sensors.proximity: yes disk.dataPartition.size: 800M
hw.sensors.orientation: yes avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
I am trying to test my broadcast receiver which is blocking the screen lock / unlock action. But I can not imitate it in Emulator 2.0, because whenever I press the power button (or Ctrl P), the Android endorder automatically closes (there is no error message).
I thought the power button was causing the problem, but when I install an application that can make the device sleep (screen lock), my Android emulator will continue to close without a log message or error message.
Did anyone know this problem? Ask me if you would like more information.
source share