I am making an application thats consists of 2-3 activities and one more for the main menu.
Each of the 2-3 activities require my position to calculate distances, draw things on map etc.
My question is what is the right way to get my location.I mean i would prefer to get on the main screen when the application initialises and then pass it to the other activities whenever they are called. So the way to do that is to put it in extras when the activity is called? This means that by default my location will keep being updated as long as the application is running but only when i go back to the main screen I will get the new values?