pippin wrote: > What you want to say is that you don't have a reliable way to detect > that you are in the background to shut it down ;) > And good that you reminded me so that I could turn that off. I don't > really use my Nexus as a controller and definitely do not want any > controller Apps to keep running in the background. Oh no, I can reliably detect when an app is in the background, the API makes that transition quite clear to the app. The way Android works, once a visible app goes into the background it is fair game for the system to kill at anytime, so the API has to make transition obvious to the app. I handle the background connection by splitting the app into a visible component for the UI and a normally non-visible backend that handles the actual connection. When the visible UI goes into the background, I tell the non-visible part to go into the foreground by displaying the mini controller in the notification area. It's kind of like how the stock music app works.
The whole point is that app can stay connected in the background, so you can still control your squeezebox when you're using some other app. pippin wrote: > On iOS, you can't really keep the App running in the background and even > when you do, with iPeng I shut down all connections to servers other > than the one the current player uses. > > OK, I assumes you did already have that because you are communicating to > both MySB and LMS anyway. If it's a change it might not be worth it > except.... You need it for intelligent server switching and to switch > players well between servers. > I agree having more than one real server is a somewhat remote use case, > however, I do have quite a number of users who use both the server on a > computer and a USB drive on a Touch. > > > No, you can't do that on iOS, it's the biggest advantage I see for > Android, especially widgets.... And my biggest disappointment so far > because all the widgets I have for mail, twitter and facebook don't > update while the device is on, they only do that when it wakes up from > sleep. Probably for communication overhead and power consumption > reasons. But that way they are useless. If I see my mail status of three > hours ago and have to open the mail software to see whether something > new came in (the fact aside that that, TOO, doen't manage to update > properly), the widget is useless. > > Err... regarding your mini controller feature... how do I get that? I > didn't find it. You just have to not disconnect before putting the app into the background. Just make sure you have the always connected preference turned on. ------------------------------------------------------------------------ wt0's Profile: http://forums.slimdevices.com/member.php?userid=18760 View this thread: http://forums.slimdevices.com/showthread.php?t=96757 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
