(09-25-2017, 05:09 AM)trondkj Wrote: Hi
Have anybody got any usb gps dongles to work with android on Pine64+? I would love to have positioning to work on my Pine64 with touchscreen. If anybody have tried it and got it to work, it would be nice to know
Trond Kjetil
Hi,
I got a bu-353 GPS working with an app and mock position.
The gps did not show up as an tty device, so i could not get the Android_GPS_lib64 working..
I used this lib to read the serial.
https://github.com/felHR85/UsbSerial
Then this NMEA parser to parse the data from serial to something readable:
https://gist.github.com/javisantana/1326141
In android manifest the following permissions should be set:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
I used Androids LocationManager to make a mock position.
On the device i had to enable developer mode (Settings -> About tablet, click 7 times on "Build number"), and then allow my app to set mock position in settings -> developer options.