I would like to use intent.setData(Uri uri)
to pass data obtained from a URL. In order to do this, I need to be able to create a Uri from a URL (or from a byte[] I read from the URL, or a ByteArrayInputStream
I create from the byte[]
, etc). However, I cannot figure out how this is supposed to be done.
So, is there anyway to create a Uri from data obtained from a URL without first writing the data to a local file?