Hello, when the last line of the ListView is clicked, application is closed. But this happened a few days ago, before that it worked well, how can I fix this?
Please show your relevant blocks
on any listview the same problem
Please show what you are doing in the afterPicking event....
All other lines work fine, but when I click on the last line, the application closes automatically.
Try this simple test:
Also try removing everything from your afterPicking event. Does the app still crash?
How are you testing, compiled apk or with companion app (is your version up to date - 2.68 / 2.68u)?
Show how global optionsList is tracking the ListView Elements list.
Is it shorter?
Also, is your Quit button just under the list view?
When I test on the companion, everything works fine, when I output the file to the apk on the last line of the list, it doesnβt even show the selection.
when I click on β1β the notification gives the result 1, when I click on β2β the result is 2, when on β3β the result is 0.
2.68
(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
https://ai2-test.appinventor.mit.edu/ - not working
https://ai2.appinventor.mit.edu/ - working
Why???
Always helps to tell us which server you are using. . .
You may have tripped a bug on the test server, though
Note that the ai2-test server is for testing features of the next release, and should not be used for developing apps.
I have confirmed the SelectionIndex = 0 bug on the last Element of the ListView on ai2-test under Companion 2.68t3u.
new_porc.aia (1.9 KB)