Search code examples
androidaviary

Pass image URL to aviary image editor


Can I pass image URL to aviary image editor instead of picking the photo from the galley?

I tried this

Intent newIntent = new Intent(this, FeatherActivity.class);
newIntent.setData(imageURI);
startActivityForResult(newIntent, 1);

but I want URL instead of URI.


Solution

  • Try this:

    String image_url = "http://www.test.com/abc.jpg";
    Intent i = new Intent(Intent.ACTION_VIEW);
    i.setData(Uri.parse(image_url));
    startActivity(i);
    

    See, if that works.