Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 426: | Line 426: | ||
Suppose a library contains a field called Phone containing a phone number. | Suppose a library contains a field called Phone containing a phone number. | ||
<source lang="javascript" | <source lang="javascript"> | ||
i = intent("android.intent.action.DIAL") // Create information exchange object Intent with the action of DIAL | i = intent("android.intent.action.DIAL") // Create information exchange object Intent | ||
i.data("tel:"+entry().field("Phone")) // The data will be the phone number obtained from the field Phone | // with the action of DIAL | ||
i.data("tel:"+entry().field("Phone")) // The data will be the phone number obtained | |||
// from the field Phone | |||
i.send() // Send the message | i.send() // Send the message | ||
</source> | </source> |