Since Android does not directly have icon badges I would like to use app widget as a reminder.
The idea behind this is that if a user wants to remind her/himself to do a certain task within my app the app widget should show it, otherwise either the app widget is not on the screen (if that is possible at all) or the widget just shows by its nature that everything is OK.
Ideally I would like to have an app, (not a widget) that just shows a widget as a reminder.
Is this the “recommended” way to do this or do I just need to make a widget that changes its look and forget about the app?
Can I actually make an app widget appear and disappear from within an app?
Many thanks!
If by “disappear” you mean “draw nothing but take up space”, sure. Use a
RemoteViewsthat has transparent contents, then update the app widget with thatRemoteViews.Personally, I don’t like the UX of this, and I would suggest that perhaps you allow the user to choose between “invisible” or “default” app widget contents when there is no reminder.