Well, I haven't yet - and now I have.
openFileInput doesn't like path sepatators "/" in the input. If you wrote
your own that returns String it will still see a path separator.
getFilesDir() conveniently ignores this.
This means that everything has to be in the base /files/ directory, no subs
allowed. I could do this in a pinch and force everything I need to be
downloaded and unzipped to /files/, but this will result in a very messy
/files/.
java.lang.IllegalArgumentException: File
/data/user/0/bluewhale.playware.com.bluewhale/files/Test/Test.json contains
a path separator
Thanks.
On Monday, 4 January 2016 17:21:27 UTC+8, Pizza67 wrote:
>
> Have you tried with openFileInput/openFileOutput to read/write files
> instead of using the File class?
>
> Regards.
> Massimo
>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/07da3785-5fd0-43b1-93b3-7d55f864a2dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.