Can anyone please tel me how to implement timer class in android.
i am using timer and timertask both the classes and in timer class
there is a method schedule which i am using but result is not obtained.
here is the following code-
Timer t=new Timer();
TimerTask t1=new TimerTask()
public void run()
Intent i=new Intent(Context package,abc.class);
i want after 2 seconds next task shud be performed
but it is not happening.can anyone please help me out
like what will be the solution.