Reposted: Package information must be removed. Not my call.
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/package_name/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/88e8a26e-3a90-4cab-8666-a2aefb458dca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.