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

Change notification sound using AccessibilityService

I have implemented an accessibility service that listens to notifications and is notified whenever a notification is triggered. My question is: once I obtain the Notification object, can I set its sound to a custom sound? I tried doing something…
Oren
  • 937
  • 1
  • 10
  • 34
0
votes
1 answer

Should I check the phone status if My app should send a notification

I have made an app that contains a reminder so this reminder shows a notification, and the user can change the sound of the notification, so he can be reminded with a sound; What I need to know is should I check for the phone ringing state so that…
0
votes
0 answers

Phonegap: how to hide notification bar permanently

I'm developing an Android app using Phonegap. I'm running it in fullscreen mode (menu/notification bars are hidden) but when I swipe down near the top of the screen notification bar slides down - how can I prevent it?
lukaszkups
  • 5,790
  • 9
  • 47
  • 85
0
votes
1 answer

Method that makes action bar comes up again when hidden

I'm devolopping a tablet app. I want it to work full screen. After days of investigeting on google, I achived it…
Carl
  • 111
  • 1
  • 12
0
votes
3 answers

Creating a menu like the "Notification Bar"

I need to create a menu like the Notification bar, at the bottom of my application. Which means, you can drag the notification bar right? That is what I need as well. For an example, before dragging, the menu should stay at the bottom like…
PeakGen
  • 21,894
  • 86
  • 261
  • 463
0
votes
1 answer

Android notification: how to change font size

I am developing an android app. Would like to check whether it is possible to change the font size of notification in the code, and if yes, how to do it. Thanks so much!
0
votes
1 answer

how to invoke a class on button click of notification

Actually I am new to android, and building a custom notification. in my notification layout I have a button . on its click event i need to change certain system settings. But when i invoke any class other then MainActivity class , it dosen't…
0
votes
1 answer

how to control notification icons?

I would like to control Launching Application from notification bar. So i would like to intercept any action in any icon in this bar. the code given below give an example of how a notification icon start the application that much with it. private…
0
votes
2 answers

Notifications being erased if I get a new one from myself

I have the below class that gets called whenever I receive a push notification. (works wherever though). The issue is that, If I send a notification from another device to my mobile (lets say an iphone) I am getting the notification and it stays in…
0
votes
1 answer

Making the status/notification bar don't scroll on custom lockscreen

I have developed a custom lockscreen but I will want to make the notification/status bar to don't scroll if my app have a security password. I found that if I add @Override public void onAttachedToWindow() { super.onAttachedToWindow(); …
Rotary Heart
  • 1,899
  • 3
  • 29
  • 44
0
votes
3 answers

Android displaying progress in a Notification

here is my code : public class MainActivity extends Activity { private NotificationManager mNotifyManager; private NotificationCompat.Builder mBuilder; @Override protected void onCreate(Bundle savedInstanceState) { …
0
votes
2 answers

How to trigger a status bar notification without starting the actual view in android?

I am new to android development and I did research on notifications using toast and status bar notification. And I also managed to execute the code properly to make a notification work!!! The problem is there are only methods like triggering a…
0
votes
2 answers

admob add as notification in Android

How to add addmob add as notification service to the Android app. Basically banner can be displayed as a notification service. Is that possible. If so how? Thank You !
0
votes
1 answer

Tell if Android Notification Bar is Split

Is there a way in android to tell what the width of the notification bar is going to be? I am mainly curious because on a tablet, the notification bar can be split and only use up half of the screens width. So programatically, is there a sure fire…
0
votes
1 answer

Event on notification bar like Status bar android

I created a Notification using Notification.FLAG_ONGOING_EVENT. Now I want to use it as on/off switch just like bluetooth or wifi in Status bar. I want to use it as on off switch for my service. If I click it, it will start the service and if I…
Bee
  • 104
  • 1
  • 13