My webview app already handles external URL\'s fine (opens links from external apps like viber, browsers, etc) like this- (i got this code from here)
// get URL
You need to put below code in your activity which response the intent,
void onCreate(Bundle savedInstanceState) {
// Get intent, action and MIME type
Intent intent = getIntent();
String action = intent.getAction();
String type = intent.getType();
if (Intent.ACTION_VIEW.equals(action))
{
*/if (type.startsWith("image/“))
{*/
downloadImage(intent); // Download image being sent
}
}
void downloadImage(Intent intent) {
Uri imageUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM);
if (imageUri != null) {
// Write Your Download Code Here
}
}