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 gaosong · Jan 08, 2014 at 04:55 AM · androidassetbundlesstreamingassets

On Android, how can I update files in the StreamingAssets folder?

My game have 100M asset bundles, I put the budle files into the StreamingAssets folder(I want to release my apk as one whole app, not the downloading when playing style), then I built my project into one apk file, then I installed the apk file to my device.

But how can I update my bundles when my game find one new update is available? The StreamingAssets folder on Android is read-only.

One solution is that: copy the bundles in the StreamingAssets folder to somewhere like the Android's External Storage, then use bundles in the External Storage. But this will increase my game size from 100M bundles to 200M.

So on Android when I install one apk, can I install some files meanwhile into somewhere writable?

Anyone can help me? Thanks.

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

1 Reply

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

Answer by GameVortex · Jan 08, 2014 at 09:40 AM

Because the StreamingAssets folder is read only you can not download updates to that folder as you say. A solution could be to just download update bundles to the external storage and on the start of your app check if there has been downloaded any updates. If there is, then load the downloaded bundles from the external storage. If not, then use the bundles in the StreamingAssets folder instead (as a default).

And as a reminder: keep in mind the 50MB filesize limit of Google Plays APK files. Anything over that size needs to be hosted in separate **Expansion Files**.

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 gaosong · Jan 08, 2014 at 10:29 AM 0
Share

Thanks for your reply, GameVortex.

Your solution is good. If use your solution, the key problem is that I can not release the old bundles, which will not be used any more, in the Strea$$anonymous$$gAssets folder. That is also why I post my question.

And we aim to publish our game on one third-part app store, which doesn't limit the apk size, not the Google Plays. So our apk is 100+$$anonymous$$ with about 100$$anonymous$$ budles in the Strea$$anonymous$$gAssets folder.

I am new to Android, I am wondering if one third-part app store on Android is legal?

avatar image GameVortex · Jan 08, 2014 at 10:37 AM 0
Share

Well the files in the Strea$$anonymous$$gAssets folder will be compressed into the .apk file, so it is not possible to delete anything from it. So either you include it and hope that the users won't $$anonymous$$d an extra 100$$anonymous$$B being used when updating the app, or you do not include it and hope that the users don't $$anonymous$$d downloading more bundles right after starting the app.

You can not use me as definitive legal advice, but I do believe third party app stores are legal, just like the **amazon app store**.

avatar image gaosong · Jan 08, 2014 at 10:50 AM 0
Share

O$$anonymous$$, I get it.

This is my first post in Unity. Thank you GameVortex.

avatar image GameVortex · Jan 08, 2014 at 11:16 AM 0
Share

No problem, glad I could help.

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

Download video and put it into StreamingAssets folder 0 Answers

Mobile Terrain in AssetBundles on IOS and Android 1 Answer

Streaming assets android 0 Answers

Sqlite4Unity3d difficulties 1 Answer

[Android] StreamingAsset problems with XML files 2 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