Error with Android 10

Hi all, today I am going to say about a error in Android 10.
I don't have problem with this error. But I wanted to report this error to App Inventor moderators. - @ewpatton

image

Phone Android version: 5.1.0
I tried to show this list in a label in Android 5.1.0.
This is what it shows: ["", "1", "2", "3", "4", "5", "6", "7", "8", "9"]

Phone Android version: 10
I also tried to show this list in a label in Android 10.
This is what it shows: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]

As you can see the empty text at the Do it list in Android 5.1.0, but in Android 10 the text as disappeared.
In my first app I used this and I had many many problems so I had to update my app 4 times.

Is that any bug, if it is then can you please solve the problem. :slightly_smiling_face:

Regards,
Ruthenium Alpha

Known bug, see how to cope with it here

1 Like

Oh thank you. I didn't notice... :grin:

1 Like

Prior to Java version 8, the semantics of string split with an empty string included the empty string at the beginning of the array. In Java 8, this was changed to not be included. Android versions prior to 10 used the earlier semantics whereas Android 10+ uses the later semantics. It's a known issue.

2 Likes

Thank you Sir for your information :smiling_face_with_three_hearts:

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