Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by macmouse · Aug 31, 2015 at 03:35 PM · androidfilesystemstorage

Where is the persistent data path on my Android phone?

I saved a file with:

 System.IO.File.WriteAllText(Application.persistentDataPath + "/abc.txt", text);

Now where is this "abc.txt" file on my android phone? I can't find the file.

Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by getyour411 · Sep 01, 2015 at 12:39 AM

print / Debug.log(Application.persistentDataPath) to see it for any device

Comment
Add comment · Show 4 · 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
avatar image macmouse · Sep 01, 2015 at 06:40 AM 0
Share

I did that. It looks like .../com.example.testfile/files/... The problem is here, that the files folder not exists on my phone. There is only a "cache" folder.

avatar image mohsinbokhari_2 macmouse · May 20, 2016 at 02:02 PM 0
Share

This means that your file is not being created successfully.

avatar image getyour411 · Sep 01, 2015 at 07:45 AM 0
Share

In Windows the %PATH% is hidden from File Explorer, you have to enable the option to browse it; I expect its something similar for your device.

avatar image enigmabfd · Jul 06, 2016 at 06:36 AM 0
Share

Has anyone found how to access the /files folder from windows yet?

avatar image
2

Answer by Cmoche · Dec 20, 2017 at 07:11 AM

Start at the root of your device Android\data\com.yourorg.yourappname\files\ If you have an External sdcard mounted, check there too.

In Windows I'm pretty sure it's Username\AppData\Local\Packages (docs are here: https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html)

Though you can reference the project location internally as well,

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
avatar image
2

Answer by SkillcraftHD · Feb 08, 2021 at 09:00 AM

Go to your device explorer on your mobile device, then press on the 3 dots in right top corner, scroll down and enable "Show hidden system files". Internal memory/Android/data/.com.Company.Game

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

33 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 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

Accessing local system ( File Browser ) 2 Answers

Import file from user using Unity on Android and iOS app 0 Answers

TimeZoneInfo.GetSystemTimeZones().Count gives 0 for unity android app 0 Answers

How to get Internal storage in any Android device 1 Answer

build file with one game and two game can access it 0 Answers


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