Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

StandaloneConstants

public class StandaloneConstants
extends Object

java.lang.Object
   ↳ android.support.wearable.standalone.StandaloneConstants


This class is deprecated.
use the android.support.wear.utils.MetadataConstants provided by the Android Support Library Wear module instead.

Constants for Wear OS standalone apps.

Wear apps that do not require a phone side companion app to function can declare this in their AndroidManifest.xml file by setting the standalone meta-data element to true as shown in the following example. If this value is true, all users can discover this app regardless of what phone they have. If this value is false (or not set), only users with compatible Android phones can discover this app.

<meta-data
     android:name="com.google.android.wearable.standalone"
     android:value="true" />
 

Summary

Constants

String STANDALONE_METADATA_NAME

The name of the meta-data element in the Wear app manifest for specifying whether this app does not require a companion phone app.

Inherited methods

From class java.lang.Object

Constants

STANDALONE_METADATA_NAME

String STANDALONE_METADATA_NAME

The name of the meta-data element in the Wear app manifest for specifying whether this app does not require a companion phone app. The value should be set to "true" or "false".

Constant Value: "com.google.android.wearable.standalone"