I want to display notification even when the screen is locked. The pre-requisites are : 1.the notification should be displayed when the application is opened(this part I've covered). 2.there is a timer which will run in the background and on locking the screen, while app is running, the timer will start. After certain duration the notification will appear on the screen. Can please anyone help me with this?
Asked
Active
Viewed 230 times
0
-
You want to show something on your lock screen? – Apoorv Jul 24 '14 at 08:23
-
yes. Any notification. a text notification to be precise. – user3608017 Jul 24 '14 at 08:24
-
Do you get the broadcast when the screen is turned on? – Apoorv Jul 24 '14 at 08:24
-
Yes. See don't get confused with the push notification. this is a simple notification that occurs on status bar when we open the application and/or performing any action in the application would show the notification again. Can you help me with the lock screen part? – user3608017 Jul 24 '14 at 08:28
-
Do you want to show it in the status bar ? – Apoorv Jul 24 '14 at 08:31
-
No. on the screen. When the timer goes off, the pop up notification will appear in front of the lock screen. – user3608017 Jul 24 '14 at 08:34
-
Refer to [Showing a view using Window Manager](http://stackoverflow.com/questions/20015971/how-to-make-facebook-messenger-like-notification-like-this-in-android/20015985#20015985) – Apoorv Jul 24 '14 at 08:51
-
@Apoorv this doesn't work while the screen is locked. – user3608017 Jul 24 '14 at 09:12