Posts

Showing posts from 2016

Developing Garmin SmartWatch Apps with ConnectIQ Platform-Part 2

Image
This is part 2 of blog series that covers a tutorial on developing Wearables App for Garmin SmartWatches. In this part of the tutorial we will write the logic to display Meeting Alerts in the watch widget that we created in part-1 of this tutorial. Lets create a Monkey-C class called MeetingAlert.mc in the CalendarAlerts ConnectIQ Eclipse Project. MeetingAlert class will represent a single MeetingAlert record that we will receive from the Android Device over BLE. using Toybox.System as Sys; class MeetingAlert { //mTime - meeting time //mDate - meeting date //mSubject - meeting subject //mLocation -meeting location hidden var mTime, mDate, mSubject, mLocation; function getMeetingTime() { return mTime; } function getMeetingDate() { return mDate; } function getMeetingSubject() { return mSubject; } function getMeetingLocation() { return mLocation; } } We can assume that the calendar event details are received from Android Device whenever t

Developing Garmin SmartWatch Apps with ConnectIQ Platform-Part 1

Image
Recently I was involved in developing apps for Gramin Wearables . Being new to the wearables world I found it relatively easier to develop apps for Garmin Wearables then what I had thought earlier. Hence I would like to share my experience via this blog series. I will take you through the step by step process of developing a simple watch widget that synchronizes with an Android phone's Google Calendar to send out meeting alerts and reminders on your Garmin Watch. Apps for Garmin Wearables are developed using the Garmin ConnectIQ SDK   and are programmed using  Monkey C language  . You are already familiar with Monkey C if you are familiar with languages like Java or Objective C. Introduction to  Monkey C language   highlights the basic difference between other languages and Monkey C. Its a short and precise tutorial, I would suggest to give a quick read in case you are planning to develop apps for Garmin. The Problem Statement Lets say you own an Android Phone and you have c

Building Secure RESTful Webservices

Recently I delivered a webinar on "Building Secure RESTFul Webservices" on Techgig  which received a very good feedback based on the Techgig survey. The webinar column was published on Gizmodo India  as well. Here is a list of key takeaways from the webinar How HTTPS work in detail and how to implement HTTP BASIC Authentication. What is Mutual SSL Authentication and how to implement it. What kind of damage can be done with security attacks like Man in the Middle and Replay Attack.  Authenticating user without passing credentials over the wire Preventing Man in the Middle attacks using Signature verification Preventing Replay Attacks using timestamp and cryptographic nonce What are OAuth 1a and OAuth 2 The code samples (written in Java) related to this webinar can be found at  https://github.com/abhilshit/bookstore   https://github.com/abhilshit/bookstore-client I am embedding the webinar recording for quick access below. Building Secure RESTful Web