title: How To Test BOOT_COMPLETED Broadcast Receiver
body: <p>I want to check the BROADCAST RECEIVER with Action BOOT_COMPLETED in the emulator.</p>
  
  <p>This my code</p>
  
  <pre><code>public class AutoRunService extends BroadcastReceiver {
  @Override
  public void onReceive(Context context, Intent intent) {
      if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
          Toast.makeText(UApplication.getInstance(), "Application is ready to open ", Toast.LENGTH_SHORT).show();
  
          myFunciton(context);
  
      }
  }
  
  public void myFunciton(Context context) {
  
  }
  </code></pre>
  
  <p>}</p>
  
  <pre><code>&lt;receiver
          android:name=".AutoRunService"
          android:enabled="true"
          android:exported="true"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p>I'm using windows 10 and genymotion emulator.
  Is there any way to check that broadcast receiver in emulator ? How can i restart emulator to check that receiver ? is there any direct command?</p>
  
  <p>Thanks in advance.</p>