I have string array in my apk that works great up to 4999 items, and when i get 5000 item it get's this error:
So up to 4999 items it works great without error message, but when 5000 item is comming to be read into array i get above message. I have 6000 items to be filled into array so need solution how to put these items into string array (plan is 10 000 items in feauture).
Here is the code that gives me this error:
So as you can see i im reinitializing existing array that have 13 items and it's size is defined in Menu.VideoClubList.Size that have size of 6000 items. You can try in your program to initialize array and try to fill 6000 items into that array and you will get error...i think that String could not handle more that 4999 items if i im right so need another solutio how to fix this.
So try this in attached program.
B4X:
java.lang.ArrayIndexOutOfBoundsException: length=5000; index=-1
So up to 4999 items it works great without error message, but when 5000 item is comming to be read into array i get above message. I have 6000 items to be filled into array so need solution how to put these items into string array (plan is 10 000 items in feauture).
Here is the code that gives me this error:
B4X:
'REDEFINE - Arrays
Dim MovieInfo(Menu.VideoClubList.Size, 13) As String
So as you can see i im reinitializing existing array that have 13 items and it's size is defined in Menu.VideoClubList.Size that have size of 6000 items. You can try in your program to initialize array and try to fill 6000 items into that array and you will get error...i think that String could not handle more that 4999 items if i im right so need another solutio how to fix this.
So try this in attached program.