question: public final void doExport ( final String trackName , final File target , int verbosity ) throws IOException { Log . i ( TAG , "Exporting gpx file" + target . getAbsolutePath ( ) ) ; mDbHelper = new DatabaseHelper ( mContext . getApplicationContext ( ) ) ; final BufferedWriter bw = new BufferedWriter ( new FileWriter ( target ) ) ; bw . write ( XML_HEADER ) ; bw . write ( TAG_GPX ) ; if ( verbosity == VERBOSITY_TRACK_AND_WAYPOINTS || verbosity == VERBOSITY_WAYPOINTS_ONLY || verbosity == VERBOSITY_ALL ) { writeWaypoints ( bw ) ; } if ( verbosity == VERBOSITY_TRACK_AND_WAYPOINTS || verbosity == VERBOSITY_ALL ) { writeTrackpoints ( trackName , bw ) ; } bw . flush ( ) ; if ( verbosity == VERBOSITY_ALL ) { writeWifis ( bw ) ; bw . flush ( ) ; writeCells ( bw ) ; bw . flush ( ) ; } bw . write ( TAG_GPX_CLOSE ) ; bw . close ( ) ; mDbHelper . close ( ) ; Log . i ( TAG , "Finished building gpx file" ) ; }
target:  Writes the GPX file