Questions tagged [android-notifications]

A status notification adds an icon to the system's status bar (with an optional ticker-text message) and a notification message in the notifications window.

A notification is a user interface element that you display outside your app's normal UI to indicate that an event has occurred. Users can choose to view the notification while using other apps and respond to it when it's convenient for them.

Think of notifications as a news channel that alerts the user to important events as they happen or a log that chronicles events while the user is not paying attention. The user can expand the notification bar and by selecting the notification the user can trigger another activity. Notifications in Android are represented by the Notification class. To create notifications you use the NotificationManager class which can be received from the Activity via the getSystemService() method.

Useful links

4920 questions
2
votes
1 answer

Test Clover unpublished app(for Production environment) on clover dev machine or Android device

I have unpublished production app and I need to test "App notification" in clover's dev device or Android phone before publishing it. I have already tested in dev environment. Is there any way so I can test it before published Thanks in advance.
2
votes
2 answers

How to show notification icon in colored one in android lollipop version

I'm making one application, notification icon in Lollipop is showing while, for my knowledge I know that Lollipop shows that icon in white color, but I saw that other application is showing icon in colored one. How to do that? I want my icon to be…
developer
  • 319
  • 1
  • 4
  • 15
2
votes
1 answer

Android Notification to the End user

App is already published on playstore, can anyone explain the proper way or channel to create and send notification to the end user? Where i can also get the info regarding how much device has received the notification and how much user have clicked…
sam
  • 128
  • 9
2
votes
0 answers

How to schedule multiple local notifications in android on a particular day

In my app I need to schedule multiple notifications on a particular day and in different time intervals.(e.g: on 3/12/2015 at 9AM,11AM,2PM,5PM I need to show notifications with different content). I have used Alarm Manager and Broadcast Receiver to…
ShivLeela
  • 117
  • 1
  • 3
  • 12
2
votes
1 answer

Resume (Foreground Started) Activity without updating ImageIcons

I've a music player service and I'm showing a notification to users when it goes foreground. But when user click notification to come back to App, it's updating icons again (icons images are setted at onCreate). I know it's updating icons because…
2
votes
1 answer

How to recreate recent-apps activity when app is launched from notification

My app and activity is in my list of recent apps when I receive a notification. When I click on the notification, I want the intent of the notification to be honored. In my case I want to restart the activity (brute force) and pass in the new…
Katedral Pillon
  • 14,534
  • 25
  • 99
  • 199
2
votes
0 answers

android -How to make our own push notification service

as you know there are limitations for sending push notifications from parse , for some reasons I can't use google for sending push notifications . I've web server for each of my applications , is there any way to send pushes from my server ? I don't…
donald draper
  • 561
  • 2
  • 9
  • 24
2
votes
1 answer

Android notification navigation backstack

Hi team i am facing an issue in notification backstack say i have 4 activities A1,A2,A3,A4 I have a notification which is intent to A2, suppose imagine that we are in A4 went via A1 -> A2 -> A3 ->A4, now i m receiving notification and while tapping…
Suresh
  • 1,199
  • 2
  • 12
  • 36
2
votes
0 answers

A strange Exception about notification: ClassCastException: RemoteViews$SetOnClickPendingIntent cannot be cast to RemoteViews$ReflectionAction

I have encounteredd a problem. I collect a exception message about notification for startForeground. It mainly appears on SamSung GT-I9300, API 15. Is there any clue about it ? Expect your fabulous analysis. Thanks Bad notification for…
Victor Choy
  • 4,006
  • 28
  • 35
2
votes
1 answer

Android notification click restore activities

I have MainActivity and WorkActivity in my app. WorkActivity starting by MainActivity: Intent intent = new Intent(view.getContext(), WorkActivity.class); intent.putExtra("intArray", intArray); startActivity(intent); In WorkActivity I read intArray…
tpmanc
  • 23
  • 4
2
votes
0 answers

After stopping the app,restarting the background service takes long time.How to make it faster?

I have a service class in my android app and I want it to catch new entries.If one of the enries is belong to the user I want the service notificate the user.My problem is that after stopping app,service stops and in the working apps section its…
Hasan
  • 1,243
  • 12
  • 27
2
votes
1 answer

Android NotificationListenerService: how to know if user clicked on the notification (opening the related app) or simply deleted it

I'm working with notifications generated by every app (not only mine) on my Android device (android 5.1.1). By extending NotificationListenerService I'm able to know when a push notification is posted (overriding the "onNotificationPosted" method)…
t.montanaro
  • 123
  • 11
2
votes
2 answers

Android notification with custom xml layout not showing

I want my notification to ellipsize the text if it's too long, so I created a custom layout for it:
hubert
  • 923
  • 2
  • 9
  • 18
2
votes
1 answer

How to get notification icon of other app?

I'm using NotificationListenerService for catching notification, with the help of kpbird blog. But I'm unable to extract the icon's drawable. I'm also going through this, but things are not cleared to me. Please help.
PPB
  • 151
  • 1
  • 14
2
votes
0 answers

Android Notification not vibrating while on call

I am working on an emergency messaging app in android. The most important part of this app is showing notifications for a new message when the app is in background and the user is not interacting with the app. The notification requirement is that…
rbing
  • 133
  • 1
  • 10