title: Activity to allow users to create AND edit a marker on google maps
body: <p>Recently, I have been trying to create an application with <strong>android studio</strong> utilising Google Map's API. </p>
  
  <p><strong>Aim:</strong> 
  <strong>The aim is to be able to click on the map, new activity shows up with text fields allowing users to edit the name, snippet, location etc (properties of the marker), and finally create the marker at the point of where they clicked WITH the properties they entered.</strong> </p>
  
  <p>I've been researching for hours however no luck, can't seem to even create a new marker from a separate class. </p>
  
  <p>Map Click Code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> public void onMapClick(LatLng latLng) {
                  
                  //Coordinates of click
                  LatLng new_pos = new LatLng(latLng.latitude, latLng.longitude);
  
                  //Needs to be user-editable through an activity or pop up window
                  String name = "name";
                  String snippet = "snippet";
  
                  mMap.addMarker(new MarkerOptions()
                          .position(new_pos)
                          .title(name)
                          .snippet(snippet));
                  mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(lat, lon)));
  
              }</code></pre>
  </div>
  </div>
  </p>
  
  <p>As you can see above, this is the <strong>click event of the map</strong>, it creates a marker and sets properties to it. </p>
  
  <p>However, i need this marker's properties, such as the name and snippet, to be editable by the user through a textfield upon creation. </p>
  
  <p>Any ideas to how i should approach this issue? </p>