User Tag List

Results 1 to 8 of 8

Thread: Help with saving INI on Android

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    306
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Help with saving INI on Android

    It's been sometime since using INI - and when I did I mostly used INI++. I've had a look at the INI object on Android but I can't seem to do much with it.

    At the end of each level, I need to save the levels_unlocked value to the INI and when the game is loaded I need to retrieve that value(along with a few others).

    I'm assuming I set value levels_unlocked to item value "unlocked(or whatever name I choose)" and somehow retrieve that value when the game loads. But I can't figure out how to do this. [Edit: I now know how to retrieve values]

    I also don't know where the file is saved or how to set the file path, etc.[still at loss on how to do this with android]

    Could someone knock-up a quick example or image I can follow, or provide a tutorial for INI on Android. Thanks.

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,501
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    here an example covering the datafolder save, external save

    https://dl.dropboxusercontent.com/u/...sion_total.mfa
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    306
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Thanks FVivolo. After sleeping on it, I managed to solve the problems(just didn't know how to set a different save path for the INI). I'm sure your example will be useful.

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,501
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    glad you find the solution!
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    May 2021
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help

    Quote Originally Posted by Caesar View Post
    Thanks FVivolo. After sleeping on it, I managed to solve the problems(just didn't know how to set a different save path for the INI). I'm sure your example will be useful.

    Hi, I'm using ini object inside my app, it's working fine (loading and saving values etc) except if i remove the app and install it again then ini file resets, am i missing something?
    also the link for the example is down, i would like to know how to do that if you can upload a new example that would be fantastic thank you!

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,501
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    The only way is by using android backup service
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  7. #7
    Clicker 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)
    janpier's Avatar
    Join Date
    Dec 2014
    Posts
    242
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    on the google site it says that the data backup is automatic from the android 6 version, but I don't know if it also applies to the ini files and I wonder if something needs to be done on Clickteam

  8. #8
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,501
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    This is already implemented in the runtime.

    But if user have turned off the backup to drive, it won't work.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. Replies: 56
    Last Post: 26th December 2017, 09:53 PM
  2. How to use array files for Android Saving?
    By Simflare in forum Android Export Module 2.5
    Replies: 31
    Last Post: 8th January 2016, 08:31 AM
  3. Need help saving and loading a List in Android
    By fwtep in forum Android Export Module 2.5
    Replies: 2
    Last Post: 3rd March 2014, 04:10 PM
  4. Need Android Class Name and Android Package Name to create my facebook ads
    By paobrasil in forum Android Export Module Version 2.0
    Replies: 8
    Last Post: 17th April 2013, 05:49 PM
  5. [Building Error] Android Dialogs & Android Lights
    By ProdigyX in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 20th March 2013, 11:05 AM

Posting Permissions

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