Skip to content

Commit faeefef

Browse files
authored
post: Installing HMS Core in Android Studio Emulator (#69)
* 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
1 parent 907e293 commit faeefef

14 files changed

+75
-3
lines changed

_data/authors.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Craig Walker:
4343
Marco Santarelli:
4444
name : "Marco Santarelli"
4545
avatar : "assets/images/avatars/marco.jpeg"
46-
bio : "Director of Frontend"
46+
bio : "Director of Frontend & Mobile"
4747

4848
Dilshan Fernando:
4949
name : "Dilshan Fernando"
@@ -79,3 +79,8 @@ Ankit Pant:
7979
name : "Ankit Pant"
8080
avatar : "assets/images/avatars/ankit_pant.png"
8181
bio : "Senior Frontend Engineer - R&D"
82+
83+
Edgar Barragan:
84+
name : "Edgar Garcia Barragan"
85+
avatar : "assets/images/avatars/edgar_barragan.png"
86+
bio : "Senior Android Engineer - Customer Success"

_includes/components/figure.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<figure class="figure d-block text-center mb-4">
2-
<img class="figure-img img-fluid" src="{{ include.url }}" alt="{{ include.alt }}">
2+
<img class="figure-img img-fluid" src="{{ include.url }}" alt="{{ include.alt }}" {% if include.max-height %} style="max-height:{{ include.max-height }}" {% endif %}>
33
<figcaption class="figure-caption">{{ include.description }}</figcaption>
44
</figure>

_posts/2023-09-29-the-better-way-ruby-gems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Consider, for a moment, you’ve aligned the versions of all the tools above, in
2222

2323
# Solution
2424

25-
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:
25+
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:
2626

2727
* Ruby Gems; and
2828
* [rbenv](https://github.com/rbenv/rbenv) - A Ruby version manager tool.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: "Installing HMS Core in Android Studio Emulator"
3+
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."
4+
tags: Mobile Android Huawei HMS
5+
authors:
6+
- Edgar Barragan
7+
header:
8+
teaser: /assets/images/post/hms-core/hms_core_banner.png
9+
teaser_alt: Huawei logo
10+
category: Android
11+
---
12+
13+
![](/assets/images/post/hms-core/hms_core_banner.png)
14+
15+
# Introduction
16+
17+
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.
18+
19+
# Steps
20+
21+
**1.** Create a new device with only Google APIs, no Play Store. For this example, a Pixel 4a with API 31 is being used.
22+
23+
Choose a device without Play Store.
24+
25+
![](/assets/images/post/hms-core/hms_core_step_1.png)
26+
27+
Choose a version of Android with Google APIs.
28+
29+
![](/assets/images/post/hms-core/hms_core_step_1.1.png)
30+
31+
**2.** Install the Huawei AppGallery APK
32+
33+
You can either Google or install it from the [Huawei Consumer website](http://consumer.huawei.com/en/mobileservices/appgallery/).
34+
35+
Download the AppGallery APK.
36+
37+
{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_2.png" max-height="600px" %}
38+
39+
Allow installing unknown apps in Chrome browser and install the app.
40+
41+
{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_2.1.png" max-height="600px" %}
42+
43+
**3.** Install HMS Core.
44+
45+
Open the AppGallery, you will be prompted to install HMS Core. Proceed with the installation.
46+
47+
{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_3.png" max-height="600px" %}
48+
49+
**4.** Allow the installation of unknown apps.
50+
51+
Once the HMS Core has been downloaded, you need to allow installing unknown apps from AppGallery to install it.
52+
53+
{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_4.png" max-height="600px" %}
54+
55+
**5.** Verify it all went well.
56+
57+
Press “Done”, then press the back button, you will see the AppGallery login screen.
58+
59+
{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_5.png" max-height="600px" %}
60+
61+
Verify that the HMS Core app is installed.
62+
63+
{% include components/figure.html url="/assets/images/post/hms-core/hms_core_step_6.png" max-height="600px" %}
64+
65+
# Conclusion
66+
67+
Installing HMS Core in Android Studio Emulator is straight forward and now you can use its rich array of open device and cloud capabilities.
33.2 KB
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)