|
@@ -15,7 +15,12 @@ public class WdBootReceiver extends BroadcastReceiver {
|
|
public void onReceive(final Context context, Intent intent) {
|
|
public void onReceive(final Context context, Intent intent) {
|
|
if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
|
|
if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
|
|
Log.d("wdBoot", "收到开机广播,启动app");
|
|
Log.d("wdBoot", "收到开机广播,启动app");
|
|
- if ("m3520b_bnkj_zx".equals(Build.MODEL)) {
|
|
|
|
|
|
+
|
|
|
|
+ Intent startIntent= new Intent(context, NurseHomeActivity.class);
|
|
|
|
+ startIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
+ context.startActivity(startIntent);
|
|
|
|
+
|
|
|
|
+ /*if ("m3520b_bnkj_zx".equals(Build.MODEL)) {
|
|
//15.6主机开机后延迟5s启动
|
|
//15.6主机开机后延迟5s启动
|
|
new Handler().postDelayed(new Runnable() {
|
|
new Handler().postDelayed(new Runnable() {
|
|
@Override
|
|
@Override
|
|
@@ -25,7 +30,7 @@ public class WdBootReceiver extends BroadcastReceiver {
|
|
}, 5000L);
|
|
}, 5000L);
|
|
} else {
|
|
} else {
|
|
startHome(context);
|
|
startHome(context);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|