Code example for Marker

Methods: getId

			//Save original position of marker  
			public void onMarkerDragStart(Marker arg0) {
				originalPosition = markerLocations.get(arg0.getId());
        //Create save button 
        Button button = (Button) findViewById(;
        //Listener that saves the course to file when clicked 
        button.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
                if(isReadable && isWritable) {
                	File dir = new File(context.getExternalFilesDir(null), "courses.txt");
                	courseToFile(dir, courseName.getText().toString());
Connect your IDE to all the code out there  Get Codota for Java