This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| manual:advanced:locus_api:public_intents [2015/09/08 18:15] – mstupka | manual:advanced:locus_api:public_intents [2026/11/27 10:36] (current) – removed mstupka | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Public Intents ====== | ||
| - | ===== Basic information ===== | ||
| - | |||
| - | [[http:// | ||
| - | |||
| - | ===== How to ===== | ||
| - | |||
| - | Locus Map currently supports a few actions that may help you control Locus from different applications. If you want to create more complex system and you're familiar with Android developing, we suggest to use Locus API integrated into your own program. | ||
| - | |||
| - | Otherwise, use Tasker or any other application, | ||
| - | |||
| - | |||
| - | ---- | ||
| - | |||
| - | ==== Track record ==== | ||
| - | |||
| - | To control track recording, use **Actions** below. All actions have to be used as **Broadcast intent**. | ||
| - | |||
| - | === Start recording === | ||
| - | |||
| - | locus.api.android.ACTION_TRACK_RECORD_START | ||
| - | |||
| - | == Additional parameters == | ||
| - | |||
| - | * Item Ability to set recording profile | ||
| - | * key: INTENT_EXTRA_TRACK_REC_PROFILE | ||
| - | * value: **String**, name of profile | ||
| - | |||
| - | ---- | ||
| - | |||
| - | === Pause recording === | ||
| - | |||
| - | locus.api.android.ACTION_TRACK_RECORD_PAUSE | ||
| - | |||
| - | ---- | ||
| - | |||
| - | === Stop recording === | ||
| - | |||
| - | locus.api.android.ACTION_TRACK_RECORD_STOP | ||
| - | | ||
| - | == Additional parameters == | ||
| - | |||
| - | * Ability to save track automatically without asking for additional details | ||
| - | * key: INTENT_EXTRA_TRACK_REC_AUTO_SAVE | ||
| - | * value: **boolean**, | ||
| - | |||
| - | ---- | ||
| - | |||
| - | === Add waypoint === | ||
| - | |||
| - | locus.api.android.ACTION_TRACK_RECORD_ADD_WPT | ||