Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, Developers I am working on an AR application for android device. and i am using the tool "Unity Game Engine" the problem is that I don't want that when user install the android app from playstore it will not create shortcut icon on home screen.

What I have tried:

I have tried to delete Launcher and Mani Activity from Android Manifest file but after doing that application installed properlly but it does not show open option.
Posted
Updated 13-Jun-18 20:01pm

1 solution

How do you want users to be able to open your application? If you don't want to show an icon, then not having a launcher activity is the correct way to do it.

For example if you want to allow users to open your application via opening a txt file, you could add an intent filter inyour manifest:

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="text/*" />
</intent-filter>
 
Share this answer
 
Comments
Alienkani 14-Jun-18 2:15am    
Sir I dont wanna genrate it's icon on screen because i want user will start application from another application i.e. "Launcher"
[no name] 14-Jun-18 2:39am    
You can either start it from an IntentFilter or from a launcher activity. If you have a launcher activity, you can't choose for the user if they start it from the launcher or from a shortcut from the home screen.
Alienkani 14-Jun-18 3:25am    
Sir, I am Little Confuse if a user download this application from playstore will it create icon on home sceen or not?
[no name] 14-Jun-18 3:27am    
That is a user preference in the Play Store app, not something your app can control. It's a setting called "Add icon to home screen".
Alienkani 20-Jun-18 6:06am    
Sir this is my last question. How can I open this application can you please tell me some reference(Because I got success to hide Application Icon but how do I open the application because it is not visible in Home screen) please help me once more.
thank you so much

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900