YGPS/src/com/mediatek/ygps/NmeaParser.java
public synchronized void parse(String record) {
        log("parse:" + record);
        mCurrentTalker = checkTalker(record);
        /*
         * only parse all GSV sentences, then notify user
         */
        if (mParseState == STATE_PARSE_GSV && !record.contains("GSV")) {
//            sendMessage(SV_UPDATE);
            reportSVupdate();
        }
        if (record.contains("RMC")) {

            mParseState = STATE_PARSE_RMC;
            try {
                parseRMC(record);
            } catch (NumberFormatException e) {
                log("Exception in parseRMC()");
            }
        } else if (record.contains("GSA")) {
            mParseState = STATE_PARSE_GSA;
            try {
                parseGSA(record);
            } catch (NumberFormatException e) {
                log("Exception in parseGSA()" + e);
            }
        } else if (record.contains("GGA")) {
            mParseState = STATE_PARSE_GGA;
            try {
                parseGGA(record);
            } catch (NumberFormatException e) {
                log("Exception in parseGGA()" + e);
            }
        } else if (record.contains("GSV")) {
            mParseState = STATE_PARSE_GSV;
            try {
                parseGSV(record);
            } catch (NumberFormatException e) {
                log("Exception in parseGSV()" + e);
            }
        } else {
            mParseState = STATE_PARSE_OTHERS;
            //log("undefined format");
        }

    }
/**
     * Parse NMEA logs.
     * @param record The NMEA log sentence to parse
     */
Parse NMEA logs.
@param record The NMEA log sentence to parse
Parse NMEA logs . @param record The NMEA log sentence to parse
public synchronized void parse(String record) {
        log("parse:" + record);
        mCurrentTalker = checkTalker(record);
        /*
         * only parse all GSV sentences, then notify user
         */
        if (mParseState == STATE_PARSE_GSV && !record.contains("GSV")) {
            reportSVupdate();
        }
        if (record.contains("RMC")) {
            mParseState = STATE_PARSE_RMC;
            try {
                parseRMC(record);
            } catch (NumberFormatException e) {
                log("Exception in parseRMC()");
            }
        } else if (record.contains("GSA")) {
            mParseState = STATE_PARSE_GSA;
            try {
                parseGSA(record);
            } catch (NumberFormatException e) {
                log("Exception in parseGSA()" + e);
            }
        } else if (record.contains("GGA")) {
            mParseState = STATE_PARSE_GGA;
            try {
                parseGGA(record);
            } catch (NumberFormatException e) {
                log("Exception in parseGGA()" + e);
            }
        } else if (record.contains("GSV")) {
            mParseState = STATE_PARSE_GSV;
            try {
                parseGSV(record);
            } catch (NumberFormatException e) {
                log("Exception in parseGSV()" + e);
            }
        } else {
            mParseState = STATE_PARSE_OTHERS;
        }
    }
public synchronized void parse ( String record ) { log ( "parse:" + record ) ; mCurrentTalker = checkTalker ( record ) ; /*
         * only parse all GSV sentences, then notify user
         */ if ( mParseState == STATE_PARSE_GSV && ! record . contains ( "GSV" ) ) { reportSVupdate ( ) ; } if ( record . contains ( "RMC" ) ) { mParseState = STATE_PARSE_RMC ; try { parseRMC ( record ) ; } catch ( NumberFormatException e ) { log ( "Exception in parseRMC()" ) ; } } else if ( record . contains ( "GSA" ) ) { mParseState = STATE_PARSE_GSA ; try { parseGSA ( record ) ; } catch ( NumberFormatException e ) { log ( "Exception in parseGSA()" + e ) ; } } else if ( record . contains ( "GGA" ) ) { mParseState = STATE_PARSE_GGA ; try { parseGGA ( record ) ; } catch ( NumberFormatException e ) { log ( "Exception in parseGGA()" + e ) ; } } else if ( record . contains ( "GSV" ) ) { mParseState = STATE_PARSE_GSV ; try { parseGSV ( record ) ; } catch ( NumberFormatException e ) { log ( "Exception in parseGSV()" + e ) ; } } else { mParseState = STATE_PARSE_OTHERS ; } }
Parse NMEA logs.
Parse NMEA logs .
//            sendMessage(SV_UPDATE); //log("undefined format");