hi everyone
i have application that request openconnection, but if my server is off / nothing
my applicatio is like not responding, and alwasy show message wait or end activity
anyone can help me handle it

plusminus wrote:[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.030 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.030 seconds, using GeSHi 1.0.8.4
Regards,
plusminus




Gurbuh wrote:I also tried to follow this tutorial. But showAlert() didn't work so I googled it and found out that in my version of the SDK (0.9 beta) showAlert is replaced by AlertDialog. So maybe the tutorial could be updated?

Gurbuh wrote:I also tried to follow this tutorial. But showAlert() didn't work so I googled it and found out that in my version of the SDK (0.9 beta) showAlert is replaced by AlertDialog. So maybe the tutorial could be updated?




Users browsing this forum: Google [Bot] and 8 guests