Suggestion: add launcher shortcut(s)
TL;DR: adding shortcuts that appear on long-pressing the app's symbol in the device app launcher -> probably out-of-scope
today I first heared about the technical backgrounds of the android 'app shortcuts' -> the buttons appearing when long-pressing the app's symbol in the device app launcher. -> See black box in image below.
image courtesy of google inc. (->source)
As far as I understood this is about defining 'shortcuts' using intents in a
shortcuts.xml resource file. (->source)
So by adding a intent to open the weatherwarning activity it should be able to be added as a shortcut to
as noted above: priority of this idea from my personal point-of-view is pretty low as this time. More a nice to have. As I came up with quite a lot of issues and ideas recently I just wanted to hightlight that I don't wan't to waste anyone's time it's more a collection of ideas so that (future) readers of these might engage and (further) contribute by posting feedback, technical know-how or opinions.
However, on the other side, this seems quite easy to implement. However, it requires API 25, so I will probably need to try to do it dynamically (see https://developer.android.com/reference/android/content/pm/ShortcutManager ) , so that it does not break anything on devices with a lower api. :-)
The app still supports api 19 aka 4.4 :-)
It turned out that the static implementation is fine, I found out (was not aware of it) that you can also make different xml files for different apis.
It took me about 30 minutes, and it is done now. 👍
If you like to have a preview, I just built a userdebug having them already :-)
Deleting a branch is permanent. It CANNOT be undone. Continue?