leebanfield
Lurker
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
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