User Tag List

Results 1 to 10 of 10

Thread: Cant' delete files on External SD Card

  1. #1
    Clicker 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)
    Hinaman's Avatar
    Join Date
    Mar 2014
    Location
    Barcelona
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cant' delete files on External SD Card

    I'm using File object to delete all the files in a folder. There's no problem deleting internal storage files, but it doesn't works with external SD Card.

    I also activated Permissions:
    READ_EXTERNAL_STORAGE
    WRITE_EXTERNAL_STORAGE

    and it's not working.

    (Also try to activale ALL permissions... with no results...)

    It's not possible to delete external files?

    Build API: 23

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,652
    Mentioned
    281 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Hinaman View Post
    I'm using File object to delete all the files in a folder. There's no problem deleting internal storage files, but it doesn't works with external SD Card.

    I also activated Permissions:
    READ_EXTERNAL_STORAGE
    WRITE_EXTERNAL_STORAGE

    and it's not working.

    (Also try to activale ALL permissions... with no results...)

    It's not possible to delete external files?

    Build API: 23
    from api 22 these permissions are dangerous so it must be set and allowed by user, did you allow them in this particular application?
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker 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)
    Hinaman's Avatar
    Join Date
    Mar 2014
    Location
    Barcelona
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    from api 22 these permissions are dangerous so it must be set and allowed by user, did you allow them in this particular application?
    I can't find this option, and the app information says there's read and write permission on the SD

    I've made an example app:

    Delete folder.mfa
    Delete folder.apk

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,652
    Mentioned
    281 Post(s)
    Tagged
    4 Thread(s)
    hmm teh way it should ask you for this when you start for first time

    if not just uninstall and test again

    check here

    https://android.gadgethacks.com/how-...igher-0168220/
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker 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)
    Hinaman's Avatar
    Join Date
    Mar 2014
    Location
    Barcelona
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your time Fernando...

    Reinstalled app and it seems all permissions are given, but still can't delete files on SD.

    Screenshot_2018-04-27-11-41-38-098_com.google.android.packageinstaller.jpg
    Screenshot_2018-04-27-11-42-27-583_com.google.android.packageinstaller.jpg
    Screenshot_2018-04-27-11-42-43-060_com.google.android.packageinstaller.jpg

    Building the app with "Target Android version: 6.0" or higher asks for permissions when opening for first time:
    But still can't delete:

    Screenshot_2018-04-27-12-00-29-865_com.test.delete.jpg
    Screenshot_2018-04-27-12-00-42-120_com.google.android.packageinstaller.jpg

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,652
    Mentioned
    281 Post(s)
    Tagged
    4 Thread(s)
    can you post a bug report and a small mfa that help me reproduce the issue, thanks in advance
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  7. #7
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleMac Export Module
    Cobra's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The Bug Tracker is down right now, so Hinaman won't be able to do that just yet.

  8. #8
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,652
    Mentioned
    281 Post(s)
    Tagged
    4 Thread(s)
    Is working here now
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  9. #9
    Clicker 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)
    Hinaman's Avatar
    Join Date
    Mar 2014
    Location
    Barcelona
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Posted:

    Bug/Issue Reports #4819

    Thanks for your help

  10. #10
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,652
    Mentioned
    281 Post(s)
    Tagged
    4 Thread(s)
    Hello just review this issue, problem is that you can not delete external files without user approval, so user must select the root of teh external sd (select which one) and after that, grant the program to delete, let me discuss this point with other in CT, since is a very specific situation that may require a specific extension to handle this.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. How do I remove permission: Modify or delete the contents of your SD card?
    By mutantdude in forum Android Export Module 2.5
    Replies: 5
    Last Post: 29th February 2016, 12:45 PM
  2. Delete files / clear files
    By Perry in forum iOS Export Module 2.5
    Replies: 2
    Last Post: 5th August 2015, 06:16 AM
  3. Delete all files with a particular extension
    By CBSection31 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 3rd June 2009, 02:25 PM
  4. Delete Files Example
    By Jaffob in forum File Archive
    Replies: 0
    Last Post: 2nd June 2009, 10:39 PM
  5. Delete files after install
    By SaIRoS in forum Install Creator and Patch Maker
    Replies: 3
    Last Post: 4th September 2006, 10:39 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
  •