ActivityRecognition | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Constants | Fields | Inherited Methods | [Expand All]
public class

# ActivityRecognition

extends Object

java.lang.Object
↳ | com.google.android.gms.location.ActivityRecognition

## Class Overview

The main entry point for activity recognition integration.

## Summary

Constants
String | CLIENT_NAME |

Fields
public static final Api<Api.ApiOptions.NoOptions> | API | Token to pass to `addApi(Api)` to enable ContextServices.
public static ActivityRecognitionApi | ActivityRecognitionApi | Entry point to the activity recognition APIs.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Constants

#### public static final String CLIENT_NAME

Constant Value: "activity_recognition"

## Fields

#### public static final Api<Api.ApiOptions.NoOptions> API

Token to pass to `addApi(Api)` to enable ContextServices.

#### public static ActivityRecognitionApi ActivityRecognitionApi

Entry point to the activity recognition APIs.