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.
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.
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.
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...
Just use the default android resource android.R.drawable.stat_sys_download
for this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With