Skip to main content

Android Wearable #3

The Android Wear APIs are delivered via Google Play services and the Android Support Library. This is a broad topic that's worth exploring in-depth, but there's a couple of libraries and classes that are worth getting acquainted with straight away.
The easiest way to start developing for wearables is to create a handheld app that can send notifications to a paired wearable device.
Extending your notifications in this way requires several classes, which you can find in the Android v4 Support Library:
  • NotificationCompat.WearableExtender: This class allows you to add wearable-specific extensions to your notifications, which is essential for providing users with the best possible Android Wear experience.
  • NotificationCompat.Builder: This builder class ensures your notifications display properly, both on handheld and wearable devices.
  • NotificationManagerCompat: This class ensures your notifications properly support wearable features. When it's time to deliver your notifications, make sure you use NotificationManagerCompat instead of NotificationManager. If you do use NotificationManager, it's possible someNotificationCompat.WearableExtender features won't function properly.
  • NotificationCompat.Action.WearableExtender: This class extends notification actions to wearables. Each action must have a title, an icon that represents the action, and an Intent that's sent whenever the user invokes the action.
To add the Android v4 Support Library to your development environment, open theAndroid SDK Manager, and then download and install either the Android Support Library package (if you’re an Eclipse user) or Android Support Repository (if you're on Android Studio).
The Android SDK Manager
This unofficial library helps you design a wearable-friendly user interface for your app by including user interface widgets that illustrate best practices.
One particularly important component of this support library, is the BoxInsetLayoutlayout manager, which lets you use the same layout on both rectangular and round screens.
If you're using Android Studio, then this library is automatically included when you use the Project Wizard to create a wearable app.

Comments

Popular posts from this blog

How To Re -Engineer

Metadata course/North Carolina

Christopher Eck, The latest information from  Metadata: Organizing and Discovering Information  by  The University of North Carolina at Chapel Hill  on Coursera. Congratulations on surviving the first week of Metadata: Organizing and Discovering Information! As some of you have noted on the discussion forums, unit 1 was pretty long. But don't panic! Unit 1 is the longest unit -- all of the remaining units are shorter (though some units are longer than others). Many MOOCs (including this one) are created for a broad general audience: maybe you have some background in Information Science, and if so, great! But I wanted to create this course to be accessible even to students with no Information Science background. Which is why unit 1 was so long: I tried to fill in some of that background. And hopefully pique your interest in Information Science! But now that that background is background, we'll start building on it. In unit 2, we will look at our first ex...

Translation Via Google

Podfather Designs   Google Translate About Google Translate How to use Google Translate Modify your keyboard to search in other languages Translate webpages and documents Help improve Google Translate General information for webmasters Google Translate app for Android Google Translate app for iOS Website Translator plugin for websites About the Website Translator plugin Add the Website Translator plugin to your site Help improve the automatic translation of your site Link to a translated version of your site Embedding the plugin in intranet pages Manage translation suggestions from site visitors Invite editors to help manage your page’s translations Google Translate partners European Patent Office Google Translate About Google Translate Google Translate is a free translation tool, which uses computer programs to translate between languages. This means that not all translations will be...