Iam using cordova 3.4. When i capture an image and set it,its working fine but when I try to access on image from gallery I get the url
content://com.androi
see this answer:
if (imageUri.toString().substring(0,21).equals("content://com.android")) { String [] photo_split= imageUri.toString().split("%3A"); String imageUriBasePath = "content://media/external/images/media/"+photo_split[1]; imageUri= Uri.parse(imageUriBasePath ); }