This is a common error; please search the community before posting.
sorry but i did try several hours before i posting, but thanks for the hint.
anyway i found that hint to set the first screen filescope to LEGACY - i have not seen this mentioned anywhere before.
and i found the file in INTERNAL memory.
so even i give permission to EXTERNAL it is now in internal memory. simply beyond my mental capacity now
Why don't you try my test app?
Everything is set up there so that it works on all Android versions.
→ DefaultFileScope = Legacy (→ Designer)
→saveToShared_2.aia
:
I tested your app saveToShared_2.aia, when I clic on save button the app stops with filescope shared, runs good with filescope legacy. (Android11)
I tested it with 11
Companion or APK?
Companion, I did not build it
What does "the app stops" mean?
Take a screenshot ...
I can not, the app closes itself with companion.
I tried apk with shared, it runs well.
With companion 2-62u no problem with shared
Which companion version did you test with before?
I tested with 2.61
Anke i did try both of your examples and they worked - thanks.
when i tried mine with your changes it did not because i missed that LEGACY setting in the default screen. i do have multiple screens. this hint i found in another of your responses.
now i took the first block out as you suggested and it still works - great.
i think this all now makes me be able to finish my project for the most part.
if you don't mind there are still 2 open issues related to this:
- i still have not found a guide on how to update an existing project with a new extension ( i asked that one before) and
- i use the the taifinscreenshot block and that still comes up with "open failed...EPERM operation not permitted" this is running the apk and it is a different screen in the same app
thanks again for you patience and help to solve my issues
Erhard
For your two open
issues:
- Updating an existing extension
- Download the latest version of the extension
- Open your project in App Inventor
- In the designer palette on the left, scroll down to Extensions
- Click on import and select your latest version from your computer
- If all goes well, you should get a notice that your extension has been upgraded
- If it fails, you may need to contact the extension developer about this, or worse case the new extension is not compatible with the previous version. In this latter case, you will have to uninstall the version you have, then install the new version. This will mean a lot of work in the blocks editor! Make a copy of your project and save to your PC before starting this.
- Taifun Screenshot
You have another topic for this here
Taifun Screenshot not working (for me)
Please ask questions about this there
Anke, yes i tried that one and it does not go well. complains about "duplicate...."
and i cannot afford to just delete it and rebuild my code.
with your help i fixed my file issues and that is good enough for me. i was somehow hoping the newer taifunFIle would possibly do all this internally. problem with current fixes is that during developing the file function do not work and i get funny errors that go away in the apk
overall the MIT appinventor is pretty amazing. in one screen i have about 1000 bocks and i think that is about the limit one can comfortably work with the appinventor. i m missing break points etc for debugging but Do IT is not bad and there i snot an easy find function that jumps to the right block from what i am reading.
ok i will try your suggestion, thanks
It will definitely work.