Skip to content

Instantly share code, notes, and snippets.

What would you like to do? image/* as URL client
var i = new Intent({
"action": "",
"type": "image/*",
"extras": { "url": "" }
var onsuccess = function(data) {
var img1 = document.getElementById("img1");
if(data instanceof Blob) {
img1.src = URL.createObjectURL(data);
else {
img1.src = data;
var onerror = function(){ };
window.navigator.startActivity(i, onsuccess, onerror);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.