Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notification Icon when downloading file

Tags:

java

android

Does anyone knows how to use notification icon in status bar when downloading a file? Just like when you are downloading a file in app store. The icon is like in gif.

like image 277
belladonna Avatar asked Jun 18 '13 08:06

belladonna


People also ask

How do I see download progress in notification bar?

Generally, the progress indicators in android are implemented by using the ProgressBar class. To display the progress indicators in our app, we need to add the progress bar to our notification by calling setProgress(max, progress, false) method and then issue the notification.

How do I turn off download notifications?

If you'd like to turn off the Download Notification and prevent it from appearing in your drop-down notification area, please go to your phone Settings app - Notifications - find Castbox - and turn off the "Castbox Download" setting.

How do I see what is currently downloading on Android?

You should have an indication in status bar if a download is in progress, pulling down the quick settings menu should tell you what it is. If is from play store, opening that will show you what's downloading at the time...


1 Answers

Just use the default android resource android.R.drawable.stat_sys_download for this.

like image 140
flx Avatar answered Oct 15 '22 17:10

flx