You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the app is driveable with Hotkeys (#168), we could add also the possibility to drive it with Intent.
We could define custom actions and listen for them with the ActionsBroadcastReceiver.
Define a custom action is easy.
For example, to start recording:
Add the action filter to AndroidManifest.xml:
<receiverandroid:name=".ActionsBroadcastReceiver"android:exported="false">
<intent-filter>
<actionandroid:name="android.intent.action.ACTION_SHUTDOWN" />
<actionandroid:name="eu.basicairdata.graziano.gpslogger.ACTION_START_RECORDING" /><-- ADDED THIS LINE /-->
</intent-filter>
</receiver>
Add the case management to ActionBroadcastReceiver.java:
This way the app can be driven via intents, also in background, with task automation apps.
The code here above has been successfully tested with MacroDroid:
The implementation of this feature is possible only if the permission to access the background location is granted.
The text was updated successfully, but these errors were encountered:
Currently the app is driveable with Hotkeys (#168), we could add also the possibility to drive it with
Intent
.We could define custom actions and listen for them with the ActionsBroadcastReceiver.
Define a custom action is easy.
For example, to start recording:
Add the action filter to
AndroidManifest.xml
:Add the case management to
ActionBroadcastReceiver.java
:Add the action and register into the receiver in
GPSApplication.java
onCreate:This way the app can be driven via intents, also in background, with task automation apps.
The code here above has been successfully tested with MacroDroid:
The implementation of this feature is possible only if the permission to access the background location is granted.
The text was updated successfully, but these errors were encountered: