19 lines
584 B
Java
19 lines
584 B
Java
package com.rubenvandeven.emotionhero;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
/**
|
|
* For kioskmode only!
|
|
* See http://www.andreas-schrade.de/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in-android/
|
|
*/
|
|
public class BootReceiver extends BroadcastReceiver {
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
Intent myIntent = new Intent(context, IntroActivity.class);
|
|
myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
context.startActivity(myIntent);
|
|
}
|
|
}
|