How to get the URI of an image at runtime. I am trying to load an image using URI after the app is installed on the device. But everytime it shows the problem "Unable to load". I'm using every syntax to load the URI from drawable and assets, but nothing works. I guess after installation of the app, it can't get the drawable folder. Can anyone help me how to fetch the image URI after the app is installed on the device.
Asked
Active
Viewed 77 times
0
-
I have to crop the image using the default gallery crop feature. For that I need the URI of the image. So i can't use the WebView. Any help.. – Bhavna Oct 25 '13 at 06:46
-
Why do you want to crop it? Just place it in the `ImageView` of size whatever you want to crop into. – Naddy Oct 25 '13 at 12:43
-
I have to provide a crop feature in my app, where user can crop the image himself. – Bhavna Oct 25 '13 at 12:53
-
[This](http://www.androidhive.info/2012/07/android-loading-image-from-url-http/) link might help you. – Naddy Oct 25 '13 at 12:57
-
and [this](http://stackoverflow.com/questions/5776851/load-image-from-url) too. – Naddy Oct 25 '13 at 12:58