问题描述
我正在设置闹钟
$htmlcontents = @{
'GET /' = '<html><building>Here is PowerShell</building></html>'
'GET /services' = Get-Service | ConvertTo-Html
'GET /index.html' = '<html><building>this is my index page</building></html>'
'GET /fromPage.html' = Get-content "C:\temp\fence.txt"
}
我曾经在 Bundle Resids = new Bundle();
Resids.putInt("ResID",ResID);
Resids.putLong("Time",Time);
intent.putExtras(Resids);
PendingIntent pendingIntent = PendingIntent.getbroadcast(context,(int)Time,intent,PendingIntent.FLAG_ONE_SHOT);
alarmMgr.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP,Time,pendingIntent);
之前设置 intent = new Intent(context,BRClass.class);
但是后来,因为每次都有新的闹钟意图,我无法使用 Bundle Resids = new Bundle();
,因为我不知道是哪个alarmMgr.cancel(pendingIntent);
用于 intent
。
在当前的实现中,只设置了第一个闹钟,没有设置其他闹钟。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)