User Tag List

Results 1 to 7 of 7

Thread: How Save and load any file from Internal storage

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    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)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    pradeep's Avatar
    Join Date
    Dec 2013
    Location
    India
    Posts
    427
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

    How Save and load any file from Internal storage

    Android object:
    Android Object - Expressions
    Get data storage directory
    Temp directory
    External storage directory
    But how Save and load any file from Internal storage?
    Plz help

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,505
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    @Pradeep your question is too general, please let us know what type of files you want to save, and then a better explanation can be given.

    Text files, can be loaded and saved by edit object and using datastorage() +"/"+"filename.ext"
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    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)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    pradeep's Avatar
    Join Date
    Dec 2013
    Location
    India
    Posts
    427
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    @Pradeep your question is too general, please let us know what type of files you want to save, and then a better explanation can be given.

    Text files, can be loaded and saved by edit object and using datastorage() +"/"+"filename.ext"
    I use DataStorageDirectory$( "Android object" ) + "/" + "ABC.text" for save ABC.text. But when clear all data this file remove. I want this file not remove when app unstall or reinstall or clear all data. Also file serch in Internal storage.

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,505
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    There is no correct way to have a file in a permanent area, note that it is why scope area was created, which is deleted also when uninstalling the application owner.

    Maybe in the cloud? Or external if your application use storage manager and approved by Google
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    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)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    pradeep's Avatar
    Join Date
    Dec 2013
    Location
    India
    Posts
    427
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    e.g. Telegram create folder in internal storage and store all file in this folder. When telegram unstall, file and folder inside are not remove. like this I want store fie in iternal folder.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    751
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pradeep View Post
    e.g. Telegram create folder in internal storage and store all file in this folder. When telegram unstall, file and folder inside are not remove. like this I want store fie in iternal folder.
    Google Stopped this bud. I use to have a Folder in Internal Storage called VBE for all of our apps storage files created by the user.

    I.E. VBE/Mastersuite/Recordings/
    VBE/TheGateway/Recordings/
    VBE/SpiritBox/Recordings/

    Google changed this to public Scoped Storage, which is horrible as SAMSUNG Devices lock the user from these files. So, if a User wanted to import a file using the Default Folder Browser, they can't.

    The latest is Dumb, but it also has it perks.

    Say a User Downloads your app. Uses it to make Files of some sort. Then wants a refund from google after they are done.
    Well, they will get their Refund and The App and all files are removed from the Public Scoped storage area.

    I still prefer the old way of saving, but who am I to say anything.

  7. #7
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,505
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by pradeep View Post
    e.g. Telegram create folder in internal storage and store all file in this folder. When telegram unstall, file and folder inside are not remove. like this I want store fie in iternal folder.
    Not sure, my guess is that they use some native library for this, but some changes are ongoing here since android 13 add some changes too.

    https://developer.android.com/about/...ior-changes-13

    https://blog.esper.io/android-desser...osed-73891524/
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. Load from ascii file and save into array
    By Worst in forum Fusion 2.5
    Replies: 4
    Last Post: 16th September 2018, 02:14 PM
  2. INI file cannot save to External storage
    By ASD in forum Android Export Module 2.5
    Replies: 2
    Last Post: 2nd April 2017, 05:40 PM
  3. Save & Load file with UWP application ?
    By BenjaminG in forum Universal Windows Platform Module 2.5
    Replies: 6
    Last Post: 14th November 2016, 12:34 PM
  4. LOAD/SAVE clone file in ARRAY FILE
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 20
    Last Post: 24th July 2015, 02:47 AM
  5. Save / Load Global Values to an INI File
    By Danny in forum File Archive
    Replies: 3
    Last Post: 17th January 2013, 12:33 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
  •