android.support.wearable.activity
Class ConfirmationActivity

java.lang.Object
  extended by Activity
      extended by android.support.wearable.activity.ConfirmationActivity

public class ConfirmationActivity
extends Activity

This Activity is used to display confirmation animations after the user completes an action on the wearable. There are three types of confirmations: Success: the action was completed successfully on the wearable. Failure: the action failed to complete. Open on Phone: the action has caused something to display on the phone, or in order to complete the action, the user will need to go to their phone to continue.

It is the responsibility of the wearable application developer to determine whether the action has succeeded, failed, or requires the user to go to their phone, and trigger the appropriate confirmation.

To invoke a confirmation animation, start this Activity using an Intent populated with the following extras:


Field Summary
static java.lang.String EXTRA_ANIMATION_TYPE
           
static java.lang.String EXTRA_MESSAGE
           
static int FAILURE_ANIMATION
           
static int OPEN_ON_PHONE_ANIMATION
           
static int SUCCESS_ANIMATION
           
 
Constructor Summary
ConfirmationActivity()
           
 
Method Summary
 void onCreate(Bundle savedInstanceState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTRA_MESSAGE

public static final java.lang.String EXTRA_MESSAGE
See Also:
Constant Field Values

EXTRA_ANIMATION_TYPE

public static final java.lang.String EXTRA_ANIMATION_TYPE
See Also:
Constant Field Values

SUCCESS_ANIMATION

public static final int SUCCESS_ANIMATION
See Also:
Constant Field Values

OPEN_ON_PHONE_ANIMATION

public static final int OPEN_ON_PHONE_ANIMATION
See Also:
Constant Field Values

FAILURE_ANIMATION

public static final int FAILURE_ANIMATION
See Also:
Constant Field Values
Constructor Detail

ConfirmationActivity

public ConfirmationActivity()
Method Detail

onCreate

public void onCreate(Bundle savedInstanceState)