title: Android Storing Polygon and LongLat values between activites
body: <p>I am trying to create an android App which has 3 activities. The main screen contains a summary of information (static text currently) and one of the navigation links goes to a Map Activity.</p>
  
  <p>When I navigate back to the main menu and them back to the map it clears the Polygon from the map and also loses the route that the user had followed previously. This is because when the map activity is navigated to again it calls the create method again which initialised these values. </p>
  
  <p>Should I can initialising these somewhere else, or is it expected that I save them in SharedPreferences / Intents whenever the user navigates away from this activity, and re-load them when the create method is called again?</p>
  
  <p>Initially I am looking to persisting the following objects, it would be nice if I could have a custom class to hold all the user geo data and just load that when going back to the map.</p>
  
  <pre><code>private ArrayList&lt;LatLng&gt; routePoints;
  Polygon geoFencePolygon;
  </code></pre>
  
  <p>I have read several articles but I'm new to Android development so unsure on which approach is suitable to storing data like this as I want to ensure I'm doing things correctly.</p>
  
  <p>Eventually I need to keep the location tracking running even when they navigate to anywhere within the app but I am learning the basics first :)</p>