Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator(Android Studio) Home button not working and giving logcat - I/WindowManager: Not starting activity because user setup is in progress

Started emulator from Android Studio and it's Home button not working. When I press Home button, in logcat I can see

I/WindowManager: Not starting activity because user setup is in progress: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 (has extras) }

And same happens(same logcat) when keyboard shortcut(keyboard Home button) is used.

I restarted emulator and my machine several times, but no help.

The thing I want to achieve is killing my app by Home button Long Press

Emulator details:

Name: 2_7_QVGA_slider_API_23_L
CPU/ABI: ARM (armeabi-v7a)
Path: C:\Users\sh56000\.android\avd\2_7_QVGA_slider_API_23_L.avd

Target: Android 6.0 (API level 23)
Skin: 240x320
SD Card: 100M
Snapshot: no
hw.dPad: no
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: 2.7in QVGA slider
vm.heapSize: 16
skin.dynamic: yes
hw.device.manufacturer: Generic
hw.gps: yes
hw.audioInput: yes
hw.keyboard.lid: yes
hw.cpu.model: cortex-a8
tag.id: default
hw.camera.back: none
hw.mainKeys: yes
AvdId: 2_7_QVGA_slider_API_23_L
hw.camera.front: none
hw.lcd.density: 120
runtime.scalefactor: auto
avd.ini.displayname: 2.7 QVGA slider API 23 L
snapshot.present: no
hw.device.hash2: MD5:89d*************55e42054c413
hw.ramSize: 512
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Default
runtime.network.latency: none
hw.keyboard: yes
hw.sensors.proximity: yes
disk.dataPartition.size: 200M
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
like image 920
Shirish Herwade Avatar asked Mar 24 '16 07:03

Shirish Herwade


People also ask

Why is my Android Studio emulator not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

How do I fix the emulator process for AVD was killed?

Go to: Tools > Android > AVD Manager and Press the "edit" (pencil) icon next to your AVD , Change "Graphics" to "Software".


1 Answers

AFAIK, there are 3 solutions for this issue: (2 & 3 need adb drivers or terminal app)

  1. Switch to guest and come back

Settings->Users->Guest (or)

Swipe down the notification bar and click on profile icon on the left top

  1. Start the initial setup and complete it or skip it

adb shell am start -n com.google.android.setupwizard/.SetupWizardActivity

  1. Give below command to mark that setup is done

adb shell

$ settings --user 0 put secure user_setup_complete 1

like image 67
Anvesh Yalamarthy Avatar answered Oct 12 '22 22:10

Anvesh Yalamarthy