我想在每次应用程序启动时显示弹出窗口。从另一个移动到上一个活动时,弹出窗口不应该再次出现。但是每次应用程序启动时弹出框必须再次出现。仅在应用程序启动时显示弹出窗口
这就是我已经使用,但每次应用程序启动第一次运行设置为false。
public static firstrun;
firstrun = getSharedPreferences("PREFERENCE", MODE_PRIVATE).getBoolean(
"firstrun", true);
if (firstrun) {
//show popup.
// Save the state
getSharedPreferences("PREFERENCE", MODE_PRIVATE).edit()
.putBoolean("firstrun", false).commit();
}
嘿兄弟RU使用闪屏或不使用 –
是我使用闪屏 – HussainMarvi
请参阅下面我的回答... –