Code example for Marker

Methods: getId

0
				 
			} 
			//Save original position of marker  
			@Override 
			public void onMarkerDragStart(Marker arg0) {
				originalPosition = markerLocations.get(arg0.getId());
				 
			} 
        	 
        }); 
         
        //Create save button 
        Button button = (Button) findViewById(R.id.save);
        //Listener that saves the course to file when clicked 
        button.setOnClickListener(new View.OnClickListener() {
            @SuppressLint("NewApi") 
			public void onClick(View v) {
                if(isReadable && isWritable) {
                	File dir = new File(context.getExternalFilesDir(null), "courses.txt");
                	courseToFile(dir, courseName.getText().toString());
                } else {