232 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
123
views
Android Auto Simulator (DHU) Not Receiving Notifications from My App
I am trying to experiment with android auto and have developed a small app that generates a notification on button click. I receive the notification on my phone but not on the android auto simulator. ...
2
votes
0
answers
74
views
How to clear the Resumable audio notification
My app plays audio, there is a requirement that in certain cases, the app should not allow the audio get played. However the newer Android versions would create a card in the notification tray for the ...
0
votes
1
answer
328
views
Limit exceed cannot create more channels error NotificationManager
I got the
java.lang.IllegalStateException: Limit exceed; cannot create more channels
When I check my code I see that I made a big mistake by using System.currentTimeMillis() for channel ID.
So is ...
0
votes
1
answer
287
views
Why do my Android app notifications stop getting displayed (Meizu Flyme OS)?
I made a simple Android Studio project to test the notifications API. The app has a single button, which when pressed displays the notification. I'm installing the app on an Android Meizu phone ...
0
votes
0
answers
235
views
How to custom the default notification of clipboard manager in Android 13 and higher?
This is my code block to fix
private inner class ViewEmojiHolder(itemView: View) : RecyclerView.ViewHolder(itemView){
var emoji: TextView = itemView.findViewById(R.id.textView_emoji)
...
0
votes
1
answer
228
views
Having Problem showing the notification icon and its corresponding text and title in Android Studio
I have written the following code to show a notification in Android Studio:
package com.example.notificationexample;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app....
1
vote
0
answers
149
views
Handling race condition in Firebase messaging service
I'm using the following code to display chat notifications in my android app.
//copy old notification (if any)
Notification oldNotification = getActiveNotification(...
0
votes
0
answers
1k
views
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent while placing Call
Whenever the call is placed on Android 13, it is causing the app to crash. I am using twilio in my react native project. Below is the sentry logs, which I am receiving.
java.lang....
0
votes
2
answers
953
views
Android SDK 33: How to cancel PendingIntents on the AlarmManager that were created using FLAG_UPDATE_CURRENT
In our app users can setup reminders for different tasks. In the current version (built with SDK 30), the notifications are basically created the following way:
...
PendingIntent notification = ...
3
votes
0
answers
657
views
Android Media Notification progress bar is not showing up
I have media notification with 3 action buttons (pre/play/next).
I am trying to show the progress bar (seek bar?) in the notification somehow, with no luck.
All of the notification handling is being ...
0
votes
1
answer
264
views
Manage notifications settings inside the app on Andorid O and higher
I've created a few notification channels on my android app using:
val notificationManager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
notificationManager.createNotificationChannel(...
2
votes
1
answer
1k
views
NotificationManager.notify() throwing securityException only on android 11 and 12
On my alarm clock app, I have 180 crashes (impacted 42 users) of java.lang.SecurityException caused by NotificationManager.notify().
Since I have around 50K active users I guess it happens only under ...
3
votes
1
answer
590
views
Android group summary displayed as a separate notification on lock screen
I'm having a strange issue with notification groups on Android 12. (I haven't checked other OS versions.) I show two notifications, and a group summary notification, using the code below:
val ...
0
votes
1
answer
368
views
Temporarily hide notifications of other apps in Android
I'm looking to manage the visible notifications of other apps. It looks like I can cancel notifications with a NotificationListenerService. Is there a way to only do so temporarily, and then show them ...
0
votes
1
answer
1k
views
Notification Manager creates only one notification channel but i need to create three channels
in my application, i have created 3 notification channels (Follow, Comment, Like) to receive notifications from Firebase Cloud Messaging.
When i run app and go to Settings > Apps > My App > ...