title: Intent doesn't work
body: <p>as you gues I  have a problem...</p>
  
  <p>I have this code in my Islem.java class</p>
  
  <pre><code>public void myFinish(){
      Intent i = new Intent();
      i.setClassName(this, SaveScore.class);
      startActivity(i);
  }
  </code></pre>
  
  <p>if I write <code>myFinish();</code> in <code>onCreate</code> method it works fine</p>
  
  <p>However, in timer.java class</p>
  
  <pre><code>public void onFinish() {
      Islem is = new Islem();
      is.myFinish();
  }
  </code></pre>
  
  <p>when I use this code boom Error! :)</p>
  
  <p>The strange thing is that when I change the <code>myFinish</code> code to</p>
  
  <pre><code> public void myFinish(){
  
   /*     Intent i = new Intent();
      i.setClassName(this, SaveScore.class);
      startActivity(i);*/
  
      time.setText("Finish!");
  }
  </code></pre>
  
  <p>Even though I use it in timer.jawa class it works just fine!</p>
  
  <p>LogCat
      03-16 14:27:14.370: E/AndroidRuntime(29940): FATAL EXCEPTION: main
      03-16 14:27:14.370: E/AndroidRuntime(29940): java.lang.NullPointerException
      03-16 14:27:14.370: E/AndroidRuntime(29940):    at android.app.Activity.startActivityForResult(Activity.java:2833)
      03-16 14:27:14.370: E/AndroidRuntime(29940):    at android.app.Activity.startActivity(Activity.java:2959)
      03-16 14:27:14.370: E/AndroidRuntime(29940):    at com.edusoftgame.kidsmath.Islem.myFinish(Islem.java:323)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at com.edusoftgame.kidsmath.Timer.onFinish(Timer.java:19)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:118)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at android.os.Handler.dispatchMessage(Handler.java:99)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at android.os.Looper.loop(Looper.java:130)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at android.app.ActivityThread.main(ActivityThread.java:3693)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at java.lang.reflect.Method.invokeNative(Native Method)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at java.lang.reflect.Method.invoke(Method.java:507)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
  03-16 14:27:14.370: E/AndroidRuntime(29940):    at dalvik.system.NativeStart.main(Native Method)</p>
  
  <p>Any Idea? Thanks...</p>