views:

31

answers:

1

0

in my case i hav to navigate frm 1 screen to nthr aftr the timer is completed ... i hav 2 classes named test.java and test2.java!! inside Test.java class i hav created a class named Timer and in that in onFinish() method wen i write

startActivity(new Intent(this,Test2.class)); finish();

eclipse shows an error "The constructor Intent(test.MyTimer, Class) is undefined"

what shall i do??

+1  A: 

you have to use a context class when you create an intent

use your parent class there

startActivity(new Intent(myParentClassName.this,Test2.class)); 
finish();
Pentium10
it worked well..
poojan9118