- Home /
add data files to apk
Hi, I making a 2d project for Android. I'm using files to save data I use in the game but when i make apk I'm not able to take these files into the final apk. The files are being generated in Application.persistentDataPath when I ran the game using unity editor. How I can get these files and add to apk file in order to be copied in Application.persistentDataPath when the application will be installed?
You save data in project or in outside file? (If outside ,for android is other funcions to save it and load http://answers.unity3d.com/questions/334907/how-to-www-a-file-on-android.html)
Answer by aramirezt · Nov 29, 2014 at 06:25 PM
Hi, I use serialization to save & load scenes. Firstable these files were in persistentDataPath but now I leave inside ASSETS\RESOURCES folders using dataPath I think will be take. The problem is in Android I'm not able to retrieve that information. I'm going to try use the solution proporsal on http://answers.unity3d.com/questions/8351/load-textasset-for-serialization.html. I will write if works or doesn't work.
Could you solve the problem? I'm in the same situation
Your answer
Follow this Question
Related Questions
how to get an apk to install without play store. 2 Answers
Save Texture Variable? 1 Answer
Problem when saving and loading 1 Answer
How to load plist file into APK (Android) with Unity? 2 Answers