How to get ImageUri from ImageView?

I am looking forward to the method of accessing the current Uri image from ImageView to store it in my database, but I only found setter.

Where getter

+7
android uri image imageview
source share
1 answer

No getter. Since you are calling setImageURI() , store the Uri in your database when you call this method.

Keep in mind that ImageViews do not always have a Uri (for example, a retrievable resource, a generated bitmap), so there is no getter.

+14
source share

All Articles