For Android it's accepted to leave out the Close button as the back button has the same effect. If you still want the Close button you should use setNeutralButton(String, onClickListener);Patrick wrote:The difference between the snippet you have supplied and the original tutorial is that the original warning box had an 'OK' (close) button in it but this newer version of the dialogue box does not - you have to hit the 'escape' character to return to the parent dialogue box ... how would you fix that?
Don't think there's a site, but since there's a internal Builder class in the docs, that rang a bell with me .Patrick wrote:Yes again - I can see from the on-line reference that show does not take parameters ....
"public AlertDialog show()
Creates a AlertDialog with the arguments supplied to this builder and show()'s the dialog."
.... but it doesn't give me any clue as to the correct syntax associated with using it - is there a site that shows illustrations of how these definitions are applied?
Thanks again for taking an interest.
Users browsing this forum: No registered users and 12 guests