message box in app inventor

1,037 views
Skip to first unread message

ali jafari

unread,
Jul 27, 2014, 3:04:11 PM7/27/14
to mitappinv...@googlegroups.com
how do i create a message box(with caption,options) in app inventor ,because i need to have  this tools for  closing  my app or continuing my apps 

Enis

unread,
Jul 27, 2014, 3:25:29 PM7/27/14
to mitappinv...@googlegroups.com
Ali... You use the Notifier component...

Notifier

A notifier is a non-visible component that can show various kinds of alerts and can log information. Use a notifier to display notices and alerts to users of your app, and also to log information that can help you debug your app.

Properties

none

Events

AfterChoosing(Text choice)
Signaled after the user has made a choice in response to ShowChooseDialog . The argument is the text on the button that the user tapped.
AfterTextInput(Text response)
Signaled after the user has responded to ShowTextDialog . The argument is the text on the button that the user entered.

Methods

ShowMessageDialog(Text message, Text title, Text buttonText)
Pops up a notice that remains until the user taps a button with the given text. The arguments are the message to be shown, the title of the notice, and the label on the button.
ShowChooseDialog(Text message, Text title, Text button1Text, Text button2Text, boolean cancelable)
Pops up a notice the user must respond to by tapping one of two buttons with the given text. The arguments are the message to be shown, the title of the notice, and the labels on the left and right buttons, respectively. The AfterChoosing event is signalled after the user taps one of the buttons.
ShowTextDialog(Text message, Text title, boolean cancelable)
Pops up a notice which the user must respond to by entering some text. The arguments are the message to be shown and the title of the notice. The AfterTextInput event is signalled after the user enters the text.
ShowAlert(Text message)
Pops up a temporary notice, which vanishes after a few seconds. The argument is the text of the notice.
LogError(Text message)
LogInfo(Text message)
LogWarning(Text message)
These methods are for use in debugging. They write messages to the various logs on the Android device. The logs can be read with the use of Android debugging tools, like the Android Debug Bridge (ADB).

Reply all
Reply to author
Forward
0 new messages