c# - How to display MessageBox in Monodroid -


how can display message box in xamarin.android? how can yes or no response message box?

--- updated :

mybtn.click += (sender, e) =>  {    new alertdialog.builder(this)    .setmessage("hi")    .show(); }; 

you can use alertdialog.buider class within activity.

new alertdialog.builder(this)     .setpositivebutton("yes", (sender, args) =>     {         // user pressed yes     })     .setnegativebutton("no", (sender, args) =>     {         // user pressed no      })     .setmessage("an error happened!")     .settitle("error")     .show(); 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -