On my phone, the GPS reception is very unreliable. Sometimes it's very accurate, sometimes it just doesn't work. I bought an external GPS receiver and I am using Bluetooth GNSS to make the connection. It works perfectly!
However, I sometimes forget to make the connection through the app. So when I step into my car, I enable the bluetooth receiver and start driving, only to find out several minutes later that there isn't a connection with the phone.
In this change, I introduced a broadcast receiver that listens for the intent bluetooth.CONNECT and when received, it starts the connection with the GPS receiver. By default, the app configuration is used to make the connection, but there's also a possibility to override it with data in the intent. This way, you can configure an automated task (e.g. using Tasker) which triggers when a device is connected. E.g.: the mac address of the device can be transferred which is handy when you have multiple bluetooth devices.
Changes:
Upgrade build tools and kotlin to newest versions
Add README.md in android to describe the steps needed to build the project and configure Tasker
Introduce broadcast receiver to handle the incoming intent
On my phone, the GPS reception is very unreliable. Sometimes it's very accurate, sometimes it just doesn't work. I bought an external GPS receiver and I am using Bluetooth GNSS to make the connection. It works perfectly!
However, I sometimes forget to make the connection through the app. So when I step into my car, I enable the bluetooth receiver and start driving, only to find out several minutes later that there isn't a connection with the phone.
In this change, I introduced a broadcast receiver that listens for the intent
bluetooth.CONNECT
and when received, it starts the connection with the GPS receiver. By default, the app configuration is used to make the connection, but there's also a possibility to override it with data in the intent. This way, you can configure an automated task (e.g. using Tasker) which triggers when a device is connected. E.g.: the mac address of the device can be transferred which is handy when you have multiple bluetooth devices.Changes: