0

I want a simple way where there is an ImageView representing a user profile picture. It is set to a default photo if they have not picked one.

I would like them to simply click on it and it opens up the gallery and they can set (and crop) a profile picture. That picture than is set in the ImageView (and stays there the next time the app is opened -- I am also using an Internet MySQL database to connect to that I may need to store the picture in so other users can see. I just need to see the Android side of things).

I am assuming I may need to use an Intent of some sort? Can I see basic code on how one might do this?

TheLettuceMaster
  • 15,594
  • 48
  • 153
  • 259

1 Answers1

4

Here's a tutorial on using an intent with the Gallery: http://www.helloandroid.com/tutorials/gallery-intent-tutorial

toadzky
  • 3,806
  • 1
  • 15
  • 26