Reputation: 6738
I want to hide an application from user once it is installed. And I know removing this line from manifest will work
<category android:name="android.intent.category.LAUNCHER" />
but how can I use that application because I cann't see it in app list. Any idea ? Thanks.
Upvotes: 4
Views: 1250
Reputation: 7450
Since you don't add the launcher category, it could not be shown in launcher, and is just like a service which is hiden in your device. Then you have to use other app to start it. You should register intent-filter with other action and category in your app. The most common action should be ACTION_VIEW combine with category BROWSABLE, then you can use a url in brower or sms to open you app. The intent-filter should be like:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="openmyapp"
android:scheme="http" />
</intent-filter>
Upvotes: 2