I have installed the app programmatically through other application. Now if I click the application icon in home screen it should not open the app. App can be only able to open while clicking through the app I installed. Can Anyone hep on this. Thank you.
Asked
Active
Viewed 389 times
1 Answers
0
Usually the start activity looks like this in the AndroidManifest.xml:
<activity
android:name=".LaunchActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.categor.LAUNCHER" />
</intent-filter>
</activity>
Now, if you remove the <intent-filter>
part, it will not have an icon on the home screen.
Finally, you can follow this StackOverflow answer about how you can open your activity from another app: https://stackoverflow.com/a/2210073/1395437

Daniel Zolnai
- 16,487
- 7
- 59
- 71
-
If we remove the
could not run the application. It shows default activity not found. – Saranya M Nov 30 '19 at 11:52 -
You have to select an activity for that in your run configuration, since there is no way to launch it from the home screen. – Daniel Zolnai Nov 30 '19 at 14:49
-
if we select a activity in run configuration, It hides the icon. But while opening app from another application it does not open – Saranya M Dec 02 '19 at 11:31
-
Make sure it is exported. – Daniel Zolnai Dec 02 '19 at 11:49