Activity启动模式:launchMode 和 Intent中设置标志setFlags

Activity指定启动模式有两种: (1)经过清单文件AndroidManifest设置launchMode属性 <activity android:name=".MainActivity" android:launchMode="singleTop"/> (2)经过在Intent中设置标志 Intent i = new Intent(context, MainActivity.class);
相关文章
相关标签/搜索