Jump to content
  • Advertisement
Sign in to follow this  
electrolysing

Create Public File

This topic is 1217 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

I want my android game to be moddable which means that some files need to be accessable by the user to change. I can't expect them to root their device.

 

When I create a file with the attribute Context.MODE_PRIVATE the file is created in the root directory.

 

The attribute Context.MODE_WORLD_WRITEABLE is deprecated. So what is the alternative?

They say they made it deprecated because of security reasons (I personally can't think of any possibilities when this would be a security hole) but they haven't thought of the situation when I want to make files public for the user to access and not by other programs, as all the alternatives they list are for communication with other programs.

What is the alternative to provide public files to the user to modify?

 

Thank you very much

~AUN

Share this post


Link to post
Share on other sites
Advertisement
Place the data files in a user-selectable folder in "external storage" rather than your private, potentially restricted applications directory. Then the user can put it wherever they want, including the phone's storage or an SD card.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!