I am trying to integrate Twitter with my application and I thought to add an AlertDialog which will appear after users press a button and this AlertDialog will ask the users if they want to post a tweet(The tweet will be the same for all users, like a promo tweet). My question is if there is any way to make the Alert Dialog disappear after a few moments, like 5 seconds.
I found this but I am not completely sure how it works. I would appreciate any help.