Code example for Marker

Methods: setPosition, setVisible

0
		toStreet.setOnItemClickListener(new OnItemClickListener() {
			@Override 
      public void onItemClick(AdapterView<?> a0, View a1, int a2, long a3) {
				Address address = (Address) a0.getAdapter().getItem(a2);
				Log.d(TAG, "Set arrival Marker: " + address.getAddressLine(0));
				toMarker.setPosition(new LatLng(address.getLatitude(), address.getLongitude()));
				toMarker.setVisible(true);
				InputMethodManager imm = (InputMethodManager)getSystemService(
			      Context.INPUT_METHOD_SERVICE);
				imm.hideSoftInputFromWindow(toStreet.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
      } 
		}); 
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.main, menu);
		return true; 
	} 
 
	private void testGeocoding() {