I've made a simple app that list file from ftp.
I've initialized ftp in Process_Global then I've a button:
and in FTP_ListCompleted I fill a ListView and then it starts a new activity.
When key "back" is pressed it call Activity.Finish.
Everything works. I start my app, I press the button and the list is filled, I close the app (with back key) I restart it and it works again.
The problem came if I start my app, I fill the list, I close the app, I wait about two minutes or more (the screen of the phone turns off) I start my app again but when I press the button but the list is not filled, is empty.
The only way to resolve the problem is press the square button (android 5.02) and swipe the app (manually close I think). After this if I try to open and press the button the list is filled.
Can someone please help me with this problem?
tnx
I've initialized ftp in Process_Global then I've a button:
B4X:
FTP.List("/")
When key "back" is pressed it call Activity.Finish.
Everything works. I start my app, I press the button and the list is filled, I close the app (with back key) I restart it and it works again.
The problem came if I start my app, I fill the list, I close the app, I wait about two minutes or more (the screen of the phone turns off) I start my app again but when I press the button but the list is not filled, is empty.
The only way to resolve the problem is press the square button (android 5.02) and swipe the app (manually close I think). After this if I try to open and press the button the list is filled.
Can someone please help me with this problem?
tnx