Quitting an app
Is there a way of quitting an app without having to go back through all activities first?
This is especially a problem with an app I am trying to build which has custom HTML pages - you have to go back through all visited pages, then through any activities before the app will quit.
Is there a way to add a quit option, and / or get the app to quit using a HTML link from a custom page ?
Comments
The user can always just press the dedicated Home button on their device to exit directly to the device's home screen.
A properly designed app will respond to the life cycle event of being moved to the background by releasing everything it can, reducing its footprint to the bare minimum required to resume quickly.
There's nothing wrong with doing work in the background when it's appropriate, though...if an app can anticipate the user and be ready in advance, it can really improve its responsiveness. App developers need to consider how important the app is to the user in order to know when this is appropriate behaviour. Similarly, some background operations like batching downloads or delaying them for the next anticipated wifi connection can be beneficial as well. Since Andromo can be used for such a wide variety of apps, it tends to err on the conservative side when it comes to such things (I don't think we do any work at all that isn't initiated by a foreground activity or service).
Thanks for the suggestion, I would certainly like to add a stop button to the notification at some point in the future.
I don't think having to reopen the app to press the stop button is difficult or confusing, though...especially given that the notification takes you right there. This follows the recommended Android behaviour, and was the standard Android audio player's behaviour until recent changes in 4.x.
It's also not necessarily true that the user would want the audio to stop when they exit the app...it's not uncommon to listen to a radio stream while you're using another app.
If you'd prefer your audio to end when the user exits the radio activity, one thing you could try is to use an Audio activity in Soundboard mode instead. It won't have any audio controls at the bottom, but will instead stop the audio as soon as the user exits the activity. The Audio activity will recognize a playlist if the URL ends with .m3u or .pls. However, it might not turn on the additional SHOUTcast support (such as fetching metadata about the track), but it could be worth trying if that's closer to what you're looking for.
All that might change when you use the Back button is which activity you were in before you exit. This in turn will change which activity you return to the next time the system handles the launch intent for that app (since it returns you to the activity at the top of the stack).