Skip to content

Android mobile game application to demonstrate how to suite google play services ( Login, Leaderboard and achivements ) for mobile applications.

Notifications You must be signed in to change notification settings

sajithaliyanage/Google-Play-Service-Android-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Google Play Service with Android Application

N|Solid

We can add Google play service to your android application in easily with following steps.

  • Create account and app in Google Play Developer Console
  • Put BaseGameUtils folder to your app root
  • Edit your project's Manifest, layout and Activity with some codes

Edit project's Manifest!

Add following code.

<meta-data
 android:name="com.google.android.gms.games.APP_ID"
 android:value="@string/app_id" />
<meta-data
 android:name="com.google.android.gms.version"
 android:value="@integer/google_play_services_version" />

Add following to String.xml file in Layout folder...

<string name="app_id">YOUR APP ID</string>
<string name="number_guesses_leaderboard">YOUR LEADERBOARD ID</string>

Edit project's Gradle files!

add following to setting.gradle file

include ':BaseGameUtils'

add following to build.gradle file

dependencies {
    compile 'com.google.android.gms:play-services:+'
    compile project(':BaseGameUtils')
}

Now basic requirements are done. Check the the example code to how edit Activity.java file and layout.xml file for get service in Google Play Service.

About

Android mobile game application to demonstrate how to suite google play services ( Login, Leaderboard and achivements ) for mobile applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages