| | |
| | | import android.content.Intent; |
| | | import android.content.pm.PackageManager; |
| | | |
| | | import com.anyun.exam.lib.MyLog; |
| | | import com.anyun.basecommonlib.MyLog; |
| | | |
| | | import safeluck.drive.evaluation.MainActivity; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | */ |
| | | public class BootFinishReceiver extends BroadcastReceiver { |
| | | |
| | | private static final String TAG = "BootFinishReceiver"; |
| | |
| | | public void onReceive(Context context, Intent intent) { |
| | | if (intent.getAction().equals(ACTION)) { |
| | | MyLog.i(TAG,"开机启动完成"); |
| | | Intent first= new Intent(); //启动指定页面 |
| | | //启动指定页面 |
| | | Intent first= new Intent(); |
| | | PackageManager packageManager = context.getPackageManager(); |
| | | first.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); |
| | | first.setClass(context,MainActivity.class); |