Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Android:多个警报不起作用
在我的应用程序中 我设置了两个闹钟 在 ToogleButton 上 我将使用以下代码将其设置为打开 case R id toggleButtonTwoMonth myPrefs this getSharedPreferences myPr
如何创建在设备和佩戴上不同的通知?
基本上 我想知道是否有可能创建两个不同的通知以及如何创建 一个用于 Android 设备 另一个用于 Android Wear 例如 我想要setContentText 但在 Android 设备上我想要setContentTitle an
Android
androidnotifications
wearos
如何在android中以编程方式增加铃声和通知音量
我正在尝试启用铃声正常模式并以编程方式增加音量 AudioManager mobilemode AudioManager mContext getSystemService Context AUDIO SERVICE int streamM
Android
androidnotifications
Volume
androidaudiomanager
Android NotificationListenerService onNotificationPosted 触发两次
我收听 WhatsApp 消息等通知 但每次有通知进入时 NotificationListenerService 都会触发两次 有谁知道这个问题吗 这是 AndroidManifest xml 中的一个片段
Android
androidnotifications
androidnotificationbar
不允许后台执行。 Android O 待定意图
我有一项服务可以安排一个启动通知的待定 意图 但是 自从 Android O 我收到此错误 我做了一些研究 偶然发现context registerReceiver 但这似乎并不能解决问题 Error W BroadcastQueue Ba
是否有一种直接的方法来停止服务以响应用户单击通知?
我想要以下行为 用户单击通知 Android 停止我的服务 问题是停止服务需要调用 stopService 而我无法轻松创建执行此操作的 PendingIntent 因此 我发现做到这一点的唯一方法是让我的服务接收一个特殊的 Intent
Android
androidservice
androidnotifications
Android 多重通知在点击时发送相同的数据
Android 中的通知在点击时具有相同的意图 我在安装主题后发送通知 考虑我安装了 4 个主题 通知窗口中出现了 4 个通知 但是当我单击每个通知时 它将启动特定的活动 但意图是每个意图具有相同的数据 我的代码是这样的 SuppressW
Android
androidintent
androidnotifications
androidnotificationbar
取消有关从多任务面板中删除应用程序的通知
我管理一个ONGOING来自我的应用程序的通知 而不是来自服务 当我使用 结束 按钮从任务管理器终止应用程序时 通知消失 当我从多任务面板中删除应用程序时 应用程序被终止 但是通知仍然存在 我的问题是 如何捕获此事件以清除通知 当应用程序从
Android
androidnotifications
Android 通知未显示超过 3 个操作
我想显示包含 5 个操作的通知 但它只显示其中 3 个 这是我用来显示它的代码 Notification notification new android support v7 app NotificationCompat Builder
Android
Notifications
androidnotifications
Android 中如何统计通知数量并显示单个图标?
我有多个 Android 通知 但是当我从网络服务器发送消息时 Android 设备会在状态栏上创建一个新的通知图标 我想统计未读通知的数量 显示在statusbar具有单个图标 并且当阅读通知时 该通知必须更改未读通知计数的数量 我该怎么
Android
eclipse
androidnotifications
androidnotificationbar
在 onCreate() 中对 singleTask Activity 进行旧额外的意图
例如 我创建了包含 2 个活动的项目 带有 android launchMode singleTask 标志的 FirstActivity 和 SecondActivity 首先 用户启动 FirstActivity 之后 SecondAc
在用户不点击通知的情况下处理数据负载?
在后台时 应用程序会接收通知托盘中的通知负载 并且仅在用户点击通知时处理数据负载 有没有办法在用户不点击通知的情况下处理数据有效负载 基于 FCM 文档处理消息 App state Notification Data Both Foregr
Android
androidnotifications
firebasecloudmessaging
firebasenotifications
如何正确处理startForegrounds的两个通知
我有一个上传文件的 IntentService 一切正常 但我对如何处理通知有点困惑 当我开始使用通知时startForeground 因为文件可能相当大 除非绝对必要 否则我不希望上传被终止 当我使用startForeground 它在通
Android
androidservice
androidnotifications
IntentService
通知与 API 26 兼容
我没有看到任何有关如何将 NotificationCompat 与 Android O 一起使用的信息Notification Channels 我确实看到一个新的构造函数需要channelId但如何获取 Compat 通知并在 Notif
Android
androidnotifications
Android 通知不起作用
我一整天都在尝试从 ASyncTask 获取成功上传的通知 我当前的代码没有收到任何错误 但无法在通知栏 或其他任何地方 中显示通知 我在 LogCat 中没有收到任何消息 并且通知栏中没有显示任何通知 这是我的代码 Notificatio
Android
androidasynctask
androidnotifications
Android - 显示动画状态栏图标
我正在尝试将通知状态栏图标设置为动画 android R drawable stat sys upload 它工作正常 但图标没有动画 private void showStatusNotification NotificationMana
Android
androidnotifications
用户通知 - 如何从 GCM 恢复丢失的 notification_id?
我生成notification key如上所述here 假设由于某些错误我无法存储它 所以我尝试重新注册 这次我收到了 400 错误消息 notification key already exists 这看起来很奇怪 尤其是与将设备注册到
Android
pushnotification
googlecloudmessaging
androidnotifications
NotificationCompat.BigTextStyle 内容在新通知上消失
String ns Context NOTIFICATION SERVICE NotificationManager mNotificationManager NotificationManager this getSystemServic
Android
androidnotifications
Android 在特定日期通知
我必须创建一个应用程序 我必须在其中设置一个日期 并且在该特定日期的 9 点钟位置 我必须发出通知 做到这一点最简单的方法是什么 我希望应用程序能够正常工作 即使应用程序被杀了 AlarmManager 是一个解决方案吗 要安排操作 您可以
Android
AlarmManager
androidnotifications
androiddate
奥利奥中未显示通知
普通通知生成器不会在 Android O 上显示通知 如何在 Android 8 Oreo 上显示通知 是否需要添加任何新代码来在 Android O 上显示通知 在 Android O 中是必须使用渠道与您的通知生成器 下面是示例代码 S
Android
androidnotifications
android80oreo
«
1 ...
3
4
5
6
7
8
9
»