I\'m not sure how to autostart an android application after the android emulator completes its booting. Does anyone have any code snippets that will help me?
Edit your AndroidManifest.xml to add RECEIVE_BOOT_COMPLETED permission
Edit your AndroidManifest.xml application-part for below Permission
Now write below in Activity.
public class BootUpReceiver extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent) {
Intent i = new Intent(context, MyActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);
}
}