Android 使用报警管理器显示对话框
我不知道如何设置警报,以便在5秒钟后显示Android 使用报警管理器显示对话框,android,alarmmanager,alarm,android-alarms,Android,Alarmmanager,Alarm,Android Alarms,我不知道如何设置警报,以便在5秒钟后显示警报对话框,以便我执行某些操作 知道的人, 请帮帮我 谢谢 p/s:我可以使用报警管理器重新启动应用程序,如下所示 您可以将您的Intent设置为向其传递一些参数的活动,以便在其onResumemethodo中显示对话框,例如: Intent myIntent = new Intent(source, SplashScreen.class); myIntent.putExtra("show_dialog",true); PendingIntent mPi
警报对话框
,以便我执行某些操作
知道的人,
请帮帮我
谢谢
p/s:我可以使用报警管理器重新启动应用程序,如下所示
您可以将您的Intent
设置为向其传递一些参数的活动,以便在其onResume
methodo中显示对话框,例如:
Intent myIntent = new Intent(source, SplashScreen.class);
myIntent.putExtra("show_dialog",true);
PendingIntent mPi = PendingIntent.getActivity(source, 0,myIntent, ((Activity) source)
.getIntent().getFlags());
希望能有帮助
Intent myIntent = new Intent(source, SplashScreen.class);
myIntent.putExtra("show_dialog",true);
PendingIntent mPi = PendingIntent.getActivity(source, 0,myIntent, ((Activity) source)
.getIntent().getFlags());