how to create confirmation dailog box

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

how to create confirmation dailog box

Postby rakesh86shankar » Fri May 29, 2009 10:42 am

can u tell me how to create confirmation box(i.e)dialog box with yes or no option
thanks
rakesh86shankar
Developer
Developer
 
Posts: 38
Joined: Fri May 29, 2009 9:51 am

Top

Postby tbi » Fri May 29, 2009 11:37 am

Hello,

you might want to check out http://developer.android.com/guide/appendix/faq/commontasks.html#alerts. Basically, you instantiate an AlertDialog.Builder with Context this, set it up with the respective methods (like "setMessage(String)") and listeners, and then use the method "show()".

Greets,
/tbi
A la fin, il y aura seulement de la beauté.
tbi
Junior Developer
Junior Developer
 
Posts: 12
Joined: Fri May 29, 2009 8:22 am
Location: Marburg, Germany

Top

Return to General

Who is online

Users browsing this forum: No registered users and 3 guests