YGPS/src/com/mediatek/ygps/YgpsActivity.java
private void saveNMEALog(String nmea) {
        boolean bSaved = true;
        try {
            mOutputNMEALog.write(nmea.getBytes(), 0, nmea.getBytes().length);
            mOutputNMEALog.flush();
        } catch (IOException e) {
            bSaved = false;
            Log.v("@M_" + TAG, "write NMEA log to file failed! error:" + e.getMessage());
        } finally {
            if (!bSaved) {
                finishSavingNMEALog();
                Toast.makeText(this, "Please check your SD card",
                        Toast.LENGTH_LONG).show();
            }
        }

    }
/**
     * Record nmea log to output file.
     *
     * @param nmea
     *            The nmea log to save
     */
Record nmea log to output file.
@param nmea
The nmea log to save
Record nmea log to output file . @param nmea The nmea log to save
private void saveNMEALog(String nmea) {
        boolean bSaved = true;
        try {
            mOutputNMEALog.write(nmea.getBytes(), 0, nmea.getBytes().length);
            mOutputNMEALog.flush();
        } catch (IOException e) {
            bSaved = false;
            Log.v("@M_" + TAG, "write NMEA log to file failed! error:" + e.getMessage());
        } finally {
            if (!bSaved) {
                finishSavingNMEALog();
                Toast.makeText(this, "Please check your SD card",
                        Toast.LENGTH_LONG).show();
            }
        }
    }
private void saveNMEALog ( String nmea ) { boolean bSaved = true ; try { mOutputNMEALog . write ( nmea . getBytes ( ) , 0 , nmea . getBytes ( ) . length ) ; mOutputNMEALog . flush ( ) ; } catch ( IOException e ) { bSaved = false ; Log . v ( "@M_" + TAG , "write NMEA log to file failed! error:" + e . getMessage ( ) ) ; } finally { if ( ! bSaved ) { finishSavingNMEALog ( ) ; Toast . makeText ( this , "Please check your SD card" , Toast . LENGTH_LONG ) . show ( ) ; } } }
Record nmea log to output file.
Record nmea log to output file .