In app drawer I wanted to show my app widget instead of launcher icon. This solution doesn't work for me.
This is my launcher activity entry in manifest file
<activity
android:name=".SplashActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="com.abc.xyz.providers.WidgetProvider.ACTION_WIDGET_RECEIVER" />
</intent-filter>
</activity>
This is my receiver
<receiver android:name=".providers.WidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="com.abc.xyz.providers.WidgetProvider.ACTION_WIDGET_RECEIVER" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/tt_appwidget_provider" />
</receiver>
Please help me!
Thanks in advance!
I want something like this.