This screenshot show the app running via the companion on my phone, the top two lines of text should be “wrong” as i am unable to “share image to” via the companion, but i hardcoded an image from the same telegaram folder as i will share from, and that is “true” for existing and displays
this screenshot is from my phone using the apk, at this point i have shared a picture to my apk via telegram, so the text at the top is now valid, and as can be seen, but hardcoded and the dynamic picture i just shared are both coming back with existing “true”, but neither picture, even the hardcoded one from the companion is displayed…
this is not a question about reinstalling… you first have to grant the permission before you can access and display the image… you added the AskForPermission block during Screen.Initialize and continue to display the image without having received permission to access to the file…
therefore my guess is, it only does not work the first time, but might work all further times you start the app
Ok, i’m not “clueless” when it comes to all this stuff, and have tried alot before having asked here…
I have installed, allowed it to request, fully close the app, then reopen it, it doesn’t display.
I showed a screenshot of the app permissions on my phone, after the first request it hasn’t asked again…but the image is not displayed, again notice that the “fileExists” command is saying true for both “images” so its able to see them, but not display.
And this DOES work via the companion app, just not when its compiled as apk.
I have modifed the apk to load a file from the root of an sdcard (emulated external storage), I have placed my image “test.png” of the root of the sd card, it shows in companion, but not in apk, maybe you can try it? you need to click the button on the first page to go to the second (as im also trying to accomplish this by sharing an image to my app)
as test keep the AskForPermisson block in the Screen.Initialize event and move all other blocks into for example a button click event
it should be possible to display the image from any folder after having received READ_EXTERNAL_STORAGE permission, see also the overview Some basics on Android storage system - #24 by bodymindpower
it then reloads and shows filetools exists true/false + the full path, then the image.
this all works on the companion -
but doesn’t work atall on my phone, even the copy command isn’t working, even though i have storage permissions and request permissions at the start of the app, as per the blocks aia -