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
4
votes
2 answers

Get text from expanded notification in status bar?

Is it possible to get the text within an expanded notification in the statusbar? This means text set my Notification.BitTextStyle.bigText(), such as in an email notification from Gmail. I would like to get it using Notification.extras but there…
4
votes
1 answer

How to add Notification Counter Android

How do I add a notification Counter in Android Application, Similar to that of Facebook's? I have tried searching but I have not found anything that can help. I do not want counter baloon on the launcher icon. Instead, I want it inside my…
4
votes
0 answers

Updating expandable notification, re-expand it, even after user collapsed it

I'm create a BigPictureStyle notification with progress bar for a photo upload and it mostly works as it should. The issue is: if the user collapsed the notification on the notification tray, next time the notification is updated it will expand it…
Budius
  • 39,391
  • 16
  • 102
  • 144
4
votes
2 answers

Block notification bar

I need my rooted android tablet to be in a "kiosk-mode", so the notification bar should be disabled (and not just hidden as in for example full-screen games). This code hides the bar only temporarily: …
user2737037
  • 1,119
  • 1
  • 16
  • 29
4
votes
2 answers

How can I keep the action/title bar but hide the notification bar

How can I keep the action/title bar but hide the notification bar? This question looks like it has already been answered but most of the answers I found hide both the action bar and the notification bar. I want to be able to keep the action/title…
user1372984
4
votes
2 answers

Android JellyBean BigTextStyle Notification not working - HTC One X AT&T

I have implemented a BigTextStyle/InboxStyle notification but it is shown as a normal Notification which is shown before JellyBean (means in Gingerbread, ICS etc) on my HTC One X AT&T (which is 4.1.1). Even the action buttons are also not shown. I…
4
votes
3 answers

Urban Airship: custom icon for default status bar notification

Urban Airship recommends creating a custom notification with CustomPushNotificationBuilder if you want to make any modifications to the status bar notification, including trivially changing the icon. Unfortunately, using a RemoteView for…
3
votes
4 answers

How to download file/image from url to your android app

I need my android app to make request to url to download an image from this url so I have built this class to help me, BUT it didn't work ??? public class MyAsnyc extends AsyncTask { public static File file; InputStream is; …
user1217585
3
votes
2 answers

How to match text color with notification color bar?

My application use white color font which is okay on my phone that has a black theme. But on other phone the notification bar color and the menus background color is white or a light color. Is there any way (beside giving the user the option to…
Alex
  • 2,213
  • 4
  • 32
  • 44
3
votes
2 answers

How to access the Push Notification counter on Android (TV)?

I would like to access the number of currently available push notifications The following :, here on a Android TV emulator image.. So how can I read that number? EDIT: I do not want to set anything.
3
votes
1 answer

Using Android AsyncTask and Notification which freezes my System

I just wanted to learn how to do some Android App development, so I started with some simple demos and now doing something harder (I guess ;-)). Using: Eclipse + min SDK 8 + Android 2.2. Debugging and testing on emulator and my SGS I9000: I managed…
Gohlool
  • 363
  • 2
  • 5
  • 15
3
votes
1 answer

How to remove "+999" from notification?

I am using below code to show inbox style notification in android app. In API 23 and below "+999" is showing bottom right side when I am expanding the notification, But in API 24 and above "+999" text not visible. Notification.Builder mBuilder =…
Naveen Kumar
  • 3,738
  • 4
  • 29
  • 50
3
votes
1 answer

In android, how to set the 2 small icons visible in the notification

In android notification, it's seam their is 3 different icons (see the picture below). I know how to set the large icon (via setlargeicon), however i don't know how to set the both 2 small icons as their is only one procedure setSmallIcon…
zeus
  • 12,173
  • 9
  • 63
  • 184
3
votes
2 answers

How to show icon and text in the notification content Text in android

I need to show a notification in my android application. I am using the following code: NotificationCompat.Builder mBuilder= new NotificationCompat.Builder(baseContext).setLargeIcon(large_icon) …
3
votes
0 answers

Notification Bar Icon white square in Android 6.0

Okay so I know that starting in Android 5.0 the way your supposed to do things is to have an all white notification icon on a transparent background, otherwise your notification icons will appear as a white block. However if your target sdk was…