AppWidget & Android Wear



An AppWidget is a standalone element of an application. It’s a view placed on the home screen enabling part of the application to be displayed, without having to be open.



It is necessary to instantiate a new Tracker in your widget in order for your tagging to work.



To tag your AppWidget, you can simply carry out normal tagging in the “onUpdate” method of your AppWidget class:


Android Wear

To tag your application for AndroidWear, you must carry out regular tagging during interpretation of “messages” sent by the watch to the phone with the method “onMessageReceived”:

Was this post helpful?
Last update: 05/04/2018