How do I use the showAlert method in Android? -


I'm trying to debug something and want to pop up a message dialog box. Eclipse is telling me that it wants me to "method show alerts (string, string, string, boolean)"

I imported this import to Android.com. Imported; Dialog interface;

What steps do I miss?

If you are trying to create and display an alert DLOOU, then you user alerts. Builder for example.

DialogInterface, its name indicates, is an interface and there are only 2 methods in it: Cancel () and Dismiss ().

Creating an AlertDialog is quite easy:

This shows a simple AlertDialog.

One tip: Check the activity. Shodial (int) and activity Connection dialogs () They make your life easier when using the dialog. / P>


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -