I'm kind of new to Android development and I encounter a problem here.
I want to launch an activity (another Class) when my countdown is over.
Edit:
Eclipse is telling me the code won't work, underlining part of my code in red.
The problem doesn't come from the Manifesto or such, I just can't figure out how to implement the call of my other activity.
/Edit
Here is my code:
public static void launch_countdown(final TextView tv1){
new CountDownTimer(30000, 1000) {
public void onTick(long millisUntilFinished) {
tv1.setText("" + millisUntilFinished / 1000);
}
public void onFinish() {
/* I want to launch my Activity here */
}
}.start();
}
So basically, what should I replace my comment by ?
PS: I made some research but it doesn't seem to work in my situation:
How to call an activity from a CountDownTimer?