I am trying to get NMEA strings from an android phone. Anyone got any ideas? I have got as far as thew below code (which at least compiles), but have no idea how to get the NMEA strings out of it all.
FNmeaMeaaageListener : JOnNmeaMessageListener;
FExecutor : JExecutor;
…
LocationManagerService := tAndroidHelper.Context.getSystemService(
TJContext.JavaClass.LOCATION_SERVICE);
FLocationManager := TJLocationManager.Wrap(
(LocationManagerService as ILocalObject).GetObjectID);
FLocationManager.addNmeaListener(FExecutor, FNmeaMeaaageListener);
FLocationManager.requestLocationUpdates(
TJLocationManager.JavaClass.GPS_PROVIDER, RefreshTime, 0, LocationListener,
TJLooper.JavaClass.getMainLooper);