I am making a calendar app and I need the app icon to show the date of the month ie from 1 to 31. So how do I implement it?
What I am thinking of doing is basically having 31 activities(other than those already present) in the app like such..
<activity
android:name="com.package.day.1"
android:label="@string/app_name"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.package.day.2"
android:label="@string/app_name"
android:launchMode="singleTop">
</activity>
till day 31 , then in each of the days activity I would redirect to the main app using intents. This method looks very clumsy and indeed is.So my main questions are as follows -
Q1. Is it programatically possible to change<intent-filter>
of the app to remove the icon from the launcher?
Q2. Is there a better way?