Mobile/Projects/API: Web activities: Difference between revisions
Jump to navigation
Jump to search
Line 39: | Line 39: | ||
|- | |- | ||
|"open" | |"open" | ||
|type: "image/jpeg", uri: "http:// | |type: "image/jpeg", uri: "http://mozilla.com/image.jpg" | ||
|VIEW | |VIEW | ||
| | | | ||
Line 74: | Line 74: | ||
|- | |- | ||
| | | | ||
|type: "url", | |type: "url", uri: "mailto:user@example.com" | ||
|VIEW | |VIEW | ||
| | | |
Latest revision as of 18:32, 17 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 |
"createShortcut" | action: "org.mozilla.firefox", name: "Mozilla", icon: "![]() |
CREATE_SHORTCUT | SHORTCUT_INTENT: new Intent("org.mozilla.firefox", "http://mozilla.com"), SHORTCUT_NAME: "Mozilla", SHORTCUT_ICON: new Bitmap [from icon URL] | ||
"dial" | type: "webtelephony/number", number: "+11234567890" | DIAL | "tel:+11234567890" | ||
"open" | type: "image/jpeg", uri: "![]() |
VIEW | "image/jpeg" | "![]() | |
"pick" | type: "image/jpeg" | GET_CONTENT | "image/jpeg" | ||
"send" | type: "text/plain", text: "my message" | SEND | TEXT: "my message" | "text/plain" | |
type: "image/jpeg", uri: "![]() |
SEND | STREAM: "![]() |
"image/jpeg" | ||
"view" | type: "url", url: "http://google.com/" | VIEW | "http://google.com/" | ||
type: "url", uri: "mailto:user@example.com" | VIEW | "mailto:user@example.com" |