Hello there, Having bit of a problem here, I using the Code (csharp): Application.CaptureScreenshot to capture screenshot on my app, I manage to do it, Below is my code: Code (csharp): public var hit : RaycastHit; public var GuiCam : Camera; function Update () { var ray = GuiCam.ScreenPointToRay (Input.mousePosition); if (Input.GetMouseButtonDown (0)) //Returns true during the frame the user touches the object { if (Physics.Raycast (ray, hit, 100)) { if (hit.collider.tag == "camera") { Application.CaptureScreenshot ("screenshot.jpg"); } } } } Now the problem is, when I closed my app and go to Android gallery I cannot see the screenshot that had been taken earlier. I have to turn off and on my Android device to see all the picture that had been taken, it's like the gallery doesn't refresh automatically. How do I solved this problem. I try look on the web and found this Code (csharp): System.IO.Directory.GetFiles (); but not sure how to use it, is this the solution or there is other?
This has an answer, but I myself couldn't make it work yet: http://answers.unity3d.com/questions/200173/android-how-to-refresh-the-gallery-.html I know it's probably the right solution because of this: http://stackoverflow.com/questions/...-sdcard-doesnt-appear-in-androids-gallery-app Seems like there's no easy way to do it.
It seems like nobody has succeeded in refreshing the gallery except with plugin usage. This is quite frustrating. I think Unity should add this Android gallery refreshing feature for the developers. I saw many frustrated developers with the same concern. I am facing the same trouble also and can't find the solution until now.