Pergunta

How can I register my App Widget (home screen widget) to listen to local broadcast messages that send over LocalBroadcastManager?

Foi útil?

Solução

Your app widget really is a set of Views in another app's process (e.g., the home screen). Hence, there is nothing in your process that can really "listen" to anything.

When you want to update the app widget, just update it, by using an AppWidgetManager and updateAppWidget().

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top