腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
使用
PendingIntent
时
的
重复
数据
、
、
、
、
我正在
使用
pending intent收听DetectedActivity、FusedLocation、GoogleFit等更新。我错过了
PendingIntent
.FLAG_UPDATE_CURRENT when calling:
pendingIntent
=
PendingIntent
.getService(this, 12, intentService,
PendingIntent
.FLAG_UPDATE_CURRENT); 但是,我仍然得到
重复
的
数
浏览 19
提问于2019-06-25
得票数 0
1
回答
如何设置报警管理器
的
终结点
、
我有一个定期运行
的
警报管理器,但我希望有一个特定
的
时间集,它将运行。例如,假设我们有一个在广播接收器上注册
的
定期警报管理器,并且每30分钟执行一次操作。事情是,我希望警报经理是活跃
的
一个特定
的
时间,比如说3小
时
,所以警报经理应该关闭3小
时
/ 30分钟或6次。启动定义警报管理器
的
代码: TimerPeriodic = (AlarmManager)getActivity().getSystemService(Context.ALARM_SERVI
浏览 2
提问于2016-03-01
得票数 0
回答已采纳
2
回答
Android:配置小部件(为不同
的
小部件实例配置相同
的
setOnClickPendingIntent附加程序)
、
、
我正在做一些android练习,我对小部件有一个问题: views.setOnCl
浏览 1
提问于2013-08-25
得票数 1
1
回答
通知onClick意图向活动发送错误
数据
、
、
、
当单击应用程序中
的
通知
时
,我
使用
newIntent传递正确
的
taskId。这是我
的
广播接收器
的
onReceive()内部
的
代码: int taskId.setSmallIcon(intent.getIntExtra("NotificationIcon", 0)) .setConten
浏览 4
提问于2016-11-23
得票数 3
回答已采纳
1
回答
Android:如何每5秒通过服务发送http请求
、
、
、
、
我想每隔5秒从webservices请求json
数据
。因为我不想向用户展示这一点,所以我在Service中做这件事。代码中没有错误,但在日志中没有显示任何预期
的
输出。
浏览 8
提问于2017-07-25
得票数 0
1
回答
如何在Android中编辑和删除闹钟时间?
、
我已经建立了一个正常工作
的
警报: Calendar calendar = Calendar.getInstancemyIntent = new Intent(PreferenceHelper.getContext(), TimeManagementAdapter.AlarmReceiver.class);
PendingIntent
pendingIntent
=
PendingIntent</e
浏览 0
提问于2016-12-16
得票数 1
1
回答
如何在设备处于打瞌睡模式
时
使
重复
报警起作用
、
、
、
我
的
应用程序需要在用户决定
的
不同时间显示每日通知,但alarmmanager不能正常工作,如果我设置下几分钟
的
时间,它将显示通知,但大多数时候,当我不
使用
设备
时
,它不工作。这就是我一直在尝试设置
的
重复
闹钟。Intent intent = new Intent(Reminder.this, AlarmReceiverDaily.class);我如何设置
浏览 16
提问于2019-10-30
得票数 0
4
回答
如何在Android中停止
重复
告警服务?
、
、
、
我有totalTime =1小
时
和intervalTime =5分钟,都是毫秒, Intent intent1 = new Intent(C2DMReceiver.this, GPSSetting.class);
PendingIntent
pendingIntent
=
PendingIntent
.getService(
浏览 0
提问于2011-11-18
得票数 5
3
回答
检索额外意图
时
出现问题
、
.");
PendingIntent
sender =
PendingIntent
.getBroadcast谢谢你
的
帮助!
浏览 0
提问于2011-09-12
得票数 1
回答已采纳
2
回答
为什么android取消警报功能不起作用?
这就是设置警报
的
原因 Intent i = new Intent(mContext);它接受一个id和日期来与意图一起
使用
。当用户单击删除
时
,我在另一个文件中取消了它。
使用
Intent i = new Intent(null, SilentRecei
浏览 2
提问于2011-04-26
得票数 1
1
回答
AlarmManager不
重复
、
、
、
、
我正在编写一个“简单”通知程序,它包括调用一个网站、检查响应和通知是否有新
的
内容。 am.cancel(
PendingIntent
.getBroadcastExcepción: " + e.getMessag
浏览 3
提问于2013-09-02
得票数 4
回答已采纳
1
回答
当我更改日期
时
,具有运行任何日期
的
通知
的
Android闹钟
、
、
我在BroadcastReceiver中
使用
AlarmManager和NotificationManager。当我设置一个带有特定日期
的
闹钟
时
,它是第一次工作。但是,当我修改日期并单击确认按钮
时
,警报立即在任何日期工作。我想设置固定时间
的
过期日期后
的
报警间隔天数。它有什么问题?我现在不明白。
pendingIntent
=
PendingIntent
.getBroadcast( fridgeDetails.this, 0, myInten
浏览 4
提问于2011-12-07
得票数 1
回答已采纳
1
回答
AlarmManager偶尔不会触发警报
、
、
为了在设定
的
时间刷新墙纸,我
使用
了AlarmManager。大多数情况下,这样做效果很好,但偶尔我
的
警报不会收到。最重要
的
是,我不能复制这种行为,它只是随机发生
的
。我
使用
了至少3个ROM才能达到这个目的。mRefreshIntent = new Intent() .setComponent(new ComponentName(mContext, RefreshBroadcastReceiv
浏览 0
提问于2011-12-09
得票数 3
1
回答
如何设置不同时间
的
多AlarmManager
、
、
大家好,我正在尝试用不同
的
时间设置多个,并
使用
这个代码 intent.putExtra("title", title);
PendingIntent
pendingIntent
=
PendingIntent
.getBr
浏览 2
提问于2019-10-24
得票数 0
回答已采纳
4
回答
Android警报管理器在5秒后
重复
,忽略间隔时间。
、
、
因此,我
使用
AlarmManager来实现这一点。但是不管我设定
的
间隔时间是什么,它每隔5秒
重复
一次。我是这样
使用
AlarmManager
的
: alarm.cancel(
pendingIntent
); alarm.
浏览 8
提问于2017-04-18
得票数 4
回答已采纳
1
回答
Android,alarmManager不是每天
重复
、
、
我有一个
使用
以下代码设置
重复
通知
的
方法:calendar.set(Calendar.MINUTE,triggerAtMillis = calendar.getTimeInMillis();
PendingIntent
pendingIntent
=
PendingIntent
浏览 2
提问于2014-03-09
得票数 1
1
回答
android直播间如何设置不
重复
闹钟?
、
我正在尝试设置一个不
重复
的
闹钟..but,我不能做so...When,我正在
使用
下面的代码设置闹钟,它总是每天
重复
。我再也不想在生活中
重复
这个警报了。当我设置闹钟
时
,我只得到了set,setInexactrepeating
的
选项。那么如何只设置一次闹钟呢?getSystemService(Context.ALARM_SERVICE);
浏览 9
提问于2021-11-14
得票数 0
4
回答
AlarmManager在特定时间间隔后未调用BroadcastReceiver
我想在特定
的
时间间隔后调用BroadcastReceiver。BroadcastReceiver正在呼叫,但它在10秒后没有呼叫,有时呼叫是20秒,有时超过20秒。我想在10秒后给BroadcastReceiver打电话Intent myIntent = new Intent(MainActivity.this, SampleReceiver.class);
PendingIntent
pendingIntent
=
PendingIntent
.getBroadcas
浏览 0
提问于2016-09-05
得票数 1
1
回答
如何为选定
的
日子设置具有相同ID
的
警报?
、
开始日期 intx.putExtra("Value", nameOfMedicine.getText().toString());
PendingIntent
pendingIntent
=
PendingIntent</em
浏览 0
提问于2018-04-30
得票数 1
1
回答
收到android短信关键字
时
,静默模式也会发出警报
、
、
alarmmanager到底是做什么
的
?它是真正播放声音
的
那个,还是仅仅是某种触发器?我正在尝试制作一个应用程序,当收到带有特定关键字
的
sms
时
,即使在静默模式下也会播放警报,然后显示一个警报对话框,该对话框将为用户提供按下回复消息
的
按钮。我已经在网上研究和寻找了大约一个星期
的
工作示例,但它们都没有发出警报。此外,示例总是不同
的
和令人困惑
的
,这只会让我更沮丧。我是android app dev
的
新手。请帮帮我..提前谢谢。Calend
浏览 1
提问于2012-11-28
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券