Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to hide a particular application from user?

I want to create the application that lists all install applications in my device. And After that I want to set it as Hide and Show With which another User can not able to see that particular application. So is it possible ? If yes, then How?

like image 408
Shreyash Mahajan Avatar asked Jan 20 '26 23:01

Shreyash Mahajan


2 Answers

Yes, if you don't add the following in your main activity's declaration in android manifest:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

by doing so, your app will not be listed in launcher but will be installed. However, in order to run it, perhaps you may register a broadcast receiver in its manifest and use another application to send a broadcast which is received by its (hidden app's) broadcast receiver which starts the activity.

like image 119
waqaslam Avatar answered Jan 22 '26 12:01

waqaslam


I implemented something like this but it was added customization in the original android launcher code for a phone. Which allows for modifying the applications that show up in the application's list that is available on the phone. This is only possible if you're working on the baseband software of a phone.

However for your case, you can just remove these declarations:

<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
like image 34
JoxTraex Avatar answered Jan 22 '26 11:01

JoxTraex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!