I have an app that starts with the OS and it might or might not be active dependending on user actions performed later on. Of course this app, has a number of activities and one of them has been defined as entry point in the android-manifest.xml file
<activity android:name=".PrincipalActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Now I would like to give the user the choice to add a widget on his/her desktop for showing only relevant information about my app, which is (or should be) running in the background.
Q1: is it possible to add a widget to this same app?
Q2: can I invoke my app from the widget?
I tried adding a widget following the tutorials for widget but it didn't work so far.