Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Make Your Existing App Android Wear Compatible


Published on

Make Your Existing App Android Wear Compatible presented at jPrime conference which is held at Sofia, Bulgaria on 27th May, droidcon conference which is held at Thessaloniki, Greece on 11th September 2015.

Published in: Mobile
  • Be the first to comment

Make Your Existing App Android Wear Compatible

  1. 1. Android Wear Yep, it is wearable now!
  2. 2. Who am I? Co-Founder / CEO at Android&iOS Developer Co-Organizer at GDG Ankara Android Evangelist
  3. 3. ADD ‘15
  4. 4. Wearables are Everywhere You can catch the trend with Android Wear! It is easy to implement
  5. 5. Even for iOS now!
  6. 6. Notifications
  7. 7. If you send your notifications to your app, it appears on Wear, too!
 Only if you use NotificationCompat class
  8. 8. Example pI = PendingIntent.getActivity(this, 0, new Intent(this,MainActivity.class), 0);
 pIExtra = PendingIntent.getActivity(this, 0, new Intent(Intent.ACTION_DIAL),0);
  9. 9. Example NotificationCompat.Action action = new NotificationCompat.Action.Builder(android.R.dra wable.ic_btn_speak_now, "Reply!",pIExtra).build();

  10. 10. Example NotificationCompat.Builder mBuilder =
 new NotificationCompat.Builder(this)
 .setContentText("Test Mesasge!")
 .extend(new NotificationCompat.WearableExtender().addAction(action)); 
 NotificationManager mNotificationManager = (NotificationManager)this.getSystemService(Context.NOTIFICATION_SERVICE);
  11. 11. Example It will be shown on the handset as usual. But if an Android Wear is connected to the handset, it will be look like this! >
  12. 12. Android Wear Apps
  13. 13. EVEN
  14. 14. Setting Up!
  15. 15. Wear Emulator & Android Device Create an Android Wear emulator Install Android Wear app to your phone Connect your phone to your computer Open up Terminal and make the port forwarding via this command: 
 adb -d forward tcp:5601 tcp:5601 Run the Android Wear Emulator and select “pair with emulator” option from Android Wear app
  16. 16. It is DONE! You can start to develop for Android Wear, now! A little DEMO! :)
  17. 17. Thank You! Let’s keep in touch @orhunmertsimsek Slide: