Questions tagged [android-notification-bar]

Use this tag for questions relating to issues showing your notification in the notification area.

When you tell the system to issue a notification, it first appears as an icon in the notification area. To see the details of the notification, the user opens the notification drawer. Both the notification area and the notification drawer are system-controlled areas that the user can view at any time.

Useful links

359 questions
3
votes
1 answer

GCM Notification setAutoCancel(true) not working in Android 5.1.1

I am displaying a notification with this code, but setAutoCancel(true) is not working because when i press on the notification to open the app, the notification is still on the notifications bar and i must delete it manually with the finger gesture…
3
votes
0 answers

Is Android pop up notification only available on lollipop? How can I get the same effect for pre lollipop device?

I set the priority and the heads up notification works fine on lollipop devices. However, is it possible to get the same effect on non lollipop deivecs? Or do I have to do a toast or something? Thanks!
3
votes
1 answer

Immersive Full Screen Mode (Sticky flag) disabled when i open a spinner

I am using Inmersive Full Screen mode with Sticky flag modality, the fourth of these four modalities explained here: https://developer.android.com/training/system-ui/immersive.html I am doing this: if( Build.VERSION.SDK_INT >= 19 ){ …
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
3
votes
2 answers

Customize Notification Area in Android

I am using RemoteViews to create a custom notification. Is there any way to customize the Notification Area Specially Height...??? I don't want to use BigView coz i need use it for APIs less than 11. The sanpshots are : Here is my code : public…
3
votes
1 answer

Android stop notification in status bar while receiving message

I'm developing an application , and want to check every SMS messages content for a specific text , and do some actions the delete the SMS , and not let user notify if the message contained that text , else I will recreate a notification and notify…
3
votes
3 answers

Remove notification from status bar when app kill from background

I am facing one problem when i kill application from background.My application is closed but the notification from the status bar is still there. How can we remove the notification from status bar when my application kill from background . Can we…
3
votes
2 answers

notification body multiline

how to make this in two line like ALERT Pending follow-ups: 9 Enquery not attended once: 11 I am passing a string value "Pending follow-ups: " + all_follow_ups + "\n" + "Enquery not attended once: " + noOfEnquiry but not showing in two line. I am…
A J
  • 4,542
  • 5
  • 50
  • 80
3
votes
1 answer

Hide notification bar when incoming call in android

When phone state is ringing, I want to run an activity to show my own screen. I'm…
3
votes
1 answer

How do I combine all my notifications into one expandable one in API 14+?

My app might have multiple notifications for different events and instead of showing 4 notifications, I want to combine them like GMail does. How do I do this? Is this possible in API 14 or was this added in JellyBean?
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
3
votes
1 answer

Audio player in Android

I designed an app which plays 12 different audio files based on the item selected in the list view from server. When the audio is playing and I hit home button in the emulator I can see the notification in notification bar but when I click it the…
2
votes
2 answers

Show LevelListDrawable on Notification Bar

I am trying to show a icon on the notification bar. The icon is a LevelListDrawable which could change the content by setting levels. The question is I can't set level to the icon in the notification. I have tried to use "Notification.icon" and…
2
votes
3 answers

Hide notification bar without using fullscreen

Here is my problem: is it possible to hide the android notification bar without using the fullscreen flag? I need to adjustResize my app when the soft keyboard is shown, but fullscreen apps ignore the resizing (as far as i know). Has anyone an idea…
Sprigg
  • 3,340
  • 1
  • 18
  • 26
2
votes
2 answers

Who will update the time in android notification bar?

1)In android source code which file will set time in notification bar ? If anybody worked/know that file please let me know, i have to compare the time showing in notification bar and the current time. 2)And how the time will be updating each sec…
Vins
  • 4,089
  • 2
  • 35
  • 50
2
votes
1 answer

Android: Make the notification bar as google+

Does anyone have an idea or sample code that make the notification bar widget(at the bottom) that is the same as one in Google+ application in Android? Thanks in advance, Tri. The idea is this widget is the same as notification bar of Android,…
2
votes
2 answers

Android: Multiple Alarm not working

In My application i have set the two alarm. On toogleButton on i am going to set it on with below code: case R.id.toggleButtonTwoMonth: myPrefs = this.getSharedPreferences("myPrefs",MODE_WORLD_WRITEABLE); if…