Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
291 views

Having Exoplayer controls in both layout and notification bar?

I'm building a podcast player using the Exoplayer. I've managed to set it up to have the controls both in the layout and the notification bar using exoplayer's PlayerNotificationManager. The problem ...
dbarnes's user avatar
  • 509
0 votes
1 answer
540 views

Fetching all apps from the notification bar android

I have a requirement to fetch all the app notifications which already exists in the notification bar. For this purpose am using the NotificationListenerService along with the BroadcastReceiver to get ...
Chandru's user avatar
  • 5,962
21 votes
6 answers
13k views

Allow notification to be cancelled after calling stopForeground(false)

I have a Media service that uses startForeground() to show a notification when playback starts. It has pause/stop buttons when playing, play/stop buttons while paused. NotificationCompat.Builder ...
Will Eddins's user avatar
  • 13.9k
0 votes
2 answers
64 views

Alerting the user from a service (Android)

So, i have a service working in the background (when the application is closed) which connects to internet every 2 minutes and gets some data from a database, and if something's wrong i want to alert ...
Vladimir's user avatar
  • 1,243
0 votes
3 answers
1k views

android how to create a service that make a notification in real time (like facebook or whatapps)

I'm trying to create a background service that every "X" minutes consult a webservice and if response "ok" generate a Notification on the notification Bar I'm not sure if is a android service o ...
user1435753's user avatar
1 vote
1 answer
2k views

Android Service Multiple Threads and startForeground()

I have a Service that facilitates the downloading of files from a server. Everytime an Intent is received in onStartCommand, I start a new Thread, put the Thread into a map with the url being ...
Eliezer's user avatar
  • 7,347
-1 votes
1 answer
3k views

How to add notification icon on the Android phone status bar?

I am new to Android programming and I need help. If any of you has a simple example of adding (icon/message) notification on the Phone and when clicked it restores back the application to its state. ...
XBasic3000's user avatar
  • 3,476