diff --git a/tizen/README.md b/tizen/README.md index 4f313af8..38e84e2c 100644 --- a/tizen/README.md +++ b/tizen/README.md @@ -2,6 +2,8 @@ Provides an interface for connecting to Tizen smartwatches via Samsung's Accessory SDK. +### This platform is currently EXPERIMENTAL and may be prone to crashes and other errors + ## Usage Under the hood, this plugin still uses Samsung's Accessory SDK, so you'll need to be familiar with that first. Find out more here: https://developer.samsung.com/galaxy-accessory/overview.html @@ -11,30 +13,7 @@ To use this plugin, you'll want to create an instance of `TizenPlatform`. The re val tizenPlatform = TizenPlatform(context) ``` -At this stage, you still need to create your own Accessory Service Provider xml file. -Make sure to declare 'message' as a supported feature, and point `serviceImpl` to `TizenAccessoryAgent`. You should have something like the this: -```xml - - - - - - - - - - - - - -``` +The Accessory application name defaults to `@string/app_name`, however you can override it by setting `@string/accessory_app_name` string yourself. Find out more via [Samsung's programming guide](https://developer.samsung.com/galaxy-accessory/programming-guide.html). diff --git a/tizen/src/main/AndroidManifest.xml b/tizen/src/main/AndroidManifest.xml index be9f3dc1..31697e76 100644 --- a/tizen/src/main/AndroidManifest.xml +++ b/tizen/src/main/AndroidManifest.xml @@ -8,6 +8,10 @@ + + diff --git a/tizen/src/main/res/values/strings.xml b/tizen/src/main/res/values/strings.xml new file mode 100644 index 00000000..9d17bc16 --- /dev/null +++ b/tizen/src/main/res/values/strings.xml @@ -0,0 +1,5 @@ + + + + @string/app_name + \ No newline at end of file diff --git a/tizen/src/main/res/xml/accessory_services_profile.xml b/tizen/src/main/res/xml/accessory_services_profile.xml new file mode 100644 index 00000000..01894e04 --- /dev/null +++ b/tizen/src/main/res/xml/accessory_services_profile.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + +