diff --git a/datalayer/sample/wear/src/main/res/values/wear.xml b/datalayer/sample/wear/src/main/res/raw/wear.xml similarity index 100% rename from datalayer/sample/wear/src/main/res/values/wear.xml rename to datalayer/sample/wear/src/main/res/raw/wear.xml diff --git a/datalayer/sample/wear/src/main/res/raw/wear_keep.xml b/datalayer/sample/wear/src/main/res/raw/wear_keep.xml new file mode 100644 index 0000000000..2c83269b73 --- /dev/null +++ b/datalayer/sample/wear/src/main/res/raw/wear_keep.xml @@ -0,0 +1,17 @@ + + + diff --git a/docs/datalayer-helpers-guide.md b/docs/datalayer-helpers-guide.md index 6856c0348f..c0984d5ffd 100644 --- a/docs/datalayer-helpers-guide.md +++ b/docs/datalayer-helpers-guide.md @@ -28,9 +28,10 @@ phone. 2. Add the capabilities - Add a `wear.xml` file in the `res/values` folder with the following content: + Add a `wear.xml` file in the `res/raw` folder with the following content. It needs to be + `res/raw` folder due to https://issuetracker.google.com/issues/348688201 - ``` + ```xml @@ -55,6 +56,11 @@ phone. ``` + and a `res/raw/wear_keep.xml` + + ```xml + + ``` on your wear and phone projects respectively.