android - Show ProgressBar in an AppWidget that updates every second -


i've been researching on topic before implementing it.
thing is, mine music player app i'm making widget, control music playback. wanted put seekbar in widget that's not supported. progressbar supported there hardly widgets use one. i'm skeptical of how using progressbar effect user's phone's performance (in terms of battery life , memory usage).

since progressbar meant display current position of music playing, have updated every second. read here progress bar in appwidget playback service updating widget's progressbar every second bad idea. post more 4 years old. couldn't find newer.

question is, still bad idea use progressbar, updates every second, in app widget? or have latest android updates brought in new ways efficiently? if yes, how go it?

any guidance helpful.

question is, still bad idea use progressbar, updates every second, in app widget?

in general, bad idea update app widget every second, regardless of whether involves progressbar or not. frequent ipc inefficient, particularly since not know whether user can see progressbar.

that being said, in use case, if ever update progressbar while app playing music, power drain of app widget ipc dwarfed power drain of music playback.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -