Use a contact picker component to let the user choose an entry from the Android contact list.
A contact picker is a button that displays a list of contacts to choose from when the user taps it. After the user has made a selection, the following properties are set:
ContactName
: contact's name.EmailAddress
: contact's primary email address.Picture
: name of the file containing the contact's image, which can be used as a Picture
property value for the Image
or ImageSprite
component.Other properties affect the appearance of the button (including TextAlignment
and BackgroundColor
) and whether it can be tapped (Enabled
).
Enabled
Image
BackgroundColor
ContactName
EmailAddress
Picture
FontBold
FontItalic
FontSize
FontTypeface
Image
Shape
(designer only)ShowFeedback
Text
TextAlignment
TextColor
Visible
Width
Height
AfterPicking()
BeforePicking()
GotFocus()
LostFocus()
Open()
Use an email picker component to let the user enter a user's email address from the Android contact list.
An email picker is a text box in which a user can begin entering an email address of a contact and be offered auto-completion. The initial value of the box and the value after user entry is in the Text
property. If the Text
property is initially empty, the contents of the Hint
property will be faintly shown in the text box as a hint to the user.
Other properties affect the appearance of the email picker (including TextAlignment
and BackgroundColor
) and whether it can be used (Enabled
).
Email pickers are usually used with a button. The user taps the button when text entry is complete.
Enabled
BackgroundColor
FontBold
FontItalic
FontSize
FontTypeface
Text
TextAlignment
TextColor
Hint
Visible
Width
Height
GotFocus()
LostFocus()
Use this component to dial the phone and make a call.
PhoneCall
is a non-visible component that makes a phone call to the number specified in the PhoneNumber
property, which can be set either in the Designer or Blocks Editor. You can use the MakePhoneCall
method to make a phone call programatically from your app.
This component is often used with the ContactPicker
component, which lets the user select from the contacts stored on the phone and sets the PhoneNumber
property to the contact's phone number.
To directly specify the phone number, set the PhoneNumber
property to a Text
with the specified digits (for example, "6505551212"). The number can be formatted with hyphens, periods, and parentheses; they are ignored. You can't include spaces in the number.
PhoneNumber
MakePhoneCall()
PhoneNumber
property.Use this component to allow users to choose a phone number from a list of Android contacts' phone numbers.
When the user taps a phone number picker button, it displays a list of the phone numbers of contacts to choose from. After the user has made a selection, the following properties will be set to information about the chosen contact:
ContactName
: contact's name.PhoneNumber
: contact's selected phone number.EmailAddress
: contact's primary email address.Picture
: name of the file containing the contact's image, which can be used as a Picture
property value for the Image
or ImageSprite
component.Other properties affect the appearance of the button (including TextAlignment
and BackgroundColor
) and whether it can be tapped (Enabled
).
Enabled
Image
BackgroundColor
ContactName
EmailAddress
PhoneNumber
Picture
FontBold
FontItalic
FontSize
FontTypeface
Shape
(designer only)ShowFeedback
Text
TextAlignment
TextColor
Visible
Width
Height
AfterPicking()
BeforePicking()
GotFocus()
LostFocus()
Open()
A component that will, when the SendMessage
method is called, send the text message specified in the Message
property to the phone number specified in the PhoneNumber
property.
This component can also receive text messages unless the ReceivingEnabled
property is False. When a message arrives, the MessageReceived
event is raised and provides the sending number and message.
If the GoogleVoiceEnabled property is true, messages can be sent and received over Wifi. This option requires that the user have a Google Voice account and that the mobile Voice app is installed on the phone. This option works only on phones that support Android 2.0 (Eclair) or higher.
Often, this component is used with the ContactPicker
component, which lets the user select a contact from the ones stored on the phone and sets the PhoneNumber
property to the contact's phone number.
To directly specify the phone number (e.g., 650-555-1212), set the PhoneNumber
property to a Text with the specified digits (e.g., "6505551212"). Dashes, dots, and parentheses may be included (e.g., "(650)-555-1212") but will be ignored; spaces may not be included.
GoogleVoiceEnabled
PhoneNumber
Message
ReceivingEnabled
MessageReceived(text number, text messageText)
SendMessage()
Message
to the number given in PhoneNumber
.A non-visible component that enables communication with Twitter. Once a user has logged into their Twitter account (and the authorization has been confirmed successful by the IsAuthorized
event), many more operations are available:
SearchTwitter
)SetStatus
) DirectMessage
)RequestDirectMessages
)Follow
)StopFollowing
)RequestFollowers
)RequestFriendTimeline
)RequestMentions
)You must obtain a Comsumer Key and Consumer Secret for Twitter authorization specific to your app from http://twitter.com/oauth_clients/new
ConsumerKey
ConsumerSecret
DirectMessages
Authorize
method.Authorized
event.RequestDirectMessages
method.DirectMessagesReceived
event.RequestDirectMessages
).Followers
Authorize
method.IsAuthorized
event.RequestFollowers
method.FollowersReceived
event.RequestFollowers
).FriendTimeline
Authorize
method.IsAuthorized
event.Follow
method.RequestFriendTimeline
method.FriendTimelineReceived
event.RequestFriendTimeline
.Mentions
Authorize
method.IsAuthorized
event.RequestMentions
method.MentionsReceived
event.RequestMentions
).SearchResults
SearchTwitter
method.SearchSuccessful
event.SearchSuccessful
. Note that it is not necessary to call the Authorize
method before calling SearchTwitter
.Username
DirectMessagesReceived(list messages)
RequestDirectMessages
have been retrieved. A list of the messages can then be found in the messages
parameter or the Messages
property.FollowersReceived(list followers)
RequestFollowers
have been retrieved. A list of the followers can then be found in the followers
parameter or the Followers
property.FriendTimelineReceived(list timeline)
RequestFriendTimeline
have been retrieved. The timeline
parameter and the Timeline
property will contain a list of lists, where each sub-list contains a status update of the form (username message)IsAuthorized()
Authorize
if the authorization was successful. It is also called after a call to CheckAuthorized
if we already have a valid access token. After this event has been raised, any other method for this component can be called.MentionsReceived(list mentions)
RequestMentions
have been retrieved. A list of the mentions can then be found in the mentions
parameter or the Mentions
property.SearchSuccessful(list searchResults)
SearchSuccessful
have been retrieved. A list of the results can then be found in the results
parameter or the Results
property.Authorize()
CheckAuthorized()
DeAuthorize()
DirectMessage(text user, text message)
Requirements: This should only be called after the IsAuthorized
event has been raised, indicating that the user has successfully logged in to Twitter.
Follow(text user)
RequestDirectMessages()
DirectMessagesReceived
event and set the DirectMessages
property to the list of messages.Requirements: This should only be called after the IsAuthorized
event has been raised, indicating that the user has successfully logged in to Twitter.
RequestFollowers()
RequestFriendTimeline()
RequestMentions()
MentionsReceived
event and set the Mentions
property to the list of mentions.Requirements: This should only be called after the IsAuthorized
event has been raised, indicating that the user has successfully logged in to Twitter.
SearchTwitter(text query)
Requirements: This should only be called after the IsAuthorized
event has been raised, indicating that the user has successfully logged in to Twitter.
SetStatus(text status)
Requirements: This should only be called after the IsAuthorized
event has been raised, indicating that the user has successfully logged in to Twitter.
StopFollowing(text user)