What you can do is create a method which with some kind of looping around to make your Toast display as long as duration you want it,
private void showToast(int duration) {
final Toast toast = Toast.makeText(getBaseContext(),
"This is a Toast Message!",
Toast.LENGTH_SHORT);
toast.show();
new CountDownTimer(duration, 500) {
public void onTick(long millisUntilFinished) {
toast.show();
}
public void onFinish() {
toast.cancel();
}
}.start();
}
And then you can call this method as showToast(10000);
. So, what it will do is it will keep showing the Toast in loop until the duration and will cancel the toast as the duration is completed.