- Home /
how to read csv file in android external path?
Hello. First of all, sorry for my English.
I want my android app to create csv file(including position, scale) and show cubes(made with the csv file) through unity.
This is my way of executing unity project in android. I made (1)android project in android studio and (2)unity project. (Unity project has a script to read csv file and create cubes.) In unity project, export the project using android platform and the export project has assets folder, jniLibs folder, unity-class.jar file and UnityPlayerActivity.java file. I copy these 4 components to android project. As a result, unity project starts when I click a button in android app.
csv file is saved in /storage/emulated/0/Android/data/{package name}/files/ Would you tell me how to read the csv file in that path in unity?
I used if(File.Exists(Application.persistentDataPath + "/data.csv")) byte[] bytes = File.ReadAllBytes but didn't work.
I use unity 2018.4.33f1 version and android studio 4.1.3 version.
Your answer
Follow this Question
Related Questions
.xml .csv .txt .json which one can be load and save on Android ? 0 Answers
cvs file is not saved in android 0 Answers
Tween move from CSV works on Editor but not on Android 0 Answers
Android app works on only Xiaomi, not any other Android devices 0 Answers
How do I prevent objects from coming out the screen in Android? 1 Answer