Skip to content

Commit

Permalink
post: Installing HMS Core in Android Studio Emulator (#69)
Browse files Browse the repository at this point in the history
* chore: add Edgar Barragan to authors
* post: Installing HMS Core in Android Studio Emulator
* chore: add .bundle/config and .asset_pipeline to .gitignore
* ref: provide ability to specify max-height when using 'components/figure.html'
* chore: adjustments based on PR review
* chore: correct text to please linter
* chore: typo
  • Loading branch information
arthurpalves authored Oct 12, 2023
1 parent 907e293 commit faeefef
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 3 deletions.
7 changes: 6 additions & 1 deletion _data/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Craig Walker:
Marco Santarelli:
name : "Marco Santarelli"
avatar : "assets/images/avatars/marco.jpeg"
bio : "Director of Frontend"
bio : "Director of Frontend & Mobile"

Dilshan Fernando:
name : "Dilshan Fernando"
Expand Down Expand Up @@ -79,3 +79,8 @@ Ankit Pant:
name : "Ankit Pant"
avatar : "assets/images/avatars/ankit_pant.png"
bio : "Senior Frontend Engineer - R&D"

Edgar Barragan:
name : "Edgar Garcia Barragan"
avatar : "assets/images/avatars/edgar_barragan.png"
bio : "Senior Android Engineer - Customer Success"
2 changes: 1 addition & 1 deletion _includes/components/figure.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<figure class="figure d-block text-center mb-4">
<img class="figure-img img-fluid" src="{{ include.url }}" alt="{{ include.alt }}">
<img class="figure-img img-fluid" src="{{ include.url }}" alt="{{ include.alt }}" {% if include.max-height %} style="max-height:{{ include.max-height }}" {% endif %}>
<figcaption class="figure-caption">{{ include.description }}</figcaption>
</figure>
2 changes: 1 addition & 1 deletion _posts/2023-09-29-the-better-way-ruby-gems.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Consider, for a moment, you’ve aligned the versions of all the tools above, in

# Solution

There is a way to maintain all these alignments, regardless of how many projects you’re working on, without changes to your global setup. A solution where, for every project, you can make use of different versions of Ruby, Cocoapods, Fastlane etc. Only by making use of:
A solution to maintain all these alignments, regardless of how many projects you’re working on, without changes to your global setup. A solution where, for every project, you can make use of different versions of Ruby, Cocoapods, Fastlane etc. Only by making use of:

* Ruby Gems; and
* [rbenv](https://github.com/rbenv/rbenv) - A Ruby version manager tool.
Expand Down
67 changes: 67 additions & 0 deletions _posts/2023-09-30-installing-hms-core-in-as-emulator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
title: "Installing HMS Core in Android Studio Emulator"
excerpt: "If you want to test your HMS implementation and you do not have a Huawei device, it is easy to mock it and test these services in the Android Studio emulator."
tags: Mobile Android Huawei HMS
authors:
- Edgar Barragan
header:
teaser: /assets/images/post/hms-core/hms_core_banner.png
teaser_alt: Huawei logo
category: Android
---

![](/assets/images/post/hms-core/hms_core_banner.png)

# Introduction

This is a quick guide with few and simple instructions on installing HMS Core in Android Studio Emulator. If you want to test your HMS implementation and you do not have a Huawei device, this is your best option.

# Steps

**1.** Create a new device with only Google APIs, no Play Store. For this example, a Pixel 4a with API 31 is being used.

Choose a device without Play Store.

![](/assets/images/post/hms-core/hms_core_step_1.png)

Choose a version of Android with Google APIs.

![](/assets/images/post/hms-core/hms_core_step_1.1.png)

**2.** Install the Huawei AppGallery APK

You can either Google or install it from the [Huawei Consumer website](http://consumer.huawei.com/en/mobileservices/appgallery/).

Download the AppGallery APK.

{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_2.png" max-height="600px" %}

Allow installing unknown apps in Chrome browser and install the app.

{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_2.1.png" max-height="600px" %}

**3.** Install HMS Core.

Open the AppGallery, you will be prompted to install HMS Core. Proceed with the installation.

{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_3.png" max-height="600px" %}

**4.** Allow the installation of unknown apps.

Once the HMS Core has been downloaded, you need to allow installing unknown apps from AppGallery to install it.

{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_4.png" max-height="600px" %}

**5.** Verify it all went well.

Press “Done”, then press the back button, you will see the AppGallery login screen.

{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_5.png" max-height="600px" %}

Verify that the HMS Core app is installed.

{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_6.png" max-height="600px" %}

# Conclusion

Installing HMS Core in Android Studio Emulator is straight forward and now you can use its rich array of open device and cloud capabilities.
Binary file added assets/images/avatars/edgar_barragan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/post/hms-core/hms_core_step_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/post/hms-core/hms_core_step_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/post/hms-core/hms_core_step_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/post/hms-core/hms_core_step_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/post/hms-core/hms_core_step_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/post/hms-core/hms_core_step_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit faeefef

Please sign in to comment.