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
2
Question by ArseneySorokin · Dec 29, 2014 at 11:45 AM · androidsavefilefiles

Save a reachable file on the android device

Hi guys,

Currently I'm saving all of my files in "Application.persistentDataPath", which is fine if I want to reach those files only via my Android application. But I want my users to be able to directly reach the files they've created through the Android file browser (My Files).

How do I create files that can be opened both by the app that created them and by the user directly?

Thanks in advance,

Arseney

Comment
Add comment · Show 7
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 HarshadK · Dec 29, 2014 at 10:56 AM 0
Share

Save files on the SD card.

avatar image ArseneySorokin · Dec 29, 2014 at 10:58 AM 0
Share

What if the phone doesn't have an SD card? And what is the path to it? just /sdcard/myfoldername ?

avatar image HarshadK · Dec 29, 2014 at 11:04 AM 0
Share

How to Get All $$anonymous$$emory Path (Internal or External $$anonymous$$emory) list in android

avatar image ArseneySorokin · Dec 29, 2014 at 11:32 AM 0
Share

It says " Ever since their version of Android 3.2, they have also disallowed the writing to the external storage by regular apps." Is there no way around this?

avatar image HarshadK · Dec 29, 2014 at 11:45 AM 0
Share

From the same source the lines below it are the solution for that issue itself:

Inserted microSD card: mnt/extSdCard Connected external storage via Samsung USB Adapter: mnt/UsbDriveA "sdcard" storage(not an inserted SD card): getExternalStorageDirectory() as you know.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by ArseneySorokin · Dec 30, 2014 at 11:58 AM

So the answer was much simpler than I had expected it to be.

In player settings, setting "Write access" to "External (SDCard)" makes the PersistantDataPath a reachable location.

Thanks for the help :)

Comment
Add comment · Show 1 · 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 ZhakyDK · Dec 05, 2015 at 03:54 PM 0
Share

Hey I have the exact same problem as you did, however even though I have changed the "Write access" to "External (SDCard)", and the application states that it has succesfully saved the data, I can't seem to find the folder. The path I'm given on my Nexus 7 tablet is:

/data/user/0/Com.ProjectName/files/FileName

Where did you find yours and do you maybe have a suggestion as to what I might be missing or should do ins$$anonymous$$d?

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How to Save PNG in android...? 1 Answer

Search for files on android 2 Answers

Files on mobile devices 0 Answers

Android file path? 0 Answers

How to tell android to open a file 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