How do you dynamically change intent.category.LAUNCHER to intent.category.DEFAULT?
<p>I need to create an application which will be hidden from the user.
But before it gets hidden, I need to set some configuration on the GUI and after that I must hide the icon from the applications list.
If I remove the</p>

<pre><code>&lt;category android:name="android.intent.category.LAUNCHER" /&gt;
</code></pre>

<p>the application is not shown on the application list. But my configuration GUI is also not shown.
I need to show an Activity and after I make my configuration then I hide the application.
I've searched here around but I have been unable to find a solution.
How can I dynamically change</p>

<p><code>&lt;category android:name="android.intent.category.LAUNCHER" /&gt;</code> <br>
to <br>
 <code>&lt;category android:name="android.intent.category.DEFAULT" /&gt;</code> ?</p>
