Skip to main content

Posts

Showing posts from June, 2014

Android Wear Tutorial

So Android Wear is going to be announced in hours at the Google I/O 2014 event. To get started with Android Wear, follow these steps (You must sign up to the Android Wear Developer Preview, download the Android Wear Preview jar file and add the library to your project in order to continue): 1. Set up the Android Wear emulator after downloading the Android Wear System Image and related Android Wear packages from the Android SDK Manager 2. Start the emulator. 3. Download the Android Wear Preview app after opting in as a tester. 4. Use this command to connect the emulator to your phone via USB adb - d forward tcp : 5601 tcp : 5601 Simple Example of Wearable Notification 1. Create a sample notification using this template. Notice that I've wrapped up notificationBuilder with WearableNotifications.Builder. 2. NotificationManagerCompat is mandatory to ensure code compatibility with lower versions of Android. 3. NotificationCompat . Builder notificationBuilder =