How to reboot android device emulator in Genymotion

user3926701 picture user3926701 · Sep 9, 2014 · Viewed 66.3k times · Source

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>

Answer

eyal-lezmy picture eyal-lezmy · Sep 9, 2014

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.