Start "Other" activity with different activity type

Former Member
Former Member
Hi,

I have a Forerunner 235 so my watch natively supports Running, Biking and "Other" activity types. When I chose "Other", I have to go change the activity type to something else after it's finished.

I looked at the API but could not find if it's possible (maybe already done?) to launch the "Other" activity with another activity type without having to create an app.

I would like to create a widget from which I could choose from the predefined activity types and launch the "Other" activity. ActivityRecording.createSession() almost seems like what I want but I don't want to have to create an app and draw the data fields and all of this.

Is it possible?

Thanks.
  • You need to write a watch-app to specify SPORT_*. You can only use createSession in watch-apps.

    What sport are you looking at? There could already be an app in the store that will do what you want to do.
  • Former Member
    Former Member
    My goal was to allow many of the sports (SPORT_*) that make sense to record the speed like rowing, cross country skiing, ... If I write an app, do I have to redo everything like allowing to select data fields, recording everything, pausing, resuming, asking to user if he wants to save or discard the activity, ...? Or if it's possible to reuse what Garmin offers?

    I've looked around and it seems like Sport Selecter https://apps.garmin.com/en-US/apps/babc079f-d8cb-4b70-8441-18324baa7142 would be what I want but it doesn't have options to select data fields... So it might not be possible. Are there other know apps that do this better?

    Thanks.
  • When you write a watch-app, yes, you do have to do everything yourself. You have to do your own data fields, etc. And with app-settings, it's easy to specify what you want to display as "data fields". Many of the things you'd want to display (time, distance, speed, etc), are passed to the app in Activity.Info, and all you have to do is convert it to the proper units (metric vs statue) and format it for display. If you want to see how that works, my Simple Walk app has 3 "data screens" with 2 large "data fields" on each screen, and about 20 options for each of the fields. And along with that, you can also display things that aren't available in native data fields in native apps.

    One thing to note about using various "SPORT_*" types, is some sports need support in the FW, which may not exist on all watches.
  • Former Member
    Former Member
    Thank you for all the information! I will start looking at open source apps for inspiration then! :-)