Intent intent= new Intent(getBaseContext(), YourActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplication().startActivity(intent);
怎么在service中启动activity
最新推荐文章于 2023-10-16 17:42:29 发布
Intent intent= new Intent(getBaseContext(), YourActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplication().startActivity(intent);