Active picture object and directories issue PC/Android

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I am definitely doing something wrong here and am now simply running around in circles. Keep in mind I'm an old bag. :(

    Am using active picture object and am developing for Android on Win 11.
    For some reason I can't get the images to show on both the PC and Android.
    All images are added in the Binary Data section with full path to the directory on my PC. I simply selected them and added them there.
    ___________________________________________

    Following will only show on Android.

    First frame File object creates a directory:
    Create directory > DataStorageDirectory$( "Android object" ) + "\" + "bytiny"
    With this the images will show on Android but not on the PC.

    Second frame File object sets Current directory to:
    CurrentDirectory$( "textFile" ) + "\bytiny\"
    ___________________________________________

    For images to show on PC I need to have File object point to the images directory on my PC which obviously will not work on Android.

    Please tell me what I'm doing wrong and point me in the right direction.

    ~Tiny~

  • you may add condition event Is Runtime Android or Is Runtime Windows. as an example:

    * Button Button clicked
    + Is running as Windows application
    Active Picture : New picture : "E:\OpenGL Shader Designer\textures\Cartwheel_Galaxy.jpg"

    * Button Button clicked
    + Is running as Android application
    Active Picture : New picture : "Cartwheel_Galaxy.jpg"

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • you may add condition event Is Runtime Android or Is Runtime Windows. as an example:

    * Button Button clicked
    + Is running as Windows application
    Active Picture : New picture : "E:\OpenGL Shader Designer\textures\Cartwheel_Galaxy.jpg"

    * Button Button clicked
    + Is running as Android application
    Active Picture : New picture : "Cartwheel_Galaxy.jpg"

    Thank you Fernando. I tried that but it gets messy for me with lots of extra code lines.
    Anyway, I think I found the solution or at least "a solution" by not creating any special directory for the images but have them in same directory as the app. This works so far on both Android and Windows on the test app I made. :)

    ~Tiny~

  • Thank you Fernando. I tried that but it gets messy for me with lots of extra code lines.
    Anyway, I think I found the solution or at least "a solution" by not creating any special directory for the images but have them in same directory as the app. This works so far on both Android and Windows on the test app I made. :)

    Yes, this will do too.

    I will check to see if I can do something with this.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Thank you Fernando. I tried that but it gets messy for me with lots of extra code lines.
    Anyway, I think I found the solution or at least "a solution" by not creating any special directory for the images but have them in same directory as the app. This works so far on both Android and Windows on the test app I made. :)

    Are you testing on a VERIZON SAMSUNG Device by chance?
    I have noticed that all of my Android Devices have no problems finding internal files of the app, except for my VERIZON SAMSUNG Devices. VERIZON Samsung blocks looking around in internal files for some reason. Regular, NON VERIZON Samsung Devices, seem to have no issues.

  • Are you testing on a VERIZON SAMSUNG Device by chance?
    I have noticed that all of my Android Devices have no problems finding internal files of the app, except for my VERIZON SAMSUNG Devices. VERIZON Samsung blocks looking around in internal files for some reason. Regular, NON VERIZON Samsung Devices, seem to have no issues.

    No it is a Realme, but good to know about the Samsung device. Thank you. :)

    ~Tiny~

  • Are you testing on a VERIZON SAMSUNG Device by chance?
    I have noticed that all of my Android Devices have no problems finding internal files of the app, except for my VERIZON SAMSUNG Devices. VERIZON Samsung blocks looking around in internal files for some reason. Regular, NON VERIZON Samsung Devices, seem to have no issues.

    Can you check if this specific devices have antivirus, if so, what are the settings.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!