Testing the next release of MIT App Inventor (nb187)

Here is a test APK that only works with the File component (no extension is used):

Tested on Android 11 (Pixel 2XL).

Bugs:

  1. File.Exists from assets does not work with the APK (Companion works).
    grafik

  2. WRITE permission must be declared in the Manifest so that it works after the automatic request of storage permission.
    If the permission is denied:
    "Error 908: The permission READ_/WRITE_EXTERNAL_STORAGE permission has been denied. Please ..." depending on which action is carried out.
    If the permission is granted, however, it works, although WRITE permission can of course no longer be granted under Android 11, since it no longer exists there.

  3. All shared folders work without problems, except /Documents.
    The folder /Download works with all file types (txt, jpg, mp3, ogg, mp4, ...).
    Non-media files (like .txt) should only work with /Download and /Documents.

1 Like

I don't have an android11 device. Should android10 also allow writing to shared folders without write permission? I wanted to test the write, but components that write anything ask for write permission.

yes...
therefore the permission should be defined like this

<uses-permission
  android:name="android.permission.WRITE_EXTERNAL_STORAGE"
  android:maxSdkVersion="28" />

see also @Anke's tests, for example this one

Taifun

1 Like

This should have been the first easy fix to nb187 to facilitate further testing on all devices.

The point here is not whether or not WRITE permission is granted, just whether WRITE is declared in the Manifest. As I said several times, WRITE can no longer be granted under Android 11.

Yes, see also here:

If requestLegacyExternalStorage for Android 10 is not used, then set maxSdkVersion to 28, otherwise to 29.

My question is, does android10 allow writing to shared folders without write permission? Same as in ASD.

short answer yes
long answer: see again here Testing the next release of MIT App Inventor (nb187)

Taifun

OK thanks. So we should also remember about android 10 during corrections, so that the app does not ask for permissions when we do not have the scope set on Legancy.

@ewpatton
With this nb187 release can we edit our package name for our app ??

no... why do you think so?
see also the release notes http://appinventor.mit.edu/ai2/ReleaseNotes.html

Taifun

2 Likes

hmm, that is a quite not nice
it would be very better if they would add this.
I thought because every other app builder except AI2


if anyone wants this feature then like this post :+1:
so that MIT Team can add it very soon in the next release(nb188)

3 Likes

Implementation of support for native libraries in external componentes by jarlisson2 · Pull Request #2210 · mit-cml/appinventor-sources (github.com)

is this has been Implemented to AI2 ???

From what I can see it's not. Jarlisson did not make the appropriate corrections, and it seems he is no longer an active user / developer in ai2.

Sad to know aar support and native libraries support wont be added in nb187
:disappointed:

We extension devs know pain of aar libraries

~ Sed lyf

2 Likes

I don't know much about this that how hard it is but i think MIT should focus on their extension developers too as aar support can make a revolutionary effect on extension development history also in latest release of Niotron they had added AAR support so it won't be difficult for either MIT to add aar support... This was my opinion on this .

~ Akshat

2 Likes

Seriously, wont lie, my almost 15+ aixs are done, ready but, just because of lack of aar suport,
:disappointed:

it doesnt work

3 Likes

Ai2 is an educational platform and extensions are not in the 1st place here. After that, MIT is also working on a version for ios. Now it's some news, new view list, helpers blocks, new file component with which there are still problems. I think aar support will be added in the future. On the other hand, support for native libraries, someone will have to re-implement or continue the work of Jarlisson.

3 Likes

Let me look for some dev :slight_smile:

1 Like

If MIT Team don't mind I want to say something:
Some times it feels like MIT App Inventor is a lack of a few important features needed. Like AAR libraries support, custom package name, not updating the old components or adding new ones. Sometimes the block colors and the blocks workspace looks dim...
Even the icons of the components don't look attractive...
Actually I want to say a small thing that is in the DatePicker component the icon's date is 2011

This message is not to hurt or telling people to migrate to other App Builders, it is juts a opinion from my side. PLEASE DON'T FLAG THIS POST

~ Srikar