user3926701
user3926701

Reputation: 333

How to reboot android device emulator in Genymotion

How can i test my application after reboot(BOOT COMPLETED) using Genymotion I am using nexus 4 as device

<receiver android:name="com.template.SampleBootReceiver"
            android:enabled="true">
    <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED"/>
    </intent-filter>
</receiver>

Upvotes: 14

Views: 69324

Answers (6)

Alan Nelson
Alan Nelson

Reputation: 1229

Press and HOLD the power button on Genymotion's UI on the bottom right. That will pop up the menu to restart. The app will freeze up as it shuts down, but upon rebooting it you will see that it has restarted.

enter image description here

Upvotes: 0

eyal-lezmy
eyal-lezmy

Reputation: 7116

You can use the command line with adb reboot. It should restart your device.

To use adb you need to be inside the adb binary's folder. ie, <android SDK>/platform-tools/ or <genymotion folder>/tools/ if the android SDK is not installed. You can also these folders to your path to access it from anywhere.

Upvotes: 40

Dylan Pierce
Dylan Pierce

Reputation: 4668

When on linux I found the adb binary in /path/to/genymotion/tools/adb

In my case:

~/genymotion/tools/adb reboot

Works like a charm.

Upvotes: 1

user3889585
user3889585

Reputation: 217

works for me on mac:

  • open terminal
  • go to /Applications/Android Studio.app/sdk/platform-tools
  • make sure adb is in directory (use ls command)
  • ./adb reboot

Genymotion emulator restarts...

Upvotes: 17

tigerjack
tigerjack

Reputation: 1178

Found the solution using also the answer from @eyal-lezmy and other stuff on the web. If you have more than one device running, you can reboot a specific device in this way

  1. LIST DEVICES

From <genymotion-installer-path> launch genymotion-shell

Inside the shell, run devices, take note of IP address and port of the device you want to reboot and exit.

  1. REBOOT WITH ADB

From <android-sdk-folder>/platform-tools run

adb -s <device-ip>:<device-port> reboot

Upvotes: 5

B M
B M

Reputation: 1882

You can press emulator power button. When pressed, you will see option dialog. That dialog you can choose "Restart". Hope for help.

enter image description here

Upvotes: 11

Related Questions