Toast or AlertDialog problem

Put your problem here if it does not fit any of the other categories.

Toast or AlertDialog problem

Postby steven_d » Fri Jul 31, 2009 11:16 pm

Hi,

i need a alert dialog, which pop ups every time, when the location changed (after 100 meter for example).
I want to have 2 Buttons in this dialog: left and right. If the user dont push one of these buttons after some seconds, the dialog should no longer be displayed.
So I can't use the AlertDialog, because this one will wait for some user inputs!?
But can I include Buttons in a Toast??

Thanks for help,
Stefan
steven_d
Junior Developer
Junior Developer
 
Posts: 12
Joined: Mon Jul 20, 2009 1:15 pm
Location: Germany

Top

Postby TheChosen » Mon Aug 03, 2009 11:22 am

You should be able to use an AlertDialog. Just create a thread and wait for the specified amount of time. Afterwards just call dialog.dismiss().
TheChosen
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Tue Jan 06, 2009 7:18 pm
Location: Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot] and 10 guests