mainActivity中判断是否开启,如果开启,则在onResume中
if(nightReset)
{
finish();
startActivity(new Intent(this,MainActivity.class));
}
关掉,并且重新开启MainActivity
mainActivity中判断是否开启,如果开启,则在onResume中
if(nightReset)
{
finish();
startActivity(new Intent(this,MainActivity.class));
}
关掉,并且重新开启MainActivity