I'm my ProfileFragment.java
I have a button which allows the users to change their profile photo and their banner. When the user clicks in "change banner" he gets redirected to the gallery where he can choose the photo he wants and then, once it is chosen, the photo changes using Picasso
Picasso.with(getContext()).load(imageUri).resize(446, 203).into(imgFotoCapa);
)
The problem is, this only lasts while the user doesn't close the app... Once the user closes it and then, later, reopens it, the banner goes back to the default one.
How can I store the imageUri that comes from the gallery so I can retrieve it later and every time the user enters ProfileFragment.java
the photo goes back to the banner?
Thanks in advance!