User Tag List

Results 1 to 8 of 8

Thread: Reading a different app's DataStorageDirectory$

  1. #1
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jun 2014
    Location
    London, UK
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Reading a different app's DataStorageDirectory$

    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.

  2. #2
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jun 2014
    Location
    London, UK
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Any ideas?

  3. #3
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jun 2014
    Location
    London, UK
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Solved.

    ///

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    663
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    How do you realize your "PRO Version" now?

  5. #5
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jun 2014
    Location
    London, UK
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi Wodjanoi,

    I'm sorry for the delayed response, but I'm not sure what you mean?

    Are you asking how I solved the issue?

    Samer.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    663
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I was just curious how you solved it actually.

  7. #7
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jun 2014
    Location
    London, UK
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    663
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Ah, you use external storage instead. Well, this makes sense now. Thanks Samer!

Similar Threads

  1. Replies: 1
    Last Post: 30th January 2016, 10:12 AM
  2. RSS Feed Reading?
    By chrisoconnell in forum Fusion 2.5
    Replies: 5
    Last Post: 20th June 2014, 04:37 PM
  3. reading from RSS
    By Panchos in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd February 2011, 03:57 PM
  4. Reading ID3 Data
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 19th June 2009, 09:19 PM
  5. Reading a Registry Value
    By Jaffob in forum Extension Development
    Replies: 9
    Last Post: 8th November 2008, 06:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •