- Home /
Question by
akisrn · Sep 06, 2017 at 05:37 AM ·
filepersistentdatapath
Accessing a file from Application.persistentDataPath
Hello, all!
I would like to get advices on how I could access apk files from my persistent data path. I want to try to open them so I could install them on my phone.
So far, I have a panel in my unity scene that loads all the files from my directory. The user has the install button on the side of each file but i dont know how I could achieve opening the specific file so that it could be installed on the phone. Any heads up would be much appreciated. Thanks.
Comment
Best Answer
Answer by akisrn · Sep 06, 2017 at 08:22 AM
I solved this by using Application.OpenUrl(filepath + "/" + appname);
Answer by JedBeryll · Sep 06, 2017 at 06:45 AM
Not quite sure with apk files but the WWW class in Unity allows the loading of local files. This thread might help.