Mobile/Projects/API: Web activities: Difference between revisions
Jump to navigation
Jump to search
(Added MozActivity mappings table) |
|||
Line 30: | Line 30: | ||
| | | | ||
|"tel:+11234567890" | |"tel:+11234567890" | ||
|- | |||
|"open" | |||
|type: "image/jpeg", uri: "http://example.com/image.jpg" | |||
|"android.intent.action.VIEW" | |||
| | |||
|"image/jpeg" | |||
|"http://example.com/image.jpg" | |||
|- | |- | ||
|"pick" | |"pick" | ||
Line 51: | Line 58: | ||
| | | | ||
|"http://google.com/" | |"http://google.com/" | ||
|- | |||
| | |||
|type: "url", url: "mailto:user@example.com" | |||
|"android.intent.action.VIEW" | |||
| | |||
| | |||
|"mailto:user@example.com" | |||
|} | |} |
Revision as of 22:42, 14 March 2014
Tracking
Bugzilla query error
Array ( [type] => error [message] => http-bad-status [params] => Array ( [0] => 403 [1] => Forbidden ) ) 1
MozActivity Mapping
These are proposed mappings from MozActivities to Android Intents
MozActivity | Android Intent | ||||
---|---|---|---|---|---|
Name | Data | Action | Extras | MIME | URI |
"dial" | type: "webtelephony/number", number: "+11234567890" | "android.intent.action.DIAL" | "tel:+11234567890" | ||
"open" | type: "image/jpeg", uri: "![]() |
"android.intent.action.VIEW" | "image/jpeg" | "![]() | |
"pick" | type: "image/jpeg" | "android.intent.action.GET_CONTENT" | "image/jpeg" | ||
"send" | type: "text/plain", text: "my message" | "android.intent.action.SEND" | "android.intent.extra.TEXT": "my message" | "text/plain" | |
"view" | type: "url", url: "http://google.com/" | "android.intent.action.VIEW" | "http://google.com/" | ||
type: "url", url: "mailto:user@example.com" | "android.intent.action.VIEW" | "mailto:user@example.com" |