Questions tagged [notificationmanager]

This is a class which helps create notification for you app. Import Statement for NotificationManager class android.app.NotificationManager

233 questions
-1
votes
1 answer

How to cancel ongoing notification when app is killed in Oreo?

I'm facing issue in cancelling ongoing notification from notification bar. It's working perfectly on previous versions of android using onTaskremoved() in Service,but not in Oreo. I just need to cancel notification when app is force closed from…
-1
votes
2 answers

Android Notification is disappeared when app is removed or updated

When I develop an app, I found that notification is disappeared when app is removed or updated. There was no source code to unregister notification on my app. I guess that when app is removed or updated, ACTION_PACKAGE_REMOVED intent will be…
MG. Park
  • 11
  • 1
-1
votes
2 answers

Notification and OnChangeLocation from GPSTracker Class

I use a GPSTracker class, with the method OnLocationChanged I want to send a notification when ....the locaiton change :) i use : @Override public void onLocationChanged(Location location) { latitude = (double) (location.getLatitude()); …
-1
votes
2 answers

Why isn't my AlarmManager calling the Pendingintent

I'm trying to make my application use AlarmManager to send a notification after 5 seconds, but the pendingIntent doesn't seem to get called. Heres my code In onCreate in MainActivity: Long alertTime = new…
-1
votes
2 answers

Android notifications getting cleared when clicking on clear all button on the phone

Hi im having a problem with notification getting cleared by clicking clear all in the status bar on the phone.I need to clear the notification only when the user clicks the specified notification and not by clearall option.The notification has to be…
Meenu K
  • 11
-1
votes
1 answer

set notification for repeating day and time

I am trying to create a notification that fires on a specific day and time. public void notify(View v){ Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.DAY_OF_WEEK, 2); calendar.set(Calendar.HOUR_OF_DAY, 8); …
user1797190
  • 227
  • 1
  • 3
  • 8
-3
votes
1 answer

Little Symbol in Notification Icon

can somebody tell me how to get rid of the little Symbol in the Notification Icon? Bitmap icon = BitmapFactory.decodeResource(mainact.getResources(),R.mipmap.ic_launcher); Notification notification = new NotificationCompat.Builder(mainact,…
-3
votes
1 answer

NotificationManager.cancel() is not working

I want to delete a notification which is located on my status bar. I used Notification Manager.cancel() but it didn't work. I used cancelAll() too with the same result. My code is: public class NotificationListenerService extends…
1 2 3
15
16