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

android reminder and task app tutorial

I am newer to Android and am in search of a tutorial to make a reminder/task app that allows a user to set a repeating reminder (repeat daily, weekly) and sends a notification a set period of minutes before the event time. Has anyone had any luck…
2
votes
2 answers

How to close any activity of my application by clicking on a notification?

When I click on a notification apply the following: intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); In all "startActivity" of the app I applied the next…
2
votes
1 answer

Can't keep notification sound playing after notification drawer is opened

I'm trying to make an alarm app, and I'm really close, but I want the alarm sound to keep playing until the user has manually disabled it via my app (puzzle to turn off alarm type idea). The problem Im having now is that the sound plays up until I…
2
votes
2 answers

Cant Hide Notification bar in Android 4.3 API 18

Prior to 4.3, @android:style/Theme.Black.NoTitleBar and requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);` works perfectly to hide…
2
votes
0 answers

How to prevent Samsung ROM from showing notification bar in full screen?

I have this app that runs in full screen, the thing is that Samsung did something to their ROMs that the user can swipe down to show the notification bar, even that you are running in full screen. The thing is that my app shouldn't show the…
2
votes
3 answers

Can you remove the system bar (back, home, recent apps) without making an app fullscreen so the notification bar is still accessible? (4.x)

Creating a hardware device that will be running a custom version of Android (4.x). There will be additional functionality incorporated but we would like to use as much of existing Android as we can. The device will only run one specific app at the…
mgibson
  • 6,103
  • 4
  • 34
  • 49
2
votes
1 answer

How to stop the alarm when the notification bar is dragged?

I designed an alarm service application. In that application, whenever an alarm starts, it will show in the notification bar. The problem is that I want to stop the alarm as well as the notification, whenever I drag the notification bar. Here's my…
2
votes
1 answer

Open activity when tapping on a notification pushed from a BroadcastReceiver

I'm having a little problem. I have an AlarmManager who sends an intent to a BroadcastReceiver, in the onReceive method of that class I push a notification to the StatusBar... This works like a charm, but I need to open an activity when the user…
2
votes
1 answer

Android Notifications Issue

I'm an android newbie, so please be patient! Finally, I got my XML result from a simple WCF REST API via GCM wishing to build a simple notification with its payload. @Override protected void onMessage(Context arg0, Intent arg1) { String…
Ahmed Ghoneim
  • 6,834
  • 9
  • 49
  • 79
2
votes
1 answer

How to show text in the status bar?

I want to show a number in the status bar, like all the battery apps do (when they show the percentage of the battery in the status bar, usually with a persistent notification). It seems that I can't set a text to appear on the status bar, only an…
Ran
  • 4,117
  • 4
  • 44
  • 70
2
votes
1 answer

status/notification bar is appearing despite Theme.NoTitleBar.Fullscreen

In my AndroidManifest.xml I'm using the android:theme="@android:style/Theme.NoTitleBar.Fullscreen" attribute in the application tag. When I start my app from the apps menu, it works: both, the title bar and the status bar are hidden and the app uses…
2
votes
3 answers

Android Global Progress Bar in whole application

I want to achieve something in my application, but I'm not really sure which is the best option to do that. In my app I am downloading data via web server. I want to create something like global Progress Bar which must show the user how much data he…
hardartcore
  • 16,886
  • 12
  • 75
  • 101
2
votes
4 answers

Show multiple notifications on receiving gcm notification

I am showing notification at the notification bar like this. I am getting those , but I cant show multiple notifications there,only one at a time. When a new one comes , previous one go. What shall be the problem? public void…
2
votes
0 answers

Call Activity Without Click Event Of Notification

I am working on an application.In which when Headphones deattached from android phone ,the notification call here is my code of activity package com.gabriel.activity; import java.util.HashMap; import android.app.Activity; import…
2
votes
1 answer

Notification Bar (or similar) inside activity

Is there a way to create a layout like the notification bar (the sliding bar that can be dropped from the top of the working area in Android, and which holds general notifications) inside of an activity? Thanks!
Marcelo
  • 2,075
  • 5
  • 21
  • 38