title: Android : Permission Denied Error when changing Launcher Activity
body: <p>I have an android app that I am trying to launch and it gives me the error </p>
  
  <pre><code>java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.hoosierag/.MainActivity } from null (pid=32395, uid=2000) not exported from uid 10125
  </code></pre>
  
  <p>I get this error when I try to change the launcher activity in the manifest. Also I dont get this error when I launch it on the emulator, but when I try to launch it on a device. I have tried it on 3 different android devices and it gave the same error all three times. Here is my manifest code :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.hoosierag"
        android:versionName="1.11" android:versionCode="4"&gt;
          &lt;uses-sdk android:minSdkVersion="3"/&gt;
          &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
          &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"&gt;&lt;/uses-permission&gt;
          &lt;uses-permission android:name="android.permission.WAKE_LOCK"&gt;&lt;/uses-permission&gt;
          &lt;uses-permission android:name="android.permission.DISABLE_KEYGUARD"&gt;&lt;/uses-permission&gt;
          &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"&gt;&lt;/uses-permission&gt;
          &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"&gt;&lt;/uses-permission&gt;
  
  
      &lt;application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar"&gt;
          &lt;activity android:name=".MainActivity" android:screenOrientation="portrait"
                    android:label="MainActivity"&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;activity android:name="Main" android:screenOrientation="portrait"/&gt;
          &lt;activity android:name="News" android:screenOrientation="portrait"/&gt;
          &lt;activity android:name="Audio" android:screenOrientation="portrait"/&gt;
  </code></pre>
  
  <p>Initially the Launcher Activity was the activity called Main. I then created a new activity called MainActivity and made that the launcher class. </p>