All Projects → playgameservices → Android Basic Samples

playgameservices / Android Basic Samples

Licence: apache-2.0
Google Play game services - Android samples

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Basic Samples

Android Development Aircraft Carrier
打造安卓开发航空母舰,Android Studio 使用集锦
Stars: ✭ 138 (-85.22%)
Mutual labels:  gradle, android-studio
Mmorpg
springboot编写的轻量级高性能mmorpg手游服务端框架,基本功能逐渐完善中。
Stars: ✭ 309 (-66.92%)
Mutual labels:  gradle, game
Globallydynamic
Dynamic Delivery everywhere through a common API
Stars: ✭ 248 (-73.45%)
Mutual labels:  gradle, android-studio
Fastdex
🚀 加快 apk 的编译速度 🚀
Stars: ✭ 1,457 (+56%)
Mutual labels:  gradle, android-studio
Android Studio Poet
Generate large Android Studio projects
Stars: ✭ 489 (-47.64%)
Mutual labels:  gradle, android-studio
Anychart Android
AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
Stars: ✭ 1,762 (+88.65%)
Mutual labels:  gradle, android-studio
The Pit Of The Android Studio
👍 👍 👏 🌟 ⭐️ ⭐️ Everything about the Android Studio and Intellij IDEAfor example:Install,common problems and solutions,each libraries for android and androidx library,code and peoject templates,etc.全面总结Android Studio以及Intellij IDEA的填坑指南,详解AS版本号、Gradle版本、BuildTools三者的对照关系,AS模板配置,gradle插件,Android自带注解库详解,support详解等干货。
Stars: ✭ 296 (-68.31%)
Mutual labels:  gradle, android-studio
AndroidDevTools
收集整理Android开发所需的Android SDK、开发中用到的工具、Android开发教程、Android设计规范,免费的设计素材等。
Stars: ✭ 7,284 (+679.87%)
Mutual labels:  gradle, android-studio
Android Tips Tricks
☑️ [Cheatsheet] Tips and tricks for Android Development
Stars: ✭ 4,496 (+381.37%)
Mutual labels:  gradle, android-studio
Android Tech Docs
Android官方技术文档翻译
Stars: ✭ 460 (-50.75%)
Mutual labels:  gradle, android-studio
Grabver
Gradle Automatic Build Versioning Plugin - An easy Gradle plugin that follows semver.org rules to automatically generate the Patch version, Build number and Code version, while Major, Minor and Pre-Release suffix remain under our control.
Stars: ✭ 39 (-95.82%)
Mutual labels:  gradle, android-studio
Gradle Advanced Build Version
A plugin to generate the Android version code and version name automatically based on git commits number, date and ...
Stars: ✭ 545 (-41.65%)
Mutual labels:  gradle, android-studio
Quiz
An android application which uses Open Trivia Api.
Stars: ✭ 34 (-96.36%)
Mutual labels:  gradle, android-studio
Phoenix For Vk
Yet another VK client for Android
Stars: ✭ 131 (-85.97%)
Mutual labels:  gradle, android-studio
Dinocompose
Chrome's Dino T-Rex game developed in Jetpack Compose
Stars: ✭ 170 (-81.8%)
Mutual labels:  game, android-studio
Railcraft
The Railcraft Mod for Minecraft, source and development.
Stars: ✭ 446 (-52.25%)
Mutual labels:  gradle, game
Arcgis Runtime Samples Android
ArcGIS Runtime SDK for Android Samples
Stars: ✭ 518 (-44.54%)
Mutual labels:  gradle, android-studio
Light Novel Library wenku8 android
[CASUALLY MAINTAINED] 轻小说文库 (Wenku8.com) 安卓版第三方公益App,始于2014年的Material Design风格、无广告、不盈利、Google Play上安装包最小的轻小说阅读器(light novel reader)。目前除了网站的API以外,还添加了我自己架的Cloudflare Worker 中继节点用来突破网站API的限制 wenku8-relay.mewx.org.
Stars: ✭ 772 (-17.34%)
Mutual labels:  gradle, android-studio
Khan
khan will drive all your enemies to the sea (and also take care of your game's clans)!
Stars: ✭ 22 (-97.64%)
Mutual labels:  game
Karting
An online emulated game server for ModNation®Racers and LittleBigPlanet™Karting on the PS3®.
Stars: ✭ 24 (-97.43%)
Mutual labels:  game

Google Play game services - Android Samples

Copyright (C) 2014 Google Inc.

Contents

These are the Android samples for Google Play game services.

  • CollectAllTheStars2. Demonstrates how to use the Snapshots feature to save game data. The sample signs the user in, synchronizes their data from a named Snapshot, then updates the UI to reflect the game state saved in the Snapshot.

  • TypeANumber. Demonstrates how to use leaderboards, achievements, events, and friends. In this exciting game, you type the score you think you deserve. But wait! There is a twist. If you are playing in easy mode, you get the score you requested. However, if you are playing in hard mode, you only get half! (tough game, we know). You can also check how your friends perform in this game by checking out social leaderboards.

How to run a sample

  1. Set up the project in the Developer Console by following these instructions. Note your package name and the application ID of the project!

  2. For the Type a Number sample, you need to create leaderboards/achievements. (You can see the ones that the sample needs in its res/values/ids.xml file.) You can create them two ways:

    1. Add them via the Developer console.
    2. Use this utility, which will automatically create them for you.

Building using Android Studio...

  1. Open Android Studio and launch the Android SDK manager from it (Tools | Android | SDK Manager)
  2. Ensure the following components are installed and updated to the latest version.
    1. Android SDK Platform-Tools
    2. Android Support Repository
    3. Google Repository
  3. Return to Android Studio and select Open an existing Android Studio project
  4. Select the android-basic-samples directory.

Modify IDs, compile and run

To set up a sample:

  1. Change the applicationId in the build.gradle file to your own package name (ie - com.example.package.name) (the same one you registered in Developer Console!). You will have to update the build.gradle file for each sample you want to run. There is no need to edit the AndroidManifest.xml file.
  2. In the Developer console, select a resource type (Achievements, Events, Leaderboards) and click "Get Resources". Copy the contents from the console and replace the contents of res/values/ids.xml.
    1. If you are running Android Studio, check the TODO window to see if there are any remaining tasks.
  3. Compile and run.

IMPORTANT: make sure to sign your apk with the same certificate as the one whose fingerprint you configured on Developer Console, otherwise you will see errors.

IMPORTANT: if you are testing an unpublished game, make sure that the account you intend to sign in with (the account on the test device) is listed as a tester in the project on your Developer Console setup (check the list in the "Testing" section), otherwise the server will act as though your project did not exist and return errors like 'Failed to sign in. Please check your network connection and try again.'

Building

To build the samples after you have applied the changes above, you can use the build/run option in Android Studio, or build directly from the command line if you prefer.

IMPORTANT Ensure you have set the ANDROID_HOME environment variable.

cd /path/to/android-basic-samples
export ANDROID_HOME = /path/to/android/sdk
./gradlew build

Support

First of all, take a look at our troubleshooting guide. Most setup issues can be solved by following this guide.

If your question is not answered by the troubleshooting guide, we encourage you to post your question to stackoverflow.com. Our team answers questions there regularly.

Samples written by Bruno Oliveira with contributions from Wolff.* Feel free to add us to your circles on Google Plus and pester us to fix stuff that's broken or answer a question on stackoverflow :-)

Special Thanks

  • To ligi for contributing the initial Gradle build files
  • To bechhansen for fixing a bug in GameHelper where the turn-based match was being lost when a non-Games client connected.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].