I found this example and i have a small question: How can I remove the on click to a timer or a delay where it displays the first image and waits a couple of seconds then moves
No need for threads. Just use a Handler with postDelayed messages...
public class HelloHandler extends Activity {
protected Handler handler = new Handler();
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// blah blah blah
handler.postDelayed(new UpdateTask(),500);
}
protected class UpdateTask implements Runnable {
public void run() {
// Do stuff. This is UI thread.
handler.postDelayed(this, 500);
}
}
}