Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
/*alomost copied fromで画像をandroid本体に保存する/*/
string path = "";
string pointcloudDataPath;
using ( jcE nvironment = new AndroidJavaClass ("android.os.Environment"))
using (AndroidJavaObject joExDir = jcEnvironment.CallStatic<AndroidJavaObject> ("getExternalStorageDirectory")) {
path = joExDir.Call<string>("toString"); // /storage/sdcard/0
pointcloudDataPath = path + "/pointcloud"; // /storage/sdcard/0/pointcloud
if (!Directory.Exists(pointcloudDataPath)) Directory.CreateDirectory(pointcloudDataPath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment