0

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.

Saranya M
  • 73
  • 3

1 Answers1

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
  • 14,536
  • 7
  • 52
  • 64