Client App

This is an external app that needs to share links. It has no prior knowledge of any other sharing application.

Share a link

var intent = new Intent(
    "http://webintents.org/share",
    "text/uri-list",
    [ url ]);

window.navigator.startActivity(intent);

Share an image

Pick an image to share.

var intent = new Intent(
    "http://webintents.org/share",
    "image/*",
    [ imageData ]);

window.navigator.startActivity(intent);