google-code-export / customasteroid

Automatically exported from code.google.com/p/customasteroid
0 stars 0 forks source link

Autostart #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to set an app to autostart when the Asteroid (launcher) powers 
on.
For example I mostly use Live Radio, when I start my car I would like Live 
Radio to just start automatically so I don't need to touch anything. I should 
still be able to press back and go to the launcher in case I need to use 
another app.
The LiveRadio app itself does not automatically play the last station upon 
startup, but I could write an app which does and if the launcher supports 
making it "autostart" it would allow me to start my car and go without having 
to play with my stereo while driving.

Original issue reported on code.google.com by elwebmas...@gmail.com on 28 Jun 2012 at 5:33

GoogleCodeExporter commented 9 years ago

Original comment by jonas.ko...@gmail.com on 28 Jun 2012 at 6:08

GoogleCodeExporter commented 9 years ago

Original comment by jonas.ko...@gmail.com on 28 Jun 2012 at 8:00

GoogleCodeExporter commented 9 years ago
One possible implementation could be to save the last launched app in a file or 
sqlite db, then when the launcher starts up it would read the file and launch 
the app. Every time an app is launched it overwrites the last launched entry in 
the file/db. So every time the Asteroid cold boots it will continue from where 
it left off (in terms of app in foreground).

Original comment by szdimit...@gmail.com on 28 Jun 2012 at 8:05

GoogleCodeExporter commented 9 years ago
Nice Idea and should be fairly easy to implement (Sources will be a special 
case here..) the only thing we have to think of is: The App last launched by 
the launcher is not allways the app that's in foreground. Maybe its possible to 
get the current app on shutdown and store it's intent. I'd like to store the 
information in SharedPreferences first and move to Cloud Connect Settings when 
the Services are done...

Original comment by jonas.ko...@gmail.com on 28 Jun 2012 at 9:22

GoogleCodeExporter commented 9 years ago
Maybe it's also usefull to start more than one app when the launcher starts.

Example: I like to start the SD-Card playback and a GPS logger (both in 
background) and a show the current speed in foreground for passenger info.

Original comment by schalli1987 on 2 Aug 2012 at 7:55