Stay organized with collections
Save and categorize content based on your preferences.
StandaloneConstants
public
class
StandaloneConstants
extends Object
This class is deprecated.
use the androidx.wear.utils.MetadataConstants
provided by the Jetpack Wear library 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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public static final 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"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-11 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."]]