但是,如果应用程序被最小化,那么活动就无法从线程获得消息。如果线程中发生事件,如何将应用程序移动到最前线?(Intent.FLAG_ACTIVITY_NEW_TASK);
}但是如果我使用FLAG_ACTIVITY_NEW_TASK() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.ADD1:如果设置andr
com.example......AlarmService@16859914 with Intent { flg=0x4 cmp=com.example.....AlarmService (has extras) }: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag