1. Check out our companion app, Forums for Android! Download from Google Play

Collecting NMEA messages

Discussion in 'Application Development' started by leebanfield, Apr 23, 2010.

  1. leebanfield

    leebanfield Member
    Thread Starter

    Apr 20, 2010
    Hello fellow devs,

    I am having trouble receiving nmea messages in the emulator (not got the android phone yet - getting a Desire and a Legend).

    I have this in my onCreate method:

    LM = (LocationManager) getSystemService(Context.LOCATION_SERVICE);

    LM.addNmeaListener(new GpsStatus.NmeaListener() {
    public void onNmeaReceived(long timestamp, String nmea) {
    TextView t = (TextView)findViewById(R.id.notApplicable);
    t.setText( "NMEA INFO: "+Long.toString(timestamp) + " " + nmea);

    When I go the the console and type:

    telnet localhost 5554


    geo nmea $GPRMC,081836,A,3751.65,S,14507.36,E,000.0,360.0,130998,011.3,E*62

    The console returns: OK but the application doesn't show any sign that a nmea message has been received. Am I missing something obvious or and I simply trying to make the nmea receiver wrong?

    Thank you in advance


Share This Page