Introducci贸n a HMS Core

1

Pasos para el desarrollo de aplicaciones con Huawei

2

Debugging en la nube con Huawei

3

驴Qu茅 es HMS Core?

4

Creaci贸n del proyecto en Android Studio

5

Creaci贸n de la aplicaci贸n en App Gallery Connect

6

Configuraci贸n de firma SHA-256

7

Configuraci贸n de APIs

8

Configuraci贸n de Android Studio y Gradle

9

Probando la sincronizaci贸n de la aplicaci贸n

Autenticaci贸n con HMS Account Kit

10

Dise帽ando nuestra pantalla de login

11

Agregando los m茅todos de autenticaci贸n

12

Verificando la autenticaci贸n

13

Agregando el m茅todo de logout

Construyendo nuestra c谩mara de selfies con HMS ML Kit

14

Machine Learning con Huawei

15

Agregando los permisos para acceder a la c谩mara

16

Dise帽ando la pantalla personalizada de la c谩mara

17

Creando la capa de gr谩ficos de la c谩mara

18

Creando el layout para nuestro rostro

19

Creando el layout del lente de la c谩mara

20

Creando nuestra actividad de c谩mara

21

Agregando nuestra c谩mara personalizada a la actividad

22

Agregando los m茅todos de verificaci贸n de rostro

23

Agregando la detecci贸n de rostro y sonrisa individual

24

Agregando la detecci贸n de rostro y sonrisa grupal

25

Tomar nuestra imagen y agregar un m茅todo de re-toma de foto

26

Guardar la foto en nuestra galeria

Aplicando notificaciones push con HMS Push kit

27

Crear el servicio de push notifications

28

Agregar el servicio de HMS Push kit

29

Verificar la conectividad de las notificaciones en App Gallery Connect

Conclusiones y consejos

30

Tips y soluci贸n de inconvenientes frecuentes

31

驴Qu茅 m谩s tiene Huawei?

You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesi贸n a prueba de IA

Antes: $249

Currency
$209
Suscr铆bete

Termina en:

0 D铆as
22 Hrs
35 Min
54 Seg

Configuraci贸n de APIs

7/31
Resources

How to configure Huawei APIs for your selfie project?

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.

What is the first thing to do in App Gallery 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.

How to enable Huawei Kids APIs?

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:

  • AccountKit: This kit allows you to manage user authentication in the application.
  • PushKit: This is essential for messaging services and push notifications.
  • Machine LearningKit: This should already be enabled, and is crucial for operating the machine learning engine used in the selfie app.

How to download and place the 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:

  1. Download: In AppGallery Connect, look in the overview section for the agconnect-services.json file and download it.

  2. Integration: Move it from the downloads folder to your project's app folder in Android Studio.

  3. 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.

What to do after configuration in Android Studio?

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

Sort by:

Want to see more contributions, questions and answers from the community?

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