# FitnessActivities

public class **FitnessActivities** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Constants representing different user activities, such as walking, running, and cycling.
Activities are used in `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session`,
`https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType`
and in `https://developers.google.com/android/reference/com/google/android/gms/fitness/request/DataReadRequest`.

A `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session`
associates an activity with all data that was recorded during a time interval, such as
`https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_HEART_RATE_BPM` taken while the user was doing `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#AEROBICS`,
or `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_CYCLING_WHEEL_RPM` measured while `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BIKING`.

Activities be stored and read using the `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_ACTIVITY_SEGMENT` data types. When samples are stored, these are automatically converted
into segments by the platform's default data source.

When reading data, the `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Bucket#TYPE_ACTIVITY_SEGMENT` and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Bucket#TYPE_ACTIVITY_TYPE` bucketing strategies can be used to aggregate data by the activities
happening at the time data was collected. This would allow, for instance, aggregating step
counts taken during running and those taken during walking separately, or to query the
average heart rate during each activity.

Each activity is represented by its name, which is a string constant. These constants are
also used in intents for tracking and visualizing activity data. Internally, activities are
stored as integers inside of `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataPoint`
for efficiency. You can convert between the `String` and `int`
representations for storage using `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataPoint.Builder#setActivityField(com.google.android.gms.fitness.data.Field,%20java.lang.String)` and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Value#asActivity()`.

### Constant Summary

|---|---|---|
| [String](https://developer.android.com/reference/java/lang/String.html) | [AEROBICS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#AEROBICS) | The user is performing aerobic exercises. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ARCHERY](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ARCHERY) | The user is doing archery, using a bow to shoot an arrow. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BADMINTON](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BADMINTON) | The user is playing badminton. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BASEBALL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BASEBALL) | The user is playing baseball. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BASKETBALL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BASKETBALL) | The user is playing basketball. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BIATHLON](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BIATHLON) | The user is practicing biathlon (combination of cross-country skiing and rifle shooting). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BIKING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BIKING) | The user is on a bicycle. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BIKING_HAND](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BIKING_HAND) | The user is handcycling (or handbiking). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BIKING_MOUNTAIN](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BIKING_MOUNTAIN) | The user is mountain biking. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BIKING_ROAD](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BIKING_ROAD) | The user is cycling on a road or other smooth surface. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BIKING_SPINNING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BIKING_SPINNING) | The user is indoor cycling (spinning) on a specialized stationary bike. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BIKING_STATIONARY](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BIKING_STATIONARY) | The user is cycling on a stationary bike. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BIKING_UTILITY](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BIKING_UTILITY) | The user is cycling as a means of transport. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [BOXING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#BOXING) | The user is boxing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [CALISTHENICS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#CALISTHENICS) | The user is performing calisthenics exercises. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [CIRCUIT_TRAINING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#CIRCUIT_TRAINING) | The user is performing circuit training exercises. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [CRICKET](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#CRICKET) | The user is playing cricket. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [CROSSFIT](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#CROSSFIT) | The user is performing Crossfit exercises. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [CURLING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#CURLING) | The user is practicing curling. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [DANCING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#DANCING) | The user is dancing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [DIVING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#DIVING) | The user is diving into water, from a platform or spring board. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ELEVATOR](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ELEVATOR) | The user is taking an elevator. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ELLIPTICAL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ELLIPTICAL) | The user is using an elliptical trainer or cross-trainer machine. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ERGOMETER](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ERGOMETER) | The user is using an ergometer machine. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ESCALATOR](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ESCALATOR) | The user is taking an escalator. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [EXTRA_STATUS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#EXTRA_STATUS) | Name for the String extra containing the status of an activity. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [FENCING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#FENCING) | The user is fencing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [FOOTBALL_AMERICAN](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#FOOTBALL_AMERICAN) | The user is playing American football (known as football in the United States). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [FOOTBALL_AUSTRALIAN](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#FOOTBALL_AUSTRALIAN) | The user is playing Australian-rules football. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [FOOTBALL_SOCCER](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#FOOTBALL_SOCCER) | The user is playing association football (known as soccer in the United States). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [FRISBEE_DISC](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#FRISBEE_DISC) | The user is playing with a Frisbee disc. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [GARDENING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#GARDENING) | The user is gardening. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [GOLF](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#GOLF) | The user is playing golf. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [GUIDED_BREATHING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#GUIDED_BREATHING) | The user is engaging in guided breathing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [GYMNASTICS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#GYMNASTICS) | The user is practicing gymnastics. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [HANDBALL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#HANDBALL) | The user is playing handball. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [HIGH_INTENSITY_INTERVAL_TRAINING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#HIGH_INTENSITY_INTERVAL_TRAINING) | The user is performing high intensity interval training (HIIT). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [HIKING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#HIKING) | The user is hiking. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [HOCKEY](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#HOCKEY) | The user is playing hockey. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [HORSEBACK_RIDING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#HORSEBACK_RIDING) | The user is horseback riding. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [HOUSEWORK](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#HOUSEWORK) | The user is doing house work. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ICE_SKATING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ICE_SKATING) | The user is ice-skating. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [INTERVAL_TRAINING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#INTERVAL_TRAINING) | The user is performing interval training. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [IN_VEHICLE](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#IN_VEHICLE) | The user is in a vehicle, such as a car. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [JUMP_ROPE](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#JUMP_ROPE) | The user is jumping rope. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [KAYAKING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#KAYAKING) | The user is kayaking. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [KETTLEBELL_TRAINING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#KETTLEBELL_TRAINING) | The user is training with a kettlebell. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [KICKBOXING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#KICKBOXING) | The user is kickboxing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [KICK_SCOOTER](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#KICK_SCOOTER) | The user is riding a kick scooter. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [KITESURFING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#KITESURFING) | The user is kite-surfing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [MARTIAL_ARTS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#MARTIAL_ARTS) | The user is practicing martial arts. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [MEDITATION](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#MEDITATION) | The user is meditating. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [MIME_TYPE_PREFIX](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#MIME_TYPE_PREFIX) | The common prefix for activity MIME types. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [MIXED_MARTIAL_ARTS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#MIXED_MARTIAL_ARTS) | The user is practicing mixed martial arts (MMA). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ON_FOOT](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ON_FOOT) | *This constant is deprecated. Use the more specific activity (for example `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING`, `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING`, or `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING_JOGGING`).* |
| [String](https://developer.android.com/reference/java/lang/String.html) | [OTHER](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#OTHER) | The user is performing a generic fitness activity, which isn't classified. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [P90X](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#P90X) | The user is performing P90X exercises. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [PARAGLIDING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#PARAGLIDING) | The user is paragliding. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [PILATES](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#PILATES) | The user is performing pilates exercises. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [POLO](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#POLO) | The user is playing polo (team sport on horseback). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [RACQUETBALL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RACQUETBALL) | The user is playing racquetball. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ROCK_CLIMBING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ROCK_CLIMBING) | The user is rock climbing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ROWING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ROWING) | The user is rowing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ROWING_MACHINE](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ROWING_MACHINE) | The user is using a rowing machine. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [RUGBY](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUGBY) | The user is playing rugby. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [RUNNING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING) | The user is running. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [RUNNING_JOGGING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING_JOGGING) | The user is jogging. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [RUNNING_SAND](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING_SAND) | The user is running on sand. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [RUNNING_TREADMILL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING_TREADMILL) | The user is running on a treadmill. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SAILING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SAILING) | The user is sailing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SCUBA_DIVING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SCUBA_DIVING) | The user is scuba diving. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKATEBOARDING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKATEBOARDING) | The user is skateboarding. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKATING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKATING) | The user is skating. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKATING_CROSS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKATING_CROSS) | The user is cross skating. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKATING_INDOOR](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKATING_INDOOR) | The user is skating in-doors. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKATING_INLINE](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKATING_INLINE) | The user is inline skating (roller-blading). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKIING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKIING) | The user is skiing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKIING_BACK_COUNTRY](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKIING_BACK_COUNTRY) | The user is back-country skiing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKIING_CROSS_COUNTRY](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKIING_CROSS_COUNTRY) | The user is cross-country skiing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKIING_DOWNHILL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKIING_DOWNHILL) | The user is downhill skiing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKIING_KITE](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKIING_KITE) | The user is kite skiing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SKIING_ROLLER](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SKIING_ROLLER) | The user is roller skiing (non-snow). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SLEDDING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SLEDDING) | The user is sledding. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SLEEP](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SLEEP) | The user is sleeping. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SLEEP_AWAKE](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SLEEP_AWAKE) | *This constant is deprecated. No longer valid activity for `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session` or `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_ACTIVITY_SEGMENT`. See `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/SleepStages#AWAKE` and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_SLEEP_SEGMENT`* |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SLEEP_DEEP](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SLEEP_DEEP) | *This constant is deprecated. No longer valid activity for `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session` or `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_ACTIVITY_SEGMENT`. `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/SleepStages#SLEEP_DEEP` and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_SLEEP_SEGMENT`* |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SLEEP_LIGHT](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SLEEP_LIGHT) | *This constant is deprecated. No longer valid activity for `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session` or `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_ACTIVITY_SEGMENT`. See `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/SleepStages#SLEEP_LIGHT` and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_SLEEP_SEGMENT`* |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SLEEP_REM](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SLEEP_REM) | *This constant is deprecated. No longer valid activity for `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session` or `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_ACTIVITY_SEGMENT`. See `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/SleepStages#SLEEP_REM` and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_SLEEP_SEGMENT`* |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SNOWBOARDING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SNOWBOARDING) | The user is snowboarding. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SNOWMOBILE](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SNOWMOBILE) | The user is on a snow mobile. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SNOWSHOEING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SNOWSHOEING) | The user is snow-shoeing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SOFTBALL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SOFTBALL) | The user is playing softball. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SQUASH](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SQUASH) | The user is playing Squash. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [STAIR_CLIMBING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#STAIR_CLIMBING) | The user is climbing stairs. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [STAIR_CLIMBING_MACHINE](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#STAIR_CLIMBING_MACHINE) | The user is using a stair-climbing machine. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [STANDUP_PADDLEBOARDING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#STANDUP_PADDLEBOARDING) | The user is on a stand-up paddle board. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [STATUS_ACTIVE](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#STATUS_ACTIVE) | Status indicating the activity has started. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [STATUS_COMPLETED](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#STATUS_COMPLETED) | Status indicating the activity has ended. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [STILL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#STILL) | The user is still (not moving). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [STRENGTH_TRAINING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#STRENGTH_TRAINING) | The user is strength training. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SURFING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SURFING) | The user is surfing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SWIMMING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SWIMMING) | The user is swimming. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SWIMMING_OPEN_WATER](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SWIMMING_OPEN_WATER) | The user is swimming in open waters. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [SWIMMING_POOL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#SWIMMING_POOL) | The user is swimming in a swimming pool. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [TABLE_TENNIS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#TABLE_TENNIS) | The user is playing table tennis (or ping-pong). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [TEAM_SPORTS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#TEAM_SPORTS) | The user is playing a team sport. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [TENNIS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#TENNIS) | The user is playing tennis. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [TILTING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#TILTING) | This is a synthetic activity used to indicate that the device angle relative to gravity changed significantly between the sample immediately before and immediately after the "tilting" sample. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [TREADMILL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#TREADMILL) | *This constant is deprecated. Use `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING_TREADMILL` or `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING_TREADMILL` instead.* |
| [String](https://developer.android.com/reference/java/lang/String.html) | [UNKNOWN](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#UNKNOWN) | The current activity is not known. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [VOLLEYBALL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#VOLLEYBALL) | The user is playing volleyball. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [VOLLEYBALL_BEACH](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#VOLLEYBALL_BEACH) | The user is playing beach volleyball. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [VOLLEYBALL_INDOOR](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#VOLLEYBALL_INDOOR) | The user is playing indoor volleyball. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WAKEBOARDING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WAKEBOARDING) | The user is wake boarding. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WALKING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING) | The user is walking. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WALKING_FITNESS](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING_FITNESS) | The user is walking at a moderate to high pace, for fitness. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WALKING_NORDIC](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING_NORDIC) | The user is performing Nordic walking (with poles). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WALKING_PACED](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING_PACED) | The user is performing paced walking. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WALKING_STROLLER](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING_STROLLER) | The user is walking while pushing a stroller. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WALKING_TREADMILL](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING_TREADMILL) | The user is walking on a treadmill |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WATER_POLO](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WATER_POLO) | The user is playing water polo. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WEIGHTLIFTING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WEIGHTLIFTING) | The user is weightlifting. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WHEELCHAIR](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WHEELCHAIR) | The user is on a wheel chair. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [WINDSURFING](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WINDSURFING) | The user is wind surfing. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [YOGA](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#YOGA) | The user is performing Yoga poses. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [ZUMBA](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#ZUMBA) | The users is performing Zumba exercises. |

### Public Method Summary

|---|---|
| static [String](https://developer.android.com/reference/java/lang/String.html) | [getMimeType](https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#getMimeType(java.lang.String))([String](https://developer.android.com/reference/java/lang/String.html) activity) Returns the MIME type for a particular activity. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Constants

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**AEROBICS**

The user is performing aerobic exercises.
Constant Value: "aerobics"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ARCHERY**

The user is doing archery, using a bow to shoot an arrow.
Constant Value: "archery"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BADMINTON**

The user is playing badminton.
Constant Value: "badminton"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BASEBALL**

The user is playing baseball.
Constant Value: "baseball"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BASKETBALL**

The user is playing basketball.
Constant Value: "basketball"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BIATHLON**

The user is practicing biathlon (combination of cross-country skiing and rifle
shooting).
Constant Value: "biathlon"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BIKING**

The user is on a bicycle.
Constant Value: "biking"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BIKING_HAND**

The user is handcycling (or handbiking).
Constant Value: "biking.hand"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BIKING_MOUNTAIN**

The user is mountain biking.
Constant Value: "biking.mountain"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BIKING_ROAD**

The user is cycling on a road or other smooth surface.
Constant Value: "biking.road"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BIKING_SPINNING**

The user is indoor cycling (spinning) on a specialized stationary bike.
Constant Value: "biking.spinning"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BIKING_STATIONARY**

The user is cycling on a stationary bike.
Constant Value: "biking.stationary"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BIKING_UTILITY**

The user is cycling as a means of transport.
Constant Value: "biking.utility"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**BOXING**

The user is boxing.
Constant Value: "boxing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**CALISTHENICS**

The user is performing calisthenics exercises.
Constant Value: "calisthenics"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**CIRCUIT_TRAINING**

The user is performing circuit training exercises.
Constant Value: "circuit_training"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**CRICKET**

The user is playing cricket.
Constant Value: "cricket"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**CROSSFIT**

The user is performing Crossfit exercises.
Constant Value: "crossfit"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**CURLING**

The user is practicing curling.
Constant Value: "curling"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**DANCING**

The user is dancing.
Constant Value: "dancing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**DIVING**

The user is diving into water, from a platform or spring board.
Constant Value: "diving"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ELEVATOR**

The user is taking an elevator.
Constant Value: "elevator"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ELLIPTICAL**

The user is using an elliptical trainer or cross-trainer machine.
Constant Value: "elliptical"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ERGOMETER**

The user is using an ergometer machine.
Constant Value: "ergometer"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ESCALATOR**

The user is taking an escalator.
Constant Value: "escalator"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**EXTRA_STATUS**

Name for the String extra containing the status of an activity. This is a mandatory
extra for `https://developers.google.com/android/reference/com/google/android/gms/fitness/Fitness#ACTION_TRACK`
intents, and holds one of the following values:

- `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#STATUS_ACTIVE` - the activity has started
- `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#STATUS_COMPLETED` - the activity has ended
Constant Value: "actionStatus"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**FENCING**

The user is fencing.
Constant Value: "fencing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**FOOTBALL_AMERICAN**

The user is playing American football (known as football in the United States).
Constant Value: "football.american"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**FOOTBALL_AUSTRALIAN**

The user is playing Australian-rules football.
Constant Value: "football.australian"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**FOOTBALL_SOCCER**

The user is playing association football (known as soccer in the United States).
Constant Value: "football.soccer"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**FRISBEE_DISC**

The user is playing with a Frisbee disc.
Constant Value: "frisbee_disc"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**GARDENING**

The user is gardening.
Constant Value: "gardening"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**GOLF**

The user is playing golf.
Constant Value: "golf"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**GUIDED_BREATHING**

The user is engaging in guided breathing.
Constant Value: "guided_breathing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**GYMNASTICS**

The user is practicing gymnastics.
Constant Value: "gymnastics"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**HANDBALL**

The user is playing handball.
Constant Value: "handball"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**HIGH_INTENSITY_INTERVAL_TRAINING**

The user is performing high intensity interval training (HIIT).
Constant Value: "interval_training.high_intensity"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**HIKING**

The user is hiking.
Constant Value: "hiking"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**HOCKEY**

The user is playing hockey.
Constant Value: "hockey"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**HORSEBACK_RIDING**

The user is horseback riding.
Constant Value: "horseback_riding"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**HOUSEWORK**

The user is doing house work.
Constant Value: "housework"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ICE_SKATING**

The user is ice-skating.
Constant Value: "ice_skating"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**INTERVAL_TRAINING**

The user is performing interval training.
Constant Value: "interval_training"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**IN_VEHICLE**

The user is in a vehicle, such as a car.
Constant Value: "in_vehicle"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**JUMP_ROPE**

The user is jumping rope.
Constant Value: "jump_rope"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**KAYAKING**

The user is kayaking.
Constant Value: "kayaking"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**KETTLEBELL_TRAINING**

The user is training with a kettlebell.
Constant Value: "kettlebell_training"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**KICKBOXING**

The user is kickboxing.
Constant Value: "kickboxing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**KICK_SCOOTER**

The user is riding a kick scooter.
Constant Value: "kick_scooter"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**KITESURFING**

The user is kite-surfing.
Constant Value: "kitesurfing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**MARTIAL_ARTS**

The user is practicing martial arts.
Constant Value: "martial_arts"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**MEDITATION**

The user is meditating.
Constant Value: "meditation"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**MIME_TYPE_PREFIX**

The common prefix for activity MIME types. The MIME type for a particular activity
type will be this prefix followed by the activity name. Examples:

```
 vnd.google.fitness.activity/walking
 vnd.google.fitness.activity/biking.mountain
 vnd.google.fitness.activity/jump_rope
 
```
The names for all activities are described by the constants in this class. The full MIME type can be computed using `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#getMimeType(java.lang.String)` Constant Value: "vnd.google.fitness.activity/"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**MIXED_MARTIAL_ARTS**

The user is practicing mixed martial arts (MMA).
Constant Value: "martial_arts.mixed"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ON_FOOT**

**This constant is deprecated.**   

Use the more specific activity (for example `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING`,
`https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING`,
or `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING_JOGGING`).
The user is on foot, walking, or running.
Constant Value: "on_foot"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**OTHER**

The user is performing a generic fitness activity, which isn't classified.

Unlike `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#UNKNOWN`,
which gives no indication as to what the user is doing, "other" indicates that the user
is performing a fitness-related activity.

The "other" activity is most useful to collect user input, for instance when an app
wants to give the user the ability to choose an activity that's not part of the regular
activity set for the app.

Note that an activity classified as "other" could represent any of the other
activities in this activity list, as well as an activity not in this list.
Constant Value: "other"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**P90X**

The user is performing P90X exercises.
Constant Value: "p90x"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**PARAGLIDING**

The user is paragliding.
Constant Value: "paragliding"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**PILATES**

The user is performing pilates exercises.
Constant Value: "pilates"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**POLO**

The user is playing polo (team sport on horseback).
Constant Value: "polo"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**RACQUETBALL**

The user is playing racquetball.
Constant Value: "racquetball"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ROCK_CLIMBING**

The user is rock climbing.
Constant Value: "rock_climbing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ROWING**

The user is rowing.
Constant Value: "rowing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ROWING_MACHINE**

The user is using a rowing machine.
Constant Value: "rowing.machine"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**RUGBY**

The user is playing rugby.
Constant Value: "rugby"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**RUNNING**

The user is running.
Constant Value: "running"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**RUNNING_JOGGING**

The user is jogging.
Constant Value: "running.jogging"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**RUNNING_SAND**

The user is running on sand.
Constant Value: "running.sand"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**RUNNING_TREADMILL**

The user is running on a treadmill.
Constant Value: "running.treadmill"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SAILING**

The user is sailing.
Constant Value: "sailing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SCUBA_DIVING**

The user is scuba diving.
Constant Value: "scuba_diving"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKATEBOARDING**

The user is skateboarding.
Constant Value: "skateboarding"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKATING**

The user is skating.
Constant Value: "skating"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKATING_CROSS**

The user is cross skating.
Constant Value: "skating.cross"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKATING_INDOOR**

The user is skating in-doors.
Constant Value: "skating.indoor"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKATING_INLINE**

The user is inline skating (roller-blading).
Constant Value: "skating.inline"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKIING**

The user is skiing.
Constant Value: "skiing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKIING_BACK_COUNTRY**

The user is back-country skiing.
Constant Value: "skiing.back_country"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKIING_CROSS_COUNTRY**

The user is cross-country skiing.
Constant Value: "skiing.cross_country"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKIING_DOWNHILL**

The user is downhill skiing.
Constant Value: "skiing.downhill"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKIING_KITE**

The user is kite skiing.
Constant Value: "skiing.kite"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SKIING_ROLLER**

The user is roller skiing (non-snow).
Constant Value: "skiing.roller"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SLEDDING**

The user is sledding.
Constant Value: "sledding"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SLEEP**

The user is sleeping.
Constant Value: "sleep"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SLEEP_AWAKE**

**This constant is deprecated.**   

No longer valid activity for `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session`
or `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_ACTIVITY_SEGMENT`. See `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/SleepStages#AWAKE`
and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_SLEEP_SEGMENT`
The user is in an awake period in the middle of a sleep session.
Constant Value: "sleep.awake"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SLEEP_DEEP**

**This constant is deprecated.**   

No longer valid activity for `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session`
or `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_ACTIVITY_SEGMENT`. `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/SleepStages#SLEEP_DEEP`
and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_SLEEP_SEGMENT`
The user is in a deep sleep cycle.
Constant Value: "sleep.deep"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SLEEP_LIGHT**

**This constant is deprecated.**   

No longer valid activity for `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session`
or `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_ACTIVITY_SEGMENT`. See `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/SleepStages#SLEEP_LIGHT`
and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_SLEEP_SEGMENT`
The user is in a light sleep cycle.
Constant Value: "sleep.light"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SLEEP_REM**

**This constant is deprecated.**   

No longer valid activity for `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/Session`
or `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_ACTIVITY_SEGMENT`. See `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/SleepStages#SLEEP_REM`
and `https://developers.google.com/android/reference/com/google/android/gms/fitness/data/DataType#TYPE_SLEEP_SEGMENT`
The user is in a REM sleep cycle. \*
Constant Value: "sleep.rem"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SNOWBOARDING**

The user is snowboarding.
Constant Value: "snowboarding"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SNOWMOBILE**

The user is on a snow mobile.
Constant Value: "snowmobile"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SNOWSHOEING**

The user is snow-shoeing.
Constant Value: "snowshoeing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SOFTBALL**

The user is playing softball.
Constant Value: "softball"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SQUASH**

The user is playing Squash.
Constant Value: "squash"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**STAIR_CLIMBING**

The user is climbing stairs.
Constant Value: "stair_climbing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**STAIR_CLIMBING_MACHINE**

The user is using a stair-climbing machine.
Constant Value: "stair_climbing.machine"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**STANDUP_PADDLEBOARDING**

The user is on a stand-up paddle board.
Constant Value: "standup_paddleboarding"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**STATUS_ACTIVE**

Status indicating the activity has started.
Constant Value: "ActiveActionStatus"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**STATUS_COMPLETED**

Status indicating the activity has ended.
Constant Value: "CompletedActionStatus"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**STILL**

The user is still (not moving).
Constant Value: "still"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**STRENGTH_TRAINING**

The user is strength training.
Constant Value: "strength_training"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SURFING**

The user is surfing.
Constant Value: "surfing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SWIMMING**

The user is swimming.
Constant Value: "swimming"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SWIMMING_OPEN_WATER**

The user is swimming in open waters.
Constant Value: "swimming.open_water"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**SWIMMING_POOL**

The user is swimming in a swimming pool.
Constant Value: "swimming.pool"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**TABLE_TENNIS**

The user is playing table tennis (or ping-pong).
Constant Value: "table_tennis"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**TEAM_SPORTS**

The user is playing a team sport.
Constant Value: "team_sports"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**TENNIS**

The user is playing tennis.
Constant Value: "tennis"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**TILTING**

This is a synthetic activity used to indicate that the device angle relative to
gravity changed significantly between the sample immediately before and immediately
after the "tilting" sample. This often occurs when a device is picked up from a desk or
when a user who is sitting stands up.
Constant Value: "tilting"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**TREADMILL**

**This constant is deprecated.**   

Use `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#WALKING_TREADMILL` or `https://developers.google.com/android/reference/com/google/android/gms/fitness/FitnessActivities#RUNNING_TREADMILL` instead.
The user is on a treadmill (either walking or running).
Constant Value: "treadmill"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**UNKNOWN**

The current activity is not known. In this case, the activity could be any of the
activities described in this class, or a completely different one.
Constant Value: "unknown"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**VOLLEYBALL**

The user is playing volleyball.
Constant Value: "volleyball"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**VOLLEYBALL_BEACH**

The user is playing beach volleyball.
Constant Value: "volleyball.beach"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**VOLLEYBALL_INDOOR**

The user is playing indoor volleyball.
Constant Value: "volleyball.indoor"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WAKEBOARDING**

The user is wake boarding.
Constant Value: "wakeboarding"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WALKING**

The user is walking.
Constant Value: "walking"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WALKING_FITNESS**

The user is walking at a moderate to high pace, for fitness.
Constant Value: "walking.fitness"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WALKING_NORDIC**

The user is performing Nordic walking (with poles).
Constant Value: "walking.nordic"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WALKING_PACED**

The user is performing paced walking.
Constant Value: "walking.paced"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WALKING_STROLLER**

The user is walking while pushing a stroller.
Constant Value: "walking.stroller"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WALKING_TREADMILL**

The user is walking on a treadmill
Constant Value: "walking.treadmill"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WATER_POLO**

The user is playing water polo.
Constant Value: "water_polo"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WEIGHTLIFTING**

The user is weightlifting.
Constant Value: "weightlifting"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WHEELCHAIR**

The user is on a wheel chair.
Constant Value: "wheelchair"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**WINDSURFING**

The user is wind surfing.
Constant Value: "windsurfing"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**YOGA**

The user is performing Yoga poses.
Constant Value: "yoga"

#### public static final [String](https://developer.android.com/reference/java/lang/String.html)
**ZUMBA**

The users is performing Zumba exercises.
Constant Value: "zumba"

## Public Methods

#### public static [String](https://developer.android.com/reference/java/lang/String.html) **getMimeType** ([String](https://developer.android.com/reference/java/lang/String.html) activity)

Returns the MIME type for a particular activity. The MIME type is used in intents
for `https://developers.google.com/android/reference/com/google/android/gms/fitness/SessionsApi.ViewIntentBuilder` and `https://developers.google.com/android/reference/com/google/android/gms/fitness/Fitness#ACTION_TRACK`.

##### Parameters

| activity | The desired activity. |
|---|---|