Reading a different app's DataStorageDirectory$

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi all,

    So I'm creating a "PRO Version" for my Android Application that would simply have no Ads, unlimited lives, etc.

    The issue is, this will be a separate application uploaded to the Play Store, meaning it'll have to read the save data from the "Normal Version" once the user upgrades -- I don't think Android allows for this, though. I've tried using the same pathname and everything, but the "PRO Version" would not load the data from the "Normal Version", even when both are left installed.

    In App Purchases is out of the question, of course -- since I don't own the developer version.

    Any suggestions? Is there a work around do you think?

    Thanks,
    Samer.

  • Of course! No Problem.

    I simply swapped out DataStorageDirectory$ for ExternalStorageDirectory$. This means that the saved Array file can be accessed by other apps.

    The downside to this is that the file can also be accessed by the user (it's also explicitly visible when navigated to the directory).

    I managed to circumvent the unprofessional look of this by using the 'File' Object to create a new folder within ExternalStorageDirectory$( "Android object" ) + "/Android/data" -- I named it "com.mycompanyname.application" (I simply attached it at the end of the directory).

    After doing so, I saved the array file within that folder, using: ExternalStorageDirectory$( "Android object" ) + "/Android/data/com.mycompanyname.application/applicationData.arr"

    What's neat about this, is that when you uninstall the app, google (somehow, I don't know) tracks everything related to the android application's package name and deletes it, meaning the folder that we created is deleted automatically (given that the package name is the same as the folder name [I think]). So it is very convenient in that regard and opens up new possibilities of games design.

    Hope I was clear.

    If you need further clarification or have any more questions, do let me know.

    Best,
    Samer.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!