Hello @SarithaV-0610 , Thanks for reaching out to us!
Azure IoT SDK in Java, this is the recommended way for Android ! Azure IoT Hub Java SDK officially supports the Android Things platform. Ref.
Below are few recommended documentation links on this topic to get started,
Develop for Android Things platform using Azure IoT SDKs
Install Azure IoT device and service SDKs for Java
Azure IoT Hub device SDK for Java:
• Add to Maven project
• Source code
• API reference
• Module reference
Azure IoT Hub service SDK for Java:
• Add to Maven project
• Source code
• API reference
Azure Provisioning device and service SDKs for Java:
• Add to Maven project
• Source code
• API reference
FYI, just in case looking for IOS, the below is the reference docs link,
Azure IoT Hub service SDK for iOS:
• Install from CocoaPod
• Samples
Please let us know if you need further help in this matter.