title: Hide the app icon and run it
body: <p>I need to hide the application icon.<br>
  And run the program with dial<br>
  Example: *12345#<br>
  <br>
  I can not run a program that has been hidden.<br></p>
  
  <p>Hide App:<br></p>
  
  <pre><code>PackageManager p = getPackageManager();
              ComponentName componentName = new ComponentName(this, com.example.broadcastreciver.MainActivity.class); // activity which is first time open in manifiest file which is declare as &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              p.setComponentEnabledSetting(componentName,PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
  </code></pre>
  
  <p><br>
  Run MainActivity:<br></p>
  
  <pre><code>Intent appIntent = new Intent(context, Blank.class);
              appIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
             context.startActivity(appIntent);
  </code></pre>
  
  <p><br>
  <br>
  this is AndroidManifest.xml<br></p>
  
  <pre><code>    &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;receiver android:name=".IncomingSms" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
                  &lt;action android:name="android.intent.action.NEW_OUTGOING_CALL" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;activity
              android:name=".Blank"
              android:label="@string/title_activity_blank" &gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  </code></pre>