Android Question Store and retrieve a photo

DoctorGerry

Member
Licensed User
Longtime User
This has me scratching my head.....(but I tend to do that a lot!!)

My app allows the user to take and store a photo, then displays that photo. When the photo is taken it is saved to File.DirRootExternal. After the photo is taken, it is displayed on an ImageView.

If I run the app on an emulator the photo is displayed correctly on the ImageView, but when I run it on my phone, the ImageView remains blank. I get no errors about file not found or anything.....it just doesn't show. I guess I'm probably doing something really basic (no pun intended!!) wrong, but what?
 

James Chamblin

Active Member
Licensed User
Longtime User
Are you using the same API on the emulator and your device? 4.4 and above doesn't allow writing of data on the SD card except within the folder assigned to the app.
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
I would like to make this but send the photo to a remote server and then get it back to the android device.

Should I have to store it inside a MySql db or in a folder in the server ?

Thanks.
 
Upvote 0
Top