How can I do this? There isnt any .hide() on this, only .show()?
I need to hide an alertdialog.builder after 7 seconds
final Timer timer=new Timer();
timer.schedule(new TimerTask() {
@Override public void run() {
开发者_开发知识库 ad.hide(); //<- this isnt good
timer.cancel();
}
}, 7000, 0);
Lacas,
I believe you intend to call dismiss()
on the Dialog?
write AlertDialog.hide();
to hide the AlertDialog Box
精彩评论