Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Unresolved reference: START_EXERCISE #39

Open
Juileecp opened this issue Mar 29, 2023 · 0 comments
Open

Unresolved reference: START_EXERCISE #39

Juileecp opened this issue Mar 29, 2023 · 0 comments

Comments

@Juileecp
Copy link

I see this error : Unresolved reference: START_EXERCISE

Please find the code below for FitMainActivity.xml and shortcuts.xml. Am I missing anything here?

Screenshot 2023-03-29 at 2 18 28 PM

shortcuts.xml





<shortcut
    android:shortcutId="running"
    android:shortcutShortLabel="@string/activity_running">
    <capability-binding android:key="actions.intent.START_EXERCISE">
        <parameter-binding
            android:key="exercise.name"
            android:value="@array/runningSynonyms"/>
    </capability-binding>
</shortcut>

<shortcut
    android:shortcutId="walking"
    android:shortcutShortLabel="@string/activity_walking">
    <capability-binding android:key="actions.intent.START_EXERCISE">
        <parameter-binding
            android:key="exercise.name"
            android:value="@array/walkingSynonyms"/>
    </capability-binding>
</shortcut>

<shortcut
    android:shortcutId="cycling"
    android:shortcutShortLabel="@string/activity_cycling">
    <capability-binding android:key="actions.intent.START_EXERCISE">
        <parameter-binding
            android:key="exercise.name"
            android:value="@array/cyclingSynonyms"/>
    </capability-binding>
</shortcut>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant