Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by FatWednesday · Jan 19, 2014 at 01:52 PM · androidxml

Android Persistant Data

Hey,

Got an interesting issue with an android build. Currently testing a project on Kindle Fire, Nexus 10, and a Sony Xperia tablet.

Our project saves a lot of data via XmlSerialized files to the Application.persistentDataPath. This happens the same on our iOS build as well. On iOS and on the kindle fire, and the nexus this method works fine, the data saves and loads without issue next time you run the app.

However on the Xperia, we get an error when serializing the xml that access to the path is denied. We have the app set to read and write permissions for the SD card, and this is the same build as works on other tablets.

I thought perhaps the lack of a present SD card caused the issue, but even with an SD card in the issue remains.

Any ideas?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image nesis · Jan 19, 2014 at 02:26 PM 0
Share

Have you tried checking the location you're writing to? It might be protected...

I'm not sure how informative errors are in the OSes mentioned, but another issue that'd prevent file writing might be your app attempting to write to the file before the OS registers it as closed, so a forced delay between file opening and writing might handle that?

avatar image FatWednesday · Jan 20, 2014 at 12:05 PM 0
Share

protection would seem likely given the error, however its only the persistentDataPath which we use on all platforms for save data, and it works using this path on other droid devices. Also the files won't be open as this process is what creates the files in the first place on a fresh install.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by FatWednesday · Jan 22, 2014 at 10:27 AM

Ok so issue seems solved now, Not sure what setting it was on the device (it's been suggested that enabling the device to install from non-google sources can put it into "read-only" mode) But after a factory reset this issue just disappeared.

Just posting this in case others face the same issue.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Loading/Saving XML not working on Android 1 Answer

Xml file not going in APK ... 1 Answer

How to modify or save xml on Android 0 Answers

StreamReader can't read Android internal storage path 0 Answers

Saving data 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges