I have two activities, Main and a calculation (can be found in this post https://www.b4x.com/android/forum/threads/how-to-unload-an-image-to-free-memory.50727/ ).
I thought everything was working well but now I have a new problem. Main allows the selection of two points on a map, these points are passed to the second activity. This activity finds the route between the two points.
The problem is, IF I make a wrong selection , I want to stop the second activity and go back to the first. The calculations are pretty intensive. Pressing the back button crashes the whole app with a single error message in the log (will post it when I get home - sorry).
Addiing a DoEvents does not help, as the calculations are then way too slow.
Thus my question in the title.
Many thanks for any help.
I thought everything was working well but now I have a new problem. Main allows the selection of two points on a map, these points are passed to the second activity. This activity finds the route between the two points.
The problem is, IF I make a wrong selection , I want to stop the second activity and go back to the first. The calculations are pretty intensive. Pressing the back button crashes the whole app with a single error message in the log (will post it when I get home - sorry).
Addiing a DoEvents does not help, as the calculations are then way too slow.
Thus my question in the title.
Many thanks for any help.