title: Package rename and error "Activity class does not exist"
body: <p>I have a splash activity which starts another activity like this</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.splash);
  
          final Thread splashThread = new Thread() {
              @Override
              public void run() {
                  try {
                      int wait = 0;
                      while (_isActive &amp;&amp; (_splashTime &gt; wait)) { 
                          sleep(100);
  
                          if (_isActive) {
                              wait += 100;
                          }
                      }
                  } catch (InterruptedException e) {
                      Log.d(TAG, e.getMessage());
  
                  } finally {
                      startActivity(new Intent("com.path1.path2.SomeActivity"));
                      finish();
                  }
              }
          };
          splashThread.start();
      }
  </code></pre>
  
  <p>To start another activity I use string parameter for the <code>Intent</code> constructor. The corresponding class is paired with the splash string like this</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.path1.path2"
            android:versionCode="2"
            android:versionName="1.0"&gt;
      &lt;uses-sdk android:minSdkVersion="4"/&gt;
  
      &lt;!--permissions--&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
  
      &lt;application android:label="@string/app_name" android:icon="@drawable/icon"&gt;
          &lt;activity android:name=".SplashActivity"
                    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;activity android:name=".SomeActivity"
                    android:label="@string/app_name"
                  &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.path1.path2.SomeActivity"/&gt;
                  &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=".OtherActivity" android:label="@string/app_name"
                  /&gt;
  
          &lt;!--services--&gt;
          &lt;service android:name=".AlarmService"/&gt;
  
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>This works flawlessly UNTIL I rename the package name. I rename the package name in the Manifest by using refactoring and the IDE renames all other classes accordingly. But when I want to start newly renamed project, I face an error</p>
  
  <pre><code>Launching application: com.path1.pathOLD/com.path1.path2.SplashActivity.
  DEVICE SHELL COMMAND: am start -n "com.path1.pathOLD/com.path1.path2.SplashActivity"
  Starting: Intent { cmp=com.path1.pathOLD/com.path1.path2.SplashActivity }
  Error type 3
  Error: Activity class {com.path1.pathOLD/com.path1.path2.SplashActivity} does not exist.
  </code></pre>
  
  <p>It seems that the app tries to start the Splash activity using <code>OLDpath/NEWpath.Splash</code> path and the error is there, but I can't find why it is using such path. </p>
  
  <p>I use IntelliJ IDE. Any ideas? Could it be in the Filter in the 2nd activity in the Manifest?!</p>