I am working in Unity, and I am using intent so my app would receive the file path of the file that I used to launch my app which in this case is a .CSV file.
AndroidJavaClass UnityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject currentActivity = UnityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
AndroidJavaObject intent = currentActivity.Call<AndroidJavaObject>("getIntent");
This is how I get the data path.
string result = intent.Call<string>("getDataString");
This is the path it gives:
file:///storage/emulated/0/map4.csv
The path I need:
/storage/sdcard0/map4.csv
Otherwise I can't acces the file on that path.
How could I get the 2nd type of path?