Android: How to save to Pictures folder

About Monkey 2 Forums Monkey 2 Programming Help Android: How to save to Pictures folder

This topic contains 2 replies, has 2 voices, and was last updated by  nerobot 2 weeks, 2 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15545

    Nalle
    Participant

    Hello everyone,

    How in Monkey2 the Pictures folder of Android systems can be retrieved?

    I’m currently using path “sdcard/Pictures/”, but this probably isn’t the best way to do it.

    I would like to have the pictures to be visible with computer too, so that it would be easy to transfer the files from Android device to computer.

    The way I’m currently done it, the user has to copy or move first the file on Android device, which makes it visible to a computer too.

    #15550

    nerobot
    Participant

    Hi. There is the function  GetSpecialDir:String( name:String ) but it understand only “internal” and “external” params for android,

    but you can extend it by changing this file

    /monkey2/modules/std/filesystem/native/Monkey2FileSystem.java

    add one more else  branch:

    and rebuild std module for android target.

    #15551

    nerobot
    Participant

    I will test and add realisation for all external dirs.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.