Expert: Consult with Doctors and Book an Appointment using Huawei User Address in Android App
Overview
In this article, I will create a Doctor Consult Demo App along with the integration of Huawei Id and HMS Core Identity. Which provides an easy interface to Book an Appointment with doctor. Users can choose specific doctors and get the doctor details using Huawei User Address.
By Reading this article, you’ll get an overview of HMS Core Identity, including its functions, open capabilities, and business value.
HMS Core Identity Service Introduction
Hms Core Identity provides an easy interface to add or edit or delete user details and enables the users to authorize apps to access their addresses through a single tap on the screen. That is, app can obtain user addresses in a more convenient way.
Prerequisite
- Huawei Phone EMUI 3.0 or later
- Non-Huawei phones Android 4.4 or later (API level 19 or higher)
- Android Studio
- AppGallery Account
App Gallery Integration process
- Sign In and Create or Choose a project on AppGallery Connect portal.
2. Navigate to Project settings and download the configuration file.
3. Navigate to General Information, and then provide Data Storage location.
App Development
Create A New Project.
- Configure Project Gradle.
Configure App Gradle.
Configure AndroidManifest.xml.
Create Activity class with XML UI.
MainActivity:
This activity performs login with Huawei ID operation.
activity_main.xml:
HomeActivity:
This activity displays list of type of treatments so that user can choose and book an appointment.
activity_home.xml:
BookAppointmentActivity:
This activity performs Huawei User Address so user can get an details.
activity_book_appointment.xml:
App Build Result
Tips and Tricks
Identity Kit displays the HUAWEI ID registration or sign-in page first. The user can use the functions provided by Identity Kit only after signing in using a registered HUAWEI ID.
A maximum of 10 user addresses are allowed.
If HMS Core (APK) is installed on a mobile phone, check the version. If the version is earlier than 4.0.0, upgrade it to 4.0.0 or later. If the version is 4.0.0 or later, you can call the HMS Core Identity SDK to use the capabilities.
Conclusion
In this article, we have learned how to integrate HMS Core Identity in Android application. After completely read this article user can easily implement Huawei User Address APIs by HMS Core Identity So that User can book appointment with Huawei User Address.
Thanks for reading this article. Be sure to like and comment to this article, if you found it helpful. It means a lot to me.
References
HMS Identity Docs: https://developer.huawei.com/consumer/en/hms/huawei-identitykit/