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
0
votes
1 answer

How to create notification bar in android?

I am new in Android Programming. I have created two classes IncomingSms.java & BroadcastNewSms.java. Code: IncomingSms.java package com.example.broadcastreceivernewsms; public class IncomingSms extends BroadcastReceiver { // Get the object of…
0
votes
1 answer

How to stop an application from being launched from notification panel when any button clicked on it?

I have a notification panel with two buttons. When I click on either of the buttons the minimized application is getting opened/resumed. public void setListeners(RemoteViews view){ Intent stopNotify = new Intent(parent,HelperActivity.class); …
0
votes
1 answer

How to make notification persist in notification bar even after device is shut down and then restarted?

PendingIntent pendingIntent = PendingIntent.getActivity(context, (int)(Math.random() * 100),MyIntent,PendingIntent.FLAG_UPDATE_CURRENT); //A PendingIntent will be fired when the notification is clicked. The FLAG_CANCEL_CURRENT flag cancels…
0
votes
1 answer

How to handle NotificationBar in android

I tried the code form the answer of this question: How to put media controller button on notification bar? By calling the showNotification() method my app gets closed. How to prevent this? And how can i handle that this method is just called if…
progNewbie
  • 4,362
  • 9
  • 48
  • 107
0
votes
1 answer

Android startActivity from NotificationBar

this below code is my simple NotificationBar class and i can use that in all of project. i want to set Activity as an Intent for StartActivity from that. how to update my class to have this functionality? public class TsmsNotification /* extends…
user4001049
0
votes
0 answers

Android- Listening and interpreting which app sent notification?

I'm building an android app which listens to notifications and has to figure out which app (Facebook, whatsapp, mail, etc.) the notification belongs to. I know how to listen to the notification using NotificationListenerService. But how do I…
0
votes
1 answer

Can I use NotificationCompat.BigTextStyle without crashing on older devices?

I don't have any device older than 4.1 to test on. I'm trying to test out pushing my notifications with the code below. It's mostly all taken from the Notification documentation. Would my code crash or does the NotificationCompat class handle all of…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
0
votes
1 answer

How to hide status bar on click of listview item in fragment programmatically?

I am hiding the status bar on click of ListView item in getView method.But when I am hiding status bar then getview method called .It should not be called. Here is my code…
user2101858
  • 99
  • 1
  • 10
0
votes
2 answers

Get local notification while app is forced closed in android

In Facebook android app we get notifications while app is forced closed. It works because there is the push notification implemented. But i have implemented the local notification in my app and i want my app notify if app is forced closed. so how…
0
votes
1 answer

Android How to hide notification bar

I have been trying to hide the notification bar, making my app full screen: I have tried a few sample codes but they do not work, there were: 1# android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen" 2# …
0
votes
1 answer

Issues with singleInstance and TaskStackBuilder

I have a main activity which is marked as singleInstance. I then have a notification which opens a different activity, below are both declarations:
0
votes
1 answer

How to remove notification icon from notification bar in android?

I have just started to learn Android app development and get stuck into some serious problem that is, I need to remove a icon (for a specific notification id) from notification bar when some one slide down the notification tray. I read some blogs…
0
votes
0 answers

Remove Top Shadow By Notification Bar in Android

How can I remove the shadow by the notification bar? Themes.xml