Getting an error while load data from API to Spinner

Hello everyone, please help me.
I got this error when the spinner was loading data, but the spinner still success to get the data after the error appeared
image


this is my block

and this is the API https://dev.farizdotid.com/api/daerahindonesia/provinsi

the index in list block returns 0 if the thing you are looking for was not found in the list

Taifun

Is your code working?

You are using spinner elements of your own. Instead of it, why don’t you use the above method? If so you can take the index or the selection directly. Based on the selection index you can anyother items from anylist for the same index number

Thank you, its work and more simple :grinning:

1 Like

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