Reputation: 141
I am trying to create an application that will run in the device but it will not be visible in "Application Manager". means I don't want any user to see that particular application is running in his device. How can I do that??
Upvotes: 1
Views: 4969
Reputation: 3221
It Sounds like you are trying to design your app like plugin,
For the above use the following link could have everything to match your expectations,
Background running application service
Anyway if you are having activity and you dont want to show it,
then you can remove the
android.intent.category.LAUNCHER
from the android manifest under activity category tag.
But removing launcher category will not shows your app in the application list only.
It cannot remove it from application manager. So anyone can see your app in the Settings-Applications-Manage Applications.
Untill unless it needs to be a indeed process to hide from UI please follow the things.
basically hiding an app from user doesn't make sense that much.
Enjoy coding...
Upvotes: 0
Reputation: 631
This is not possible to hide the application from Application Manager. You can hide the UI of the App, and the icon which appears on the home screen of the Applications.
for this you can remove the Launcher intent filter from the manifest.xml from the activity.
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Remove the Launcher from the category. the app will not appear in the Application Window.
Upvotes: 1
Reputation: 20553
You can't. Apps that try to conceal their behavior are usually considered as malware, spyware and spamware and no user will appreciate this. Please drop this idea.
Upvotes: 0