They must be in the same project, and your manifest file must have the signature "this is the launched activity" for one that launches material that is not related to widgets, and for the widget to be active, it must be "this widget, make it available as such" signature " An example of code that follows briefly if this is not clear.
Travis
source share