Mobile/Projects/API: Web activities: Difference between revisions
Jump to navigation
Jump to search
Full Query
(Created page with "== Tracking == <onlyinclude> <bugzilla> { "blocks": "776027", "resolution": "---", "include_fields": "id, priority, summary, status, assigned_to", "order": "bu...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
</bugzilla> | </bugzilla> | ||
</onlyinclude> | </onlyinclude> | ||
== MozActivity Mapping == | |||
These are proposed mappings from MozActivities to Android Intents | |||
{| class="wikitable" | |||
!colspan="2"|MozActivity | |||
!colspan="4"|Android Intent | |||
|- | |||
!|Name | |||
!|Data | |||
!|Action | |||
!|Extras | |||
!|MIME | |||
!|URI | |||
|- | |||
|"createShortcut" | |||
|action: "org.mozilla.firefox", name: "Mozilla", icon: "http://mozilla.com/dino.png", uri: "http://mozilla.com" | |||
|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: "http://mozilla.com/image.jpg" | |||
|VIEW | |||
| | |||
|"image/jpeg" | |||
|"http://example.com/image.jpg" | |||
|- | |||
|"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: "http://example.com/image.jpg" | |||
|SEND | |||
|STREAM: "http://example.com/image.jpg" | |||
|"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" | |||
|} |
Latest revision as of 18:32, 17 March 2014
Tracking
ID | Priority | Summary | Status | Assigned to |
---|---|---|---|---|
775180 | P5 | Sanitize HandlerDescription before activities are stored in the database | NEW | |
775181 | P5 | Implement navigator.* for Web Activities | NEW | |
775594 | P5 | [Web Activities] createId in ActivitiesServices.jsm should understand filters | NEW | |
775597 | P5 | [Web Activities] returnValue should be set for predefined Activities | NEW |
4 Total; 4 Open (100%); 0 Resolved (0%); 0 Verified (0%);
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" |