Vote count:
0
I have this code in my app but it doesn't seem to be working. Only after restarting my phone then all the images are displayed in the gallery. No i am wondering is there a way to do this as soon as the photo is taken and then update the gallery without the need to restart the phone.
this is what i have:
protected void mediaScan() {
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://"
+ Environment.getExternalStorageDirectory() + "/" +getResources().getString(R.string.app_name))));
Could anyone please help?
asked 37 secs ago
How to scan image taken by camera intent to update gallery in android
Aucun commentaire:
Enregistrer un commentaire