Problem with the MFile extension

I have noticed that I get problems with the MFile extension.
I have now created a simple project.
I always test my projects with the MIT AI2 ... App
As soon as I add MFile to my project a white window is displayed in the app.
If I remove MFile from the project, everything is displayed correctly again.
I think before I have not solved this problem I will not continue to work on the project.
Tested on an Android 9

Where can the problem be.
Thanks

You do not need to use the MFile extension on Android 9, you have full access to the file system.

This is my test device.
It is to be installed on Android 12 and 13 at the end.
Can I not test it on Android 9 like this?

Yes, you can.

Have you refreshed your browser and companion app after adding the extension ?
Does the white window appear with companion app or compiled app, or both ?

It is displayed in the companion app.
Briefly created the compiled app and tested it.
Here everything is displayed correctly.
I'll continue to work on the project and see if it still works.
Something unpleasant if I can not test it with the Companion App.

Hello Roland

Was the Companion App running when you added MFile to your Project? That would cause an issue or two.

No the app was not running.
I have today in the folder
/...../Android/data/data_edu.mit.appinventor.aicompanion3
I deleted everything.
Now everything is displayed correctly again.

2 Likes

:+1: Yes, sometimes you should / must remove the assets from the Companion app.

Thank you. Will use the deleteAssetsCompanion.aia every now and then in the future.

1 Like

Delete every time it is possible that the old data stored will cause a change in your code to fail. You can also perform the delete manually, via Settings, Apps, Apps, MIT AI2 Companion, Storage, 'Clear data'.

But this would also remove all permissions and the ASD from the Companion app.

Remove all, yes - but when testing you do want to see what the User will see, right? ... also no harm if the Companion asks to use the camera for scanning the QR code.

But if you have already downloaded big (video) files (e.g. with another app) to the ASD you have to do it again, because after deleting Storage & Cache the ASD is empty.

Absolutely true - has to be judged.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.