Hello
I fixed this issue before posting but as I promised to start a new thread and in case some one faces a similar issue .
How to produce issue :
Dim a list in Starter service and fill it with your data .
in Activity dim another list , initialize it and make it equal to service list like
In Activity_Create try to get an item from starter_list .
Now lock screen and you will get error like "java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0" when trying to access a list inside Starter service after screen lock .
My fix is just to delete activity list and always use starter_list .
I fixed this issue before posting but as I promised to start a new thread and in case some one faces a similar issue .
How to produce issue :
Dim a list in Starter service and fill it with your data .
in Activity dim another list , initialize it and make it equal to service list like
B4X:
activity_list = starter_list
In Activity_Create try to get an item from starter_list .
Now lock screen and you will get error like "java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0" when trying to access a list inside Starter service after screen lock .
My fix is just to delete activity list and always use starter_list .