Skip to content

Public Intents

Jiří M. aka Menion edited this page Aug 16, 2018 · 2 revisions

Basic information

Android Intent is mechanism through which applications in Android communicate. Almost every information that one application wants to send to another is distributed via Intent. But the Intent may also be used to start some action, e.g. to notify about some change and many other tasks.

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, and use definitions below:

Note: intent may have also defined package parameter that say "which application should receive it". In case, you use Locus Map Free (Beta) and Locus Map Pro at once, or in case of target platform Android 8+, it is necessary to set this parameter too.

Locus Map Free (Beta): menion.android.locus

Locus Map Pro: menion.android.locus.pro

Intents

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

  • 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, true/false value, default false

Add waypoint

locus.api.android.ACTION_TRACK_RECORD_ADD_WPT

Clone this wiki locally