How to set and store an image in an Image View or Button in Android?
I have built an android app that lets the user click on an image button. Once clicked the user gets the option to open the Gallery or the camera. 

I want that the image (chosen from the gallery or taken with the camera) is displayed in the image button. Furthermore I want that the image or its path is stored to an sql database so that when opening up the app once again the user sees the image he set before.

Can anyone give me a code example of doing just that? 
How to set and store an image in an Image View or Button in Android?
===

I have built an android app that lets the user click on an image button. Once clicked the user gets the option to open the Gallery or the camera. 

I want that the image (chosen from the gallery or taken with the camera) is displayed in the image button. Furthermore I want that the image or its path is stored to an sql database so that when opening up the app once again the user sees the image he set before.

Can anyone give me a code example of doing just that? 