Cant hide application icon from the Android Menu?
<p>I have also landed in a situation where I want to start Install of a third party app (lets say app Y) from my app (X) and I do not want application Y icon to get created on android main menu.</p>

<p>I have tried code below but still there is a icon of app Y that is getting created in main menu after App Y gets installed successfully. Just please remember that I can not change manifest of App Y as it is a third party app. </p>

<p>I have also tried suggestions on following link but they have not resolved my problem: </p>

<p><a href="http://stackoverflow.com/questions/3184300/how-to-hide-application-icon-from-the-android-desktop/6780721#6780721">How to hide application icon from the Android Desktop?</a>
++++++++++</p>

<pre><code>File file = new File("/sdcard/MyApps/App Y.apk");

Intent intent = new Intent();
Uri uri = Uri.fromFile(file);

intent.setAction(android.content.Intent.ACTION_VIEW);

intent.removeCategory("android.intent.category.LAUNCHER");

intent.setDataAndType(Uri.parse(uri.toString()),
"application/vnd.android.package-archive");

startActivity(intent);
</code></pre>

<p>++++++++++</p>

<p>Please let me know your suggestions/inputs on this.</p>

<p>Thanks</p>
