Android notifications customization - android

Android notification shouldn't disappear after clicking the notification when tapped on it. Only after clicked on "clearall" then it should be cleared. How can I implement in Android?
Android notification shouldn't disappear after clicking the notification when tapped on it. Only after clicked on "clearall" then it should be cleared.
How can I implement in Android?

Related

Show ONLY notification dot on app icon WITHOUT notificatioN

Does there exists any mechanism in Android where ONLY notification dot gets displayed without any notification item ?
I just want to show notification dot on app icon to notify user about updates within the app.
Is this possible ?

How to make notification push automatically without click any button?

I have developed one application that required notification displayed to the user. So I already search on how to create a notification and made it display automatically by setting date and time without using any button to push the notification.Anyone can help me how to solve this problem?

Android notification gets cleared on opening App via app launcher

I have created a new application in which for showing notification used NotificationCompat Notify method. Defining a functionality that notification should get dismissed only on clicking it or swiping it.
It should not get dismissed on opening app via launcher (same like telegram app)
Tried so far,
setAutocancel method to dismiss the notification on clicking or swiping.
but I couldn't able to stop the dismiss when app gets opened via launcher
Also, I have tried showing notification using foreground service but it is not supporting swipe dismiss behaviour.
Is there anyway to support swipe dismiss and notification shouldn't get dismissed when I open app via app launcher

Android - stay on notification list

I'm building an Android app which creates notifications. Each notification has a number of additional actions.
The default application (when the user taps on the notification) launches an activity in my app. That's working fine.
When the user swipes the notification to dismiss the notification, my app responds by doing some deletion work, and the user is left on the list of notifications. The one that the user swiped is removed from the list.
For some of my additional actions I want to launch activities, and that's working fine; for the other actions, I want my app to do some work but I also want the user to remain on the notification list. I'm struggling to find a way to do this last part - all my attempts to configure the intent and pending intent for my additional action result in behaviour whereby when the user clicks on the action, the notification list disappears.
Is there any way to get what I want (i.e. a notification additional action which performs work but leaves the user on the notification list)? Do I need to build a custom notification layout or something?

Expanding a notification from the notification bar

Is it possible to make a notification expand on click? For example, by clicking on the notification it would bring up a listview with more options.
In the app I'm working on, a user has many files. Each time the app is opened a notification is issued with the number of files that have been modified. Is there any way to click on this notification so I can see a sub-list of each file?
I could do this by registering an intent with a ListActivity, but is there a cleaner way to do it?
Thanks!

Categories

Resources