Currently we are working on "Update the Android Gallery after take a screenshot
Here follows our issues:
The problem is that we are having a button,when we click on the button the photo gets saved in the folder that we have created in the phone,but the photo is not getting updated in the gallery folder of the phone.But when I delete or rename any photo from that folder where the photo is being saved,then the images is shown in the gallery folder of the phone.
Phone detail : Samsung - Its working fine only in this phone
whereas in the tablet and other phones,the captured photo is not getting updated in the gallery.
AndroidJavaClass classPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject objActivity = classPlayer.GetStatic<AndroidJavaObject>("currentActivity");
AndroidJavaClass classUri = new AndroidJavaClass("android.net.Uri");
AndroidJavaObject objIntent = new AndroidJavaObject("android.content.Intent", new object[2]{"android.intent.action.MEDIA_MOUNTED", classUri.CallStatic<AndroidJavaObject>("parse", "file://" + folderpath)});
objActivity.Call ("sendBroadcast", objIntent);
//REFRESHING THE ANDROID PHONE PHOTO GALLERY IS COMPLETE
can anybody please help us solving this issue.