Enough said, let’s start real coding :).
First let’s show what we are building.
Let’s start by creating a new project and add the Android platform to it.
This will create a NativeScript application with the correct project structure for Android applications. We need to change things a bit to make it support Android Wear.
Go to AboutTime/platforms/android directory and edit the AndroidManifest.xml file.
Add this line next to the <uses-permission ...> statements
and change the application theme to
Go to AboutTime/app directory and remove all files except App_Resources directory.
Create a bootstrap.js file in AboutTime/app directory and require the mainpage from it
This creates a MainActivity class and sets an click handler on the Button defined in layouts xml file below.
Create the UI layout for the MainActivity.
Go to AboutTime/platforms/android/res directory and create a layout directory there
Create a file activity_main.xml in the layout directory AboutTime/platforms/android/res/layout/activity_main.xml.
Build your first Android Wear project with NativeScript
Deploy your application to Android Wear Emulator and start the AboutTime application
The NativeScript Team