From f46471e304f98d7cbf0aa4e7c23b9fe29b3952a6 Mon Sep 17 00:00:00 2001 From: Luan Nguyen Date: Mon, 2 Mar 2015 14:26:47 -0800 Subject: docs: Remove deprecated Fitness information from this doc. Guides have been moved to developers.google.com/fit bug: 19387145 Change-Id: I6d14d2e643e68d923e135555e0b3c78060e22b8e --- docs/html/guide/components/intents-common.jd | 453 --------------------------- 1 file changed, 453 deletions(-) (limited to 'docs/html/guide/components') diff --git a/docs/html/guide/components/intents-common.jd b/docs/html/guide/components/intents-common.jd index 05e3133..964f075 100644 --- a/docs/html/guide/components/intents-common.jd +++ b/docs/html/guide/components/intents-common.jd @@ -50,15 +50,6 @@ page.tags="IntentFilter"
  • Open a specific type of file
  • -
  • Fitness -
      -
    1. Start/Stop a bike ride
    2. -
    3. Start/Stop a run
    4. -
    5. Start/Stop a workout
    6. -
    7. Show heart rate
    8. -
    9. Show step count
    10. -
    -
  • Local Actions
    1. Call a car
    2. @@ -1348,391 +1339,6 @@ Framework guide.

      - - - - - -

      Fitness

      - -

      Start/Stop a bike ride

      - - -
      -
      - - - -
      -

      Google Now

      -
        -
      • "start cycling"
      • -
      • "start my bike ride"
      • -
      • "stop cycling"
      • -
      -
      - -

      To track a bike ride, use the - -ACTION_TRACK action with the "vnd.google.fitness.activity/biking" -MIME type and set the - -EXTRA_STATUS extra to - -STATUS_ACTIVE when starting and to - -STATUS_COMPLETED when stopping.

      - -
      -
      Action
      -
      - ACTION_TRACK
      - -
      Data URI
      -
      None
      - -
      MIME Type
      -
      "vnd.google.fitness.activity/biking"
      - -
      Extras
      -
      -
      -
      - EXTRA_STATUS
      -
      A string with the value - STATUS_ACTIVE when starting and - - STATUS_COMPLETED when stopping.
      -
      -
      -
      - - -

      Example intent:

      -
      -public void startBikeRide() {
      -    Intent intent = new Intent(FitnessIntents.ACTION_TRACK)
      -            .setType("vnd.google.fitness.activity/biking")
      -            .putExtra(FitnessIntents.EXTRA_STATUS, FitnessIntents.STATUS_ACTIVE);
      -    if (intent.resolveActivity(getPackageManager()) != null) {
      -        startActivity(intent);
      -    }
      -}
      -
      - - -

      Example intent filter:

      -
      -<activity ...>
      -    <intent-filter>
      -        <action android:name="vnd.google.fitness.TRACK" />
      -        <data android:mimeType="vnd.google.fitness.activity/biking" />
      -        <category android:name="android.intent.category.DEFAULT" />
      -    </intent-filter>
      -</activity>
      -
      - - - - - -

      Start/Stop a run

      - - -
      -
      - - - -
      -

      Google Now

      -
        -
      • "track my run"
      • -
      • "start running"
      • -
      • "stop running"
      • -
      -
      - -

      To track a run, use the - -ACTION_TRACK action with the "vnd.google.fitness.activity/running" -MIME type and set the - -EXTRA_STATUS extra to - -STATUS_ACTIVE when starting and to - -STATUS_COMPLETED when stopping.

      - -
      -
      Action
      -
      - ACTION_TRACK
      - -
      Data URI
      -
      None
      - -
      MIME Type
      -
      "vnd.google.fitness.activity/running"
      - -
      Extras
      -
      -
      -
      - EXTRA_STATUS
      -
      A string with the value - STATUS_ACTIVE when starting and - - STATUS_COMPLETED when stopping.
      -
      -
      -
      - - -

      Example intent:

      -
      -public void startRun() {
      -    Intent intent = new Intent(FitnessIntents.ACTION_TRACK)
      -            .setType("vnd.google.fitness.activity/running")
      -            .putExtra(FitnessIntents.EXTRA_STATUS, FitnessIntents.STATUS_ACTIVE);
      -    if (intent.resolveActivity(getPackageManager()) != null) {
      -        startActivity(intent);
      -    }
      -}
      -
      - - -

      Example intent filter:

      -
      -<activity ...>
      -    <intent-filter>
      -        <action android:name="vnd.google.fitness.TRACK" />
      -        <data android:mimeType="vnd.google.fitness.activity/running" />
      -        <category android:name="android.intent.category.DEFAULT" />
      -    </intent-filter>
      -</activity>
      -
      - - - - -

      Start/Stop a workout

      - - -
      -
      - - - -
      -

      Google Now

      -
        -
      • "start a workout"
      • -
      • "track my workout"
      • -
      • "stop workout"
      • -
      -
      - -

      To track a workout, use the - -ACTION_TRACK action with the "vnd.google.fitness.activity/other" -MIME type and set the - -EXTRA_STATUS extra to - -STATUS_ACTIVE when starting and to - -STATUS_COMPLETED when stopping.

      - -
      -
      Action
      -
      - ACTION_TRACK
      - -
      Data URI
      -
      None
      - -
      MIME Type
      -
      "vnd.google.fitness.activity/other"
      - -
      Extras
      -
      -
      -
      - EXTRA_STATUS
      -
      A string with the value - STATUS_ACTIVE when starting and - - STATUS_COMPLETED when stopping.
      -
      -
      -
      - - -

      Example intent:

      -
      -public void startWorkout() {
      -    Intent intent = new Intent(FitnessIntents.ACTION_TRACK)
      -            .setType("vnd.google.fitness.activity/other")
      -            .putExtra(FitnessIntents.EXTRA_STATUS, FitnessIntents.STATUS_ACTIVE);
      -    if (intent.resolveActivity(getPackageManager()) != null) {
      -        startActivity(intent);
      -    }
      -}
      -
      - - -

      Example intent filter:

      -
      -<activity ...>
      -    <intent-filter>
      -        <action android:name="vnd.google.fitness.TRACK" />
      -        <data android:mimeType="vnd.google.fitness.activity/other" />
      -        <category android:name="android.intent.category.DEFAULT" />
      -    </intent-filter>
      -</activity>
      -
      - - - - -

      Show heart rate

      - - -
      -
      - - - -
      -

      Google Now

      -
        -
      • "what's my heart rate?"
      • -
      • "what's my bpm?"
      • -
      -
      - -

      To show the user's heart rate, use the - -ACTION_VIEW action with the -"vnd.google.fitness.data_type/com.google.heart_rate.bpm" MIME type.

      - -
      -
      Action
      -
      - ACTION_VIEW
      - -
      Data URI
      -
      None
      - -
      MIME Type
      -
      "vnd.google.fitness.data_type/com.google.heart_rate.bpm"
      - -
      Extras
      -
      None
      -
      - - -

      Example intent:

      -
      -public void showHeartRate() {
      -    Intent intent = new Intent(FitnessIntents.ACTION_VIEW)
      -            .setType("vnd.google.fitness.data_type/com.google.heart_rate.bpm");
      -    if (intent.resolveActivity(getPackageManager()) != null) {
      -        startActivity(intent);
      -    }
      -}
      -
      - - -

      Example intent filter:

      -
      -<activity ...>
      -    <intent-filter>
      -        <action android:name="vnd.google.fitness.VIEW" />
      -        <data android:mimeType="vnd.google.fitness.data_type/com.google.heart_rate.bpm" />
      -        <category android:name="android.intent.category.DEFAULT" />
      -    </intent-filter>
      -</activity>
      -
      - - - - - -

      Show step count

      - - -
      -
      - - - -
      -

      Google Now

      -
        -
      • "how many steps have I taken?"
      • -
      • "what's my step count?"
      • -
      -
      - -

      To show the user's step count, use the - -ACTION_VIEW action with the -"vnd.google.fitness.data_type
      /com.google.step_count
      .cumulative"
      MIME -type.

      - -
      -
      Action
      -
      - ACTION_VIEW
      - -
      Data URI
      -
      None
      - -
      MIME Type
      -
      "vnd.google.fitness.data_type/com.google.step_count.cumulative"
      - -
      Extras
      -
      None
      -
      - - -

      Example intent:

      -
      -public void showStepCount() {
      -    Intent intent = new Intent(FitnessIntents.ACTION_VIEW)
      -            .setType("vnd.google.fitness.data_type/com.google.step_count.cumulative");
      -    if (intent.resolveActivity(getPackageManager()) != null) {
      -        startActivity(intent);
      -    }
      -}
      -
      - - -

      Example intent filter:

      -
      -<activity ...>
      -    <intent-filter>
      -        <action android:name="vnd.google.fitness.VIEW" />
      -        <data android:mimeType="vnd.google.fitness.data_type/com.google.step_count.cumulative" />
      -        <category android:name="android.intent.category.DEFAULT" />
      -    </intent-filter>
      -</activity>
      -
      - - - - - - - -

      Local Actions

      Call a car

      @@ -2695,65 +2301,6 @@ about declaring each intent filter, click on the action description.

      {@link android.content.Intent#ACTION_CALL Intent.ACTION_CALL} - Fitness - -

      Start/stop a bike ride

      -
        -
      • "start cycling"
      • -
      • "start my bike ride"
      • -
      • "stop cycling"
      • -
      - - - FitnessIntents.ACTION_TRACK - - - -

      Start/stop a run

      -
        -
      • "track my run"
      • -
      • "start running"
      • -
      • "stop running"
      • -
      - - - FitnessIntents.ACTION_TRACK - - - -

      Start/stop a workout

      -
        -
      • "start a workout"
      • -
      • "track my workout"
      • -
      • "stop workout"
      • -
      - - - FitnessIntents.ACTION_TRACK - - - -

      Show heart rate

      -
        -
      • "what's my heart rate"
      • -
      • "what's my bpm"
      • -
      - - - FitnessIntents.ACTION_VIEW - - - -

      Show step count

      -
        -
      • "how many steps have I taken"
      • -
      • "what's my step count"
      • -
      - - - FitnessIntents.ACTION_VIEW - - Local

      Book a car

      -- cgit v1.1