1. Download our Official Android App: Forums for Android!

Apps Collecting NMEA messages

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

  1. leebanfield

    leebanfield Lurker
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    5
    Joined:
    Apr 20, 2010

    Apr 20, 2010
    5
    1
    26
    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

    then

    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
     

    Advertisement

Share This Page

Loading...