Android: Tilting mobile makes ImageView content disappear / URI refreshed -


Thanks in advance for any feedback I am facing a trivial problem. Hardware: Motorola (Android Phone)

I'm displaying in an image view. The image itself has been caught through the ContentResolver. The problem is that whenever I tilt my mobile, the image is empty, by logging out the logs and variables, I came to know that the relevant URI is back to its default (i.e. zero ) Goes back to the value whenever I bend the mobile.

Of course there is an alternative solution for this. Using stable variables. But I am wondering if there is another solution because I really want to work around the URI, whatever I want to do with my actions.

Do anyone know what's going on?

Regards.

Your activity automatically restarts, whenever orientation changes between the picture and the landscape Look for ways to handle it.

Comments