I have a central app that uses a listview with 10 items. Each item, when clicked, opens a different app using StartActivity(MyIntent). Whener an item is clicked an INTENT is triggerred to open another application. All 10 applications access the same database. Some graph data and some display it. Once I am finished with one app, I press the back key which returns me to the calling central app which has the 10 listview choices. Every once in a while I get SQLite database locked error despite closing the cursors.
Do I need to have the following code in each app to exit each app graciously so memory is released so another app can use it or is there a better way to do it:
I hope you can put an end to my confusion. Thank you
Do I need to have the following code in each app to exit each app graciously so memory is released so another app can use it or is there a better way to do it:
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then Activity.Finish
End Sub