[TinyTut] - Displaying a Messagebox
What you learn: You will learn how easy it is, to display a MessageBox (showAlert(...)).
Difficulty: 0 of 5
What it will look like:

Description
This has been a very common question, as in "normal" Java a MessageBox was displayed with code like:
Using java Syntax Highlighting
- JOptionPane.showMessageDialog(...);
Parsed in 0.029 seconds, using GeSHi 1.0.8.4
in Android you can do almost the same with the following code:
Using java Syntax Highlighting
- showAlert("A funny title", "MessageBoxes rule extremely!", "Hit Me!", false);
- // Where the definition of the function is (simplest of 4 different):
- showAlert(CharSequence title, CharSequence message, CharSequence buttonText, boolean cancelable)
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Regards,
plusminus




(except that Activity-workaroung).

I would (do) prefer JAVA, because it is about 10^10 times nicer and more comfortable to code than C++ 

