User Tag List

Results 1 to 6 of 6

Thread: How can I create file into external storage and access it?

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Question How can I create file into external storage and access it?

    How can I create file into external storage and access it?
    I'ts not talking about the binary data function. I want to create save file into external or public storage during runtime, then it get by PC from cnnected device.
    Thanks!

  2. #2
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac 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)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,309
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    According to the help file in Fusion

    External storage directory
    Usage: ExternalStorageDirectory$("Android")
    Returns the pathname of the external storage directory, used for storing larger files. On a typical phone, this is likely to be the SD card.

    So ExternalStorageDirectory$("Android")+"\myfile.save "

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Thanks! But, I can't find the saved file in SD card.

    ExternalStorageDirectory$("Android") expression was displayed following text in the string object.

    "/storage/emulated/0"

    I cannot find this directory in the Android device.
    Can I access this directory and get file in it by PC?

  4. #4
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac 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)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,309
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    it's most likely a hidden folder

    "/storage/emulated/0" is usually just a Mapped folder to the device.
    you might see like com.asd.mygame as a folder (or something like that)
    And make sure you checked Write external under the properties as well.

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Yes I've checked "WRITE_EXTERNAL_STORAGE" permission.
    But, I can't see the folder name like package identifier of my application.

    My device:
    ASUS ZenPad 7.0 Z370C
    Android 5.0.2

    Could you make simple examle?
    Thanks.

  6. #6
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac 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)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,309
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    Let me play with it, I've never used the external storage, so give me some time.
    I will do it this morning.

Similar Threads

  1. What external data storage is possible on Ouya?
    By EE in forum Android Export Module Version 2.0
    Replies: 7
    Last Post: 13th November 2013, 12:20 PM
  2. Ho do I Create a directory and access data from it?
    By PunchyBog in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 31st October 2013, 05:58 PM
  3. INI file access?
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 30th June 2012, 02:34 AM
  4. Delete external file AND check if file exists
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th August 2011, 03:39 PM
  5. Question about file access
    By AndyH in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 1st March 2011, 11:07 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
  •