Log in or register to post comments

[HELP] Refresh Gallery Android ?

May 11, 2013 - 10:44am #1

I have problem is Photo Gallery is not update when i capturescreenshot

 

this my code :


if(Cap)
		{
			mCap = false;
			saveCap =  DateTime.Now.ToString("MMddyyyyhhmmss")+".png";
			System.IO.File.Exists(saveCap);
			Application.CaptureScreenshot(saveCap);
			string transfer = "mnt/sdcard/Android/data/com.MyProject.AugmentedRealityContest/files/" + saveCap;
            string transfer2 = "mnt/sdcard/DCIM/ArViewer/" + saveCap;
			System.IO.File.Move(transfer,transfer2);
			System.IO.Directory.GetFiles("/mnt/sdcard/DCIM/ArViewer/");
			Cap = false;
		}

[HELP] Refresh Gallery Android ?

May 12, 2013 - 11:59am #4

Hi, if you alread set the external write permission, then I don't have other hints on the problem;

as this sounds like a problem related to the method Application.captureScreenshot(), I would suggest to search in the Unity website / forums, as perhaps this topic has been addressed there already...

 

[HELP] Refresh Gallery Android ?

May 12, 2013 - 12:08am #3

Before I set the question. I changed from Only Internal as External (SD Card).

[HELP] Refresh Gallery Android ?

May 11, 2013 - 11:58pm #2

Hi, this might be due to the fact that you need to set the storage settings to esternal (see Player Settings) to allow the app write access to the SD card

Log in or register to post comments