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: ("some>
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
Post a Comment