📜  java startActivity 崩溃 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:16.603000             🧑  作者: Mango

代码示例1
Intent i = new Intent(CONTEXTOFYOURCURRENTACTIVITY , YOURFUTUREACTIVITY.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
MainActivity.context.startActivity(i);