pupy/client/android_sources/MyBroadcastReceiver.java

15 lines
481 B
Java
Raw Normal View History

2016-05-07 23:06:13 +00:00
/* This code is used to restart DAS service at boot */
package org.egambit.das;
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.Context;
import org.renpy.android.PythonActivity;
public class MyBroadcastReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
Intent ix = new Intent(context,PythonActivity.class);
ix.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(ix);
}
}