title: Timer Not working in Android Eclipse
body: <p>Timer is not working. after few second it should goto another activity</p>
  
  <pre><code>public class intro extends Activity {
  int count=0;
  @Override
  public void onCreate(Bundle savedInstanceState) {
  
      super.onCreate(savedInstanceState);
      getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
      setContentView(R.layout.intro);
      final Toast tosta = Toast.makeText(this, String.valueOf(count+"."), Toast.LENGTH_SHORT);
      final Timer timer = new Timer();
      timer.scheduleAtFixedRate(new TimerTask() {
  
              @Override
              public void run() {
                  count++;
  
                  if(count == 5){
                      Intent app = new Intent("com.jasrajcomputers.MainActivity");
                      startActivity(app);
                  }
              tosta.show();
              }
          }, 1000, 1000);
  
  
  }}
  </code></pre>
  
  <p>but after 5 sec app unfortunately has stopped.</p>
  
  <p><strong>manifext.xml</strong></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.jasrajcomputers"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="16"
      android:targetSdkVersion="17" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
    &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:theme="@style/noactionbarvirat"
      android:label="@string/app_name" &gt;
      &lt;activity
          android:name=".intro"
          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;/application&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name="com.jasrajcomputers.MainActivity"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.jasrajcomputers.MainActivity" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
    &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>MY LOGCAT:</strong></p>
  
  <pre><code>07-12 12:46:38.979: E/AndroidRuntime(14495): FATAL EXCEPTION: Timer-0
  07-12 12:46:38.979: E/AndroidRuntime(14495): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.jasrajcomputers.MainActivity }
  07-12 12:46:38.979: E/AndroidRuntime(14495):    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1697)
  07-12 12:46:38.979: E/AndroidRuntime(14495):    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1492)
  07-12 12:46:38.979: E/AndroidRuntime(14495):    at android.app.Activity.startActivityForResult(Activity.java:3388)
  07-12 12:46:38.979: E/AndroidRuntime(14495):    at android.app.Activity.startActivityForResult(Activity.java:3349)
  07-12 12:46:38.979: E/AndroidRuntime(14495):    at android.app.Activity.startActivity(Activity.java:3584)
  07-12 12:46:38.979: E/AndroidRuntime(14495):    at android.app.Activity.startActivity(Activity.java:3552)
  07-12 12:46:38.979: E/AndroidRuntime(14495):    at com.jasrajcomputers.intro$1.run(intro.java:72)
  07-12 12:46:38.979: E/AndroidRuntime(14495):    at java.util.Timer$TimerImpl.run(Timer.java:284)
  </code></pre>