Nishant Srivastava
Nishant is a Software Engineer/Founding Team Member (at) OmniLabs, Inc. with 4+ years of experience in Android SDK Engineering and DSP(Audio). He is the Lead Organizer (at) Google Developer Group, New Delhi.
Nishant Srivastava
Android Dev/Interaction Designer
Organizer@GDG New Delhi
Information that moves with you
Android Wear organizes your information, suggests what you need, and shows it to you before you even ask. Get messages from your friends, meeting notifications, and weather updates at a glance....
Android Wear is a customised android version for wearable devices such as smart watches
Notification, most useful information in a managed manner.
Voice Search, straight answers to questions
Sensors, monitors Health & Fitness
Next Multi-Screen Technology
http://developer.android.com/wear
http://developer.android.com/sdk/installing/index.html?pkg=tools
Get Started!
...we have a problem
Eclipse.
Working on eclipse for developing apps for Android Wear is a very tricky job (period).
For those of you who like to play with FIRE , and plunge into the pit of Hell ...well , good news you can still build Android Wear apps on Eclipse. Follow the below blog to setup and build Android Wear Apps :
https://medium.com/@tangtungai/how-to-develop-and-package-android-wear-app-using-eclipse-ef1b34126a5d
Notifications are one of the two major design principles of Android Wear: Suggest and Demand
int notificationId = 001;
// Build intent for notification content
Intent viewIntent = new Intent(this, ViewEventActivity.class);
viewIntent.putExtra(EXTRA_EVENT_ID, eventId);
PendingIntent viewPendingIntent =
PendingIntent.getActivity(this, 0, viewIntent, 0);
NotificationCompat.Builder notificationBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_event)
.setContentTitle(eventTitle)
.setContentText(eventLocation)
.setContentIntent(viewPendingIntent);
// Get an instance of the NotificationManager service
NotificationManagerCompat notificationManager =
NotificationManagerCompat.from(this);
// Build the notification and issues it with notification manager.
notificationManager.notify(notificationId, notificationBuilder.build());
Here is a short snippet that shows how to create a notification:
A word of advice, make sure all information you deliver follows the principle of being timely, relevant, and specific.
-Messaging API
-Fire and Forget, 1 way request
-Can send only a String
-Use Case example : Control Media Player from wearable
-Data API
-Sync data between handheld & wearable
-Payload is a byte array( 100KB per Item), But you can use
map interface to access data
-Use Case example : Send Photo preview to wearable from
handheld
nishant@silverpush.co
http://slides.com/nisrulz/kickstartandroidwear#/
By Nishant Srivastava
Kickstart into Android Wear World
Nishant is a Software Engineer/Founding Team Member (at) OmniLabs, Inc. with 4+ years of experience in Android SDK Engineering and DSP(Audio). He is the Lead Organizer (at) Google Developer Group, New Delhi.