Cada ves que se hace un cambio de activar un api en el Manager APis, tambien se debe de bajar de nuevo el agconnect-services.json a mi me dio muchos problemas por eso al integrar nuevos kits
Introducci贸n a HMS Core
Pasos para el desarrollo de aplicaciones con Huawei
Debugging en la nube con Huawei
驴Qu茅 es HMS Core?
Creaci贸n del proyecto en Android Studio
Creaci贸n de la aplicaci贸n en App Gallery Connect
Configuraci贸n de firma SHA-256
Configuraci贸n de APIs
Configuraci贸n de Android Studio y Gradle
Probando la sincronizaci贸n de la aplicaci贸n
Autenticaci贸n con HMS Account Kit
Dise帽ando nuestra pantalla de login
Agregando los m茅todos de autenticaci贸n
Verificando la autenticaci贸n
Agregando el m茅todo de logout
Construyendo nuestra c谩mara de selfies con HMS ML Kit
Machine Learning con Huawei
Agregando los permisos para acceder a la c谩mara
Dise帽ando la pantalla personalizada de la c谩mara
Creando la capa de gr谩ficos de la c谩mara
Creando el layout para nuestro rostro
Creando el layout del lente de la c谩mara
Creando nuestra actividad de c谩mara
Agregando nuestra c谩mara personalizada a la actividad
Agregando los m茅todos de verificaci贸n de rostro
Agregando la detecci贸n de rostro y sonrisa individual
Agregando la detecci贸n de rostro y sonrisa grupal
Tomar nuestra imagen y agregar un m茅todo de re-toma de foto
Guardar la foto en nuestra galeria
Aplicando notificaciones push con HMS Push kit
Crear el servicio de push notifications
Agregar el servicio de HMS Push kit
Verificar la conectividad de las notificaciones en App Gallery Connect
Conclusiones y consejos
Tips y soluci贸n de inconvenientes frecuentes
驴Qu茅 m谩s tiene Huawei?
You don't have access to this class
Keep learning! Join and start boosting your career
When developing applications that incorporate Huawei technologies, it is essential to understand how to configure the APIs to maximize their functionalities. In this guide, we will show you how to configure them and download the agconnect-services.json
file, key to link your project with AppGallery Connect.
We start by checking the App Gallery Connect, where you should already have a previously created application. Make sure that the SHA-256 certificate fingerprint is configured correctly. This fingerprint is vital for secure linking between the application (both in debug and release mode) and the App Gallery Connect.
Also, make sure you have configured the data storage location. For projects in Latin America, it is recommended to choose Singapore, which hosts the relevant servers for this region. When configuring, note that the Singapore area also serves Africa, Middle East and Central Asia, highlighting its importance as a data center.
Once you have configured the storage location, go to the "Manage APIs" tab in your AppGallery Connect project. Here you will be able to activate the "kits" you are going to use. For our selfie project, activate the following:
agconnect-services.json
file?After activating the necessary kits, it's time to download the agconnect-services.json
file. This file is crucial for connecting your project in Android Studio with AppGallery Connect:
Download: In AppGallery Connect, look in the overview section for the agconnect-services.json
file and download it.
Integration: Move it from the downloads folder to your project's app
folder in Android Studio.
Verification: Open Android Studio and check that the agconnect-services.json
file is correctly in the app
folder. This will ensure that the project can effectively communicate with AppGallery Connect.
Finally, head to your project's build.gradle
file in Android Studio to add the kits you need for the development of your selfie app. This completes the initial configuration required to work with the Huawei APIs.
With these guidelines, you will have laid a solid foundation for your application development using Huawei's tools. Remember that constant practice will allow you to master these settings and optimize your future applications. Keep learning and exploring the world of mobile development!
Contributions 3
Questions 0
Cada ves que se hace un cambio de activar un api en el Manager APis, tambien se debe de bajar de nuevo el agconnect-services.json a mi me dio muchos problemas por eso al integrar nuevos kits
Usar singapur como Data Store Location para servicios en Latino Am茅rica
Me marca este error al intentar probarlo en un celular redmi note 7 fisico.
D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.pquinonezv.hselfiecamera activity: com.pquinonezv.hselfiecamera.auth.AuthActivity@aa23e08
D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.pquinonezv.hselfiecamera activity: com.pquinonezv.hselfiecamera.auth.AuthActivity@aa23e08
I/Toast: Show toast from OpPackageName:com.pquinonezv.hselfiecamera, PackageName:com.pquinonezv.hselfiecamera
I/HMSSDK_HiAnalyticsUtil: not ChinaROM
I/HMSSDK_HiAnalyticsUtil: Get OOBE failed
Want to see more contributions, questions and answers from the community?