Mobile/Projects/API: Web activities: Difference between revisions

Line 23: Line 23:
!|MIME
!|MIME
!|URI
!|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"
|"dial"
|type: "webtelephony/number", number: "+11234567890"
|type: "webtelephony/number", number: "+11234567890"
|"android.intent.action.DIAL"
|DIAL
|
|
|
|
Line 33: Line 40:
|"open"
|"open"
|type: "image/jpeg", uri: "http://example.com/image.jpg"
|type: "image/jpeg", uri: "http://example.com/image.jpg"
|"android.intent.action.VIEW"
|VIEW
|
|
|"image/jpeg"
|"image/jpeg"
Line 40: Line 47:
|"pick"
|"pick"
|type: "image/jpeg"
|type: "image/jpeg"
|"android.intent.action.GET_CONTENT"
|GET_CONTENT
|
|
|"image/jpeg"
|"image/jpeg"
Line 47: Line 54:
|"send"
|"send"
|type: "text/plain", text: "my message"
|type: "text/plain", text: "my message"
|"android.intent.action.SEND"
|SEND
|"android.intent.extra.TEXT": "my message"
|TEXT: "my message"
|"text/plain"
|"text/plain"
|
|-
|
|type: "image/jpeg", uri: "http://example.com/image.jpg"
|SEND
|STREAM: "http://example.com/image.jpg"
|"image/jpeg"
|
|
|-
|-
|"view"
|"view"
|type: "url", url: "http://google.com/"
|type: "url", url: "http://google.com/"
|"android.intent.action.VIEW"
|VIEW
|
|
|
|
Line 61: Line 75:
|
|
|type: "url", url: "mailto:user@example.com"
|type: "url", url: "mailto:user@example.com"
|"android.intent.action.VIEW"
|VIEW
|
|
|
|
|"mailto:user@example.com"
|"mailto:user@example.com"
|}
|}
27

edits