# Game Service
English | [中文](README_ZH.md)
## Contents
* [Introduction](#Introduction)
* [Installation](#Installation)
* [Environment Requirements](#Environment-Requirements)
* [Configuration](#Configuration )
* [Result](#Result)
* [Technical Support](#Technical-Support)
* [License](#License)
## Introduction
Game Service (Android) sample code encapsulates many Game Service APIs, which provides you with many sample programs for your reference or usage. The following describes the different packages of Android sample code:
**achievement**: sample code of the achievement feature.
**archive**: sample code of the saved games feature.
**event**: sample code of the event feature.
**gamesummary**: sample code of the basic game information feature.
**playerstats**: sample code for collecting the player statistics.
**ranking**: sample code of the leaderboards feature.
**common**: common elements and utilities.
You can also use HMS Toolkit to quickly run the demo project. HMS Toolkit supports one-stop kit integration and provides remote real devices for you to test your app for free. For details about HMS Toolkit, please visit [document](https://developer.huawei.com/consumer/en/doc/development/Tools-Guides/getting-started-0000001077381096?ha_source=hms1)
## Installation
Before using the sample code, check whether Android Studio has been set. Open the sample code in Android Studio and run TestApp on a mobile phone or simulator where the latest HMS Core (APK) is installed.
## Environment Requirements
Android SDK (API level 17 or higher) is recommended.
## Configuration
Before using the functions provided in the sample code, you need to configure your app information in AppGallery Connect.
For details, please visit [HUAWEI Game Service Development Preparation](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/config-agc-0000001050166285?ha_source=hms1).
## Result
<img src="images/result_1.png" width = 20% height = 20%>
## Technical Support
You can visit the [Reddit community](https://www.reddit.com/r/HuaweiDevelopers/) to obtain the latest information about HMS Core and communicate with other developers.
If you have any questions about the sample code, try the following:
- Visit [Stack Overflow](https://stackoverflow.com/questions/tagged/huawei-mobile-services?tab=Votes), submit your questions, and tag them with `huawei-mobile-services` . Huawei experts will answer your question.
- Visit the HMS Core section in the [Huawei Developer Forum](https://forums.developer.huawei.com/forumPortal/en/forum/hms-core?ha_source=hms1) and communicate with other developers.
If you encounter any issues when using the sample code, submit your [issues](https://github.com/HMS-Core/hms-game-demo/issues) or submit a [pull request](https://github.com/HMS-Core/hms-game-demo/pulls).
## License
The sample code is licensed under [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
For details, please refer to the following documents:
[Development Guide](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050121216?ha_source=hms1)
[API Reference](https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/overview-0000001091246791?ha_source=hms1)
没有合适的资源?快使用搜索试试~ 我知道了~
GameServiceKit Android示例代码封装了HUAWEI GameService Kit的API
共80个文件
xml:34个
java:28个
png:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 122 浏览量
2022-06-23
17:21:01
上传
评论
收藏 516KB ZIP 举报
温馨提示
_java_代码_下载 GameServiceKit Android示例代码封装了HUAWEI GameService Kit的API。您可以更快地实现成就和事件等功能,从而快速为您的游戏奠定基础。 介绍 游戏服务(Android)示例代码封装了很多游戏服务API,为您提供了很多示例程序供您参考或使用。下面介绍不同封装的Android示例代码: 成就:成就功能的示例代码。 存档:保存游戏功能的示例代码。 event:事件功能的示例代码。 gamesummary:基本游戏信息功能的示例代码。 playerstats:用于收集玩家统计数据的示例代码。 排名:排行榜功能的示例代码。 common:通用元素和实用程序。 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
hms-game-demo-master.zip (80个子文件)
hms-game-demo-master
.gitignore 66B
gradle
wrapper
gradle-wrapper.jar 53KB
gradle-wrapper.properties 232B
README.md 3KB
build.gradle 1013B
TestApp
build.gradle 3KB
proguard-rules.pro 1B
src
main
AndroidManifest.xml 4KB
java
com
huawei
hms
game
gamesummary
GameSummaryActivity.java 5KB
player
PlayerActivity.java 7KB
achievement
AchievementActivity.java 4KB
AchievementListAdapter.java 7KB
AchievementListActivity.java 12KB
AchievementDetailActivity.java 2KB
ranking
RankingActivity.java 11KB
RankingDataActivity.java 18KB
RankingIntentActivity.java 6KB
RankingMetaActivity.java 11KB
event
EventListActivity.java 5KB
EventListAdapter.java 4KB
EventActivity.java 4KB
MyApplication.java 1KB
common
BaseActivity.java 8KB
SignInCenter.java 1KB
ConnectClientSupport.java 3KB
TimeUtil.java 2KB
MainActivity.java 21KB
playerstats
PlayerStatsActivity.java 5KB
appservice
AppServiceActivity.java 3KB
archive
ArchiveListActivity.java 5KB
ConflictDialog.java 6KB
ArchiveListAdapter.java 5KB
ArchiveMetadataDetailActivity.java 20KB
CommitArchiveActivity.java 22KB
OpenArchiveActivity.java 6KB
ArchiveActivity.java 15KB
res
values
arrays.xml 483B
styles.xml 534B
colors.xml 208B
strings.xml 4KB
dimens.xml 24B
layout
achievement_list_item.xml 4KB
activity_main.xml 3KB
archive_list_item.xml 2KB
archive_add_dialog.xml 7KB
activity_archive.xml 4KB
activity_ranking_intent.xml 3KB
activity_player_stats.xml 1KB
activity_achievement_detail.xml 2KB
activity_achievement_list.xml 1KB
activity_achievement.xml 1KB
activity_gamesummary.xml 820B
dialog_conflict.xml 4KB
activity_app_service.xml 1KB
activity_ranking_meta.xml 3KB
layout_bottom.xml 931B
activity_ranking.xml 7KB
layout_head.xml 4KB
activity_event.xml 1KB
activity_player.xml 3KB
activity_archive_detail.xml 4KB
activity_ranking_data.xml 6KB
activity_archive_list.xml 2KB
event_list_item.xml 3KB
values-zh-rCN
strings.xml 5KB
drawable-hdpi
button_color.xml 1KB
drawable
demoicon.png 13KB
ic_panorama.xml 437B
top_backgroud.png 224KB
shape_btn_corner.xml 235B
drawable-xhdpi
iv_back.png 316B
drawable-xxxhdpi
iv_refresh.jpg 18KB
textview_border.xml 237B
gradlew.bat 2KB
README_ZH.md 3KB
gradlew 5KB
LICENSE 9KB
gradle.properties 0B
images
result_1.png 110KB
settings.gradle 19B
共 80 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功