Android - Choose Image from Gallery and store it in a File type variable
问题 I am a new to Android Development. I wish to select an image or a video from the Gallery of an Android Device. Store it in a variable of type File . I am doing this, since I need to upload the image/video on dropbox using the Android API from my application. The constructor takes in the fourth parameter of the type File . I am not sure, what to pass as a file since all the examples I searched display the image chosen in an ImageView by using the url and making a bitmap. imageView