I have two activities in my app.
Activity 1: Has a working OSM Map with all functions. The user can select two points on the map and get the route between them.
Activity 2: Takes the two points (from global variables in activity 1), calculates the route and returns a list of geopoints back to activity 1, again via a global variable.
My question is in two parts.
1. Is there any benefit of changing the second activity to a service or class? I am thinking along the lines of the HttpUtils.bas module. There is no interaction from the user and nothing really to see. The code is quite long but its running time is about 3 seconds.
2. I would like to display a message in activity 1 telling the user to wait for the calculation but it cannot be seen once activity 2 is active.
Thanks in advance.
Edit: What I had in mind was something along the lines of Erel's Action List where I can dim an object, set its properties and then run the sub to do the calculation. This is a code module. Will that also slove my problem 2?
Activity 1: Has a working OSM Map with all functions. The user can select two points on the map and get the route between them.
Activity 2: Takes the two points (from global variables in activity 1), calculates the route and returns a list of geopoints back to activity 1, again via a global variable.
My question is in two parts.
1. Is there any benefit of changing the second activity to a service or class? I am thinking along the lines of the HttpUtils.bas module. There is no interaction from the user and nothing really to see. The code is quite long but its running time is about 3 seconds.
2. I would like to display a message in activity 1 telling the user to wait for the calculation but it cannot be seen once activity 2 is active.
Thanks in advance.
Edit: What I had in mind was something along the lines of Erel's Action List where I can dim an object, set its properties and then run the sub to do the calculation. This is a code module. Will that also slove my problem 2?
Last edited: