Using Azure IOT SDK In Android

Azure is a great IoT platform. They have SDK’s in all major languages. At OnRue Technology Solutions  when we integrated Azure with Android for our product DataWheels , we faced a lot of surprises. I am highlighting key changes we did for using Azure SDK seamlessly and successfully in Android OS. When we started, we did not think that we need to make changes as Android uses Java and Azure Java SDK works fine independently. However, the problem is that Azure SDK’s were developed using Java8 features, namely Lambda expressions and Android did not support Java 8 (atleast till August 2016 when we developed). Note that we used the master branch from Azure SDK git hub Here

We used SDK for both registering a device as well sending a message to Azure IOT Hub. Read below to know what we did. We used Android API version 18 as minimum SDK version and 23 as target SDK version and tested in KitKat device(Samsung Galaxy S3)  Continue reading “Using Azure IOT SDK In Android”