[Interest] Make Android App Restart When It Can't Resume Quickly

David Engel david at istwok.net
Wed Aug 8 16:33:18 CEST 2018


I have looked at Kodi and found other things of interest like where
and how they pause playback when focus is lost.  I've yet to find
anything that relates to why Kodi resumes where it was sometimes and
restarts from scratch at other times.

David

On Wed, Aug 08, 2018 at 08:47:19AM +0200, René Hansen wrote:
> As far as I know, Kodi is open source. So is their Android client:
> 
> https://kodi.wiki/view/Android_development
> 
> Maybe check it out for inspiration.
> 
> 
> /René
> 
> On Tue, 7 Aug 2018 at 21:35 David Engel <david at istwok.net> wrote:
> 
> > Hi,
> >
> > I'm one of the developers of the MythTV, open source DVR.  Over the
> > last several months, we've ported our frontend (aka client) from Linux
> > with Qt to run on Android with Qt.  It's to the point now that some of
> > us are using Nvidia Shield TVs as our primary frontends.
> >
> > One annoying problem that remains is that resuming the app can
> > sometimes take several minutes.  By resume I mean switching back to
> > the app after the device has been sleeping for several hours or other
> > apps have been in use.  I know Android doesn't have traditional swap
> > like Linux, so I can only assume that the Android system and/or the Qt
> > framework is saving and restoring significant process state somewhere.
> > What I'd like to do is have our app resume where it was but only if
> > that can be done in a few seconds.  If it can't resume quickly, then
> > want it to disregard any previous state and restart.  How can I do
> > that?  Other apps like Kodi seem to work that way, but I can't figure
> > out how they do it.
> >
> > Thanks,
> > David
> > --
> > David Engel
> > david at istwok.net
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
> >

-- 
David Engel
david at istwok.net



More information about the Interest mailing list