Disable activity from another activity?
<p>I am using the following code to remove my app from the launcher:</p>

<pre><code>if (!dialercode.getText().toString().equals("")) {
                    getPackageManager().setComponentEnabledSetting(
                            getComponentName(),
                            PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
                            PackageManager.DONT_KILL_APP);
                }
</code></pre>

<p>However, that also stops that activity being launched through other means (secret code).</p>

<p>So, I have setup a separate Launcher activity that will be disabled instead (all the Launcher activity does is launch the main activity).</p>

<p>However, I don't know how to go about disabling the Launcher.java activity via the main activity - IE how do I get the component name for the Launcher activity when I'm in a different activity?</p>
