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
17
votes
3 answers

How to tell the activity has been covered by the notification area?

Usually, Android calls onPause on your Activity when it starts being obscured or hidden, followed by onStop when it's no longer shown at all. In my game, I pause the game in onPause, so the user doesn't lose the game while looking…
Dan Hulme
  • 14,779
  • 3
  • 46
  • 95
15
votes
4 answers

Why does the "download completed" notification disappear on Gingerbread devices?

I'm using the DownloadManager class to programatically download a file. All works fine but I can't get the download completed notifcation to persist. It disappears immediately once the download has completed. Here's my code: Request rqtRequest = new…
14
votes
5 answers

Android: Manage multiple push notification in device of an app

I am developing an application in which i implemented Push notification functionality. My code of onMessage - GCMIntentService.java is: @Override protected void onMessage(Context context, Intent data) { String message =…
14
votes
5 answers

Android Galaxy S4 -- Activity that is visible over lock screen

A few years ago, I wrote an alarm app that worked on Android 2, and I'm now trying to upgrade it to work on Android 4. Specifically, on the Samsung Galaxy S4. On Android 2, if the phone was sleeping, it would wake the phone up and display a "Snooze…
13
votes
3 answers

Bluetooth pairing request on notification bar?

Hey everyone! Started programming with Bluetooth on Android awhile ago. But now I've run into some issues. I'm wondering why the pairing request sometimes shows up in the notification bar and sometimes this is skipped and the dialog is shown…
Mazze
  • 1,354
  • 4
  • 17
  • 35
13
votes
5 answers

How to get the Status Bar background color to show colorPrimaryDark

I have a layout that used to update the background color of the status bar based on colorPrimaryDark. This worked great when the layout's root layout was a CoordinatorLayout, but when I switched it to a LinearLayout the status bar background is no…
12
votes
2 answers

How to show different icons for status bar and notification bar in Android?

I'm creating android notification according to android documentation. I used large icon and small icon for Notification bar. In this case small icon is showing on both status bar and notification bar . I want to show different icons for status bar…
james
  • 1,967
  • 3
  • 21
  • 27
12
votes
1 answer

Can I force expand android notification on android 4.1+?

I wonder if I could force expand my notification which have 2 buttons, because I don't think users will find them if they are not expanded. Poweramp seems achieved that, anyone please help me. thx in advance.
thecr0w
  • 2,148
  • 4
  • 33
  • 59
11
votes
3 answers

How to count number of notification and display single icon in Android?

I have multiple Android notification, but when I send a message from my web server, the android device creates a new notification icon on status bar. I want to count the number of unread notification, display it on statusbar with single icon, and…
11
votes
2 answers

Android - Keep notification steady at Notification Bar

I have written the function to notify and display at Notification bar: private void showNotification() { CharSequence title = "Hello"; CharSequence message = "Notification Demo"; NotificationManager…
Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
11
votes
2 answers

Difference between Push Notification and Pull Notification?

DO anyone know what is the difference between "Push Notification" and "Pull Notification"? I know "Push Notification" is C2DM, but I dont have any Idea that what is "Pull Notification" Anyone pls help..
Kanika
  • 10,648
  • 18
  • 61
  • 81
10
votes
2 answers

Smooth transition between full-screen-activity and one with notification-bar and action bar

Background I have an app that has 2 activities : splash activity, which is shown in full screen (no action bar, no notification bar) main activity, which has both an action bar (uses actionBarSherlock) and a notification bar. The problem For some…
10
votes
2 answers

Android Multiple Notification sending same data on clicking

Notification in android taking same intent on clicking. I am sending notifications after installing the theme. Consider I install 4 themes and 4 notifications appear in Notification window, but when I click on each notification it will launch…
9
votes
1 answer

Custom notification sound not playing

I'm trying to make a custom sound play on a status bar notification. The .mp3 file is in res/raw/. But when I notify the user the sound is not played. I've tryied with MediaPlayer, and it works, but I dont want to make it play with MediaPlayer. Here…
rogcg
  • 10,451
  • 20
  • 91
  • 133
9
votes
1 answer

Notification Bar is grey after implementing Nav Drawer

I am trying to learn implementations of Navigation Drawer in Android. In one activity, i have made the Navigation Drawer come under the Status Bar(transparent) and over the App Bar and everything works fine.(left Screenshot) In another activity in…
rapidclock
  • 1,677
  • 2
  • 17
  • 32
1
2
3
23 24