Point
December 31, 2020, 11:27am
1
Hello, I noticed a problem with the split block,
When you divide text with an empty separator then you get a list of all the characters in the text, but I noticed that in Android 9 another empty item was added at the beginning of the list (which means that the list has 4 items):
In Android 10 this does not happen (which means there are 3 items on the list):
When I tested it on iOS I got the same result I got on Android 9 (I checked iOS 14.3 and iOS 12.4.9 and got the same result):
Here is a picture of all the blocks:
And here is the aia file:
split.aia (2.2 KB)
TIMAI2
December 31, 2020, 11:29am
2
You will need to run a test (if/else) for an empty item created by splitting text, and remove it.
Point
December 31, 2020, 11:32am
3
I know how to solve the problem, but I think it's a bug in the app inventor that needs to be fixed (the same result should appear on all devices).
Anke
December 31, 2020, 1:55pm
5
Yes, it is known and here is a simple way to work around it:
Same result on Android ≤ 9 or ≥ 10.
1 Like
ABG
December 31, 2020, 3:32pm
6
Here's @Anke 's method without the global variable, draggable ...
2 Likes
Anke
December 31, 2020, 3:53pm
7
Your (more compact) approach should / could be added to the → FAQ.
system
Closed
January 7, 2021, 5:31pm
9
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.