How to check Android lock widgets in emulator?

It does not seem to work. I considered the proposed solution: Android-emulator 4.2.2, not showing the ability to add a widget to the lock screen , but without success. Using a rev1 image (since rev2 has an error, here: http://code.google.com/p/android/issues/detail?id=58548 )

In no way do I get a + sign ... Ideas?

Of course, the project uses Android 17.

+4
source share
5 answers

To get to the Android Emulator lock screen, in the latest emulators (using Android Studio 2.3), just click the "Power" button in the emulator. You will get a black screen. Press it again, and here it is, your lock screen.

Android Emulator

+3
source

With the following combination, it now works for me.

Install: Launch the Android SDK Manager. In the "Android 2.2.2 (API 17)" section, install the Intel x86 Atom System Image. He offers Rev. 1 . Also download, install, and then complete the Intel HAXM installation, if you have not already. You may need to allocate more RAM for HAXM. IIRC, I have it installed on 2 GB.

(The Android SDK Manager has Rev. 2 from the ARM EABI v7a System Image. According to Android emulator 4.2.2, which does not show the ability to add a widget to the lock screen , the lock screen widgets work in Rev.1, but not Rev. 2. I have not tested ARM system images.)

Create an AVD with these settings:

  • Device: Galaxy Nexus (4.65 ", 720 x 1280: xhdpi)
  • Target: Android 4.2.2 - API Level 17
  • CPU / ABI: Intel Atom (x86)
  • Leather: Leather with dynamic hardware controls.
  • Memory options: RAM: 768, heap VM: 64
  • Internal storage: 200 MiB
  • SD card: Size: 100 MB
  • Emulation options: [x] Use CPU

Add lock screen widget:

  • Run this AVD emulator.
  • Run the application in this emulator.
  • If you need to get to the lock screen, press the simulated power button twice (off, on).
  • On the lock screen, swipe the clock widget. He must grow a large rectangle. Release the mouse.
  • Swipe right until you reach the "+" screen.
  • Press "+", then select your widget from the list.

NOTE. Android L does not support lock screen widgets. The function has disappeared.

Hope this works for you. There may be more independent variables, and the above configuration is certainly not the only one that works.

+2
source

Press (rather click :)) the power button twice on the emulator. This will force it to go into lock mode. After that, press the lock button again, the phone will light up, and you will be asked to provide a print / finger print / pattern if you put them in your unlock. Hope this helps.

0
source

Use the power button, but first set the lock screen (for example, swipe your finger) in the Android settings. enter image description here

0
source

Yes, it does not seem to work with my AVD. But it works with genymotion. Maybe you can try. Download it from http://www.genymotion.com/ .

-2
source

Source: https://habr.com/ru/post/1498278/


All Articles