ActivityRecognition

public class ActivityRecognition extends Object

The main entry point for activity recognition integration.

Constant Summary

String CLIENT_NAME

Field Summary

public static final Api<Api.ApiOptions.NoOptions> API Token to pass to addApi(Api ) to enable ContextServices.
public static final ActivityRecognitionApi ActivityRecognitionApi This field was deprecated. Use GoogleApi-based API ActivityRecognitionClient instead.

Public Method Summary

static ActivityRecognitionClient
getClient(Activity activity)
Create a new instance of ActivityRecognitionClient for use in an Activity.
static ActivityRecognitionClient
getClient(Context context)
Create a new instance of ActivityRecognitionClient for use in a non-activity Context.

Inherited Method Summary

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 final ActivityRecognitionApi ActivityRecognitionApi

This field was deprecated.
Use GoogleApi-based API ActivityRecognitionClient instead.

Entry point to the activity recognition APIs.

Public Methods

public static ActivityRecognitionClient getClient (Activity activity)

Create a new instance of ActivityRecognitionClient for use in an Activity.

public static ActivityRecognitionClient getClient (Context context)

Create a new instance of ActivityRecognitionClient for use in a non-activity Context.