HOW TO USE:

1) Install Google Play Services library
You can download and install it from Android SDK Manager. (Extras section)

2) Generate dex file
Modify path, or add jar file that your app require in createdex.bat.
You can read here for more info about custom classes.dex:
http://docwiki.embarcadero.com/RADStudio/XE6/en/Using_a_Custom_Set_of_Java_Libraries_In_Your_RAD_Studio_Android_Apps
Or http://cc.embarcadero.com/item/29900 for demo about custom classes.dex.

Notice: Using google-play-services come with RADStudio may not work since it doesnt include game play services classes.

3) Modify Deployment settings
Add classes.dex that you created, remember to edit Remote path, uncheck the default one.
Google Play Services require some Graphice and xml resource, so you have to add it to Deployment to be sure it work correctly.
(Check resource folder from Google Play Services library that you downloaded, example "res\drawable...." remember to modify remote path as well).

4) Modify AndroidManifesttemplate.xml
add below code above "</application>"

	<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" />
	<activity android:name="com.google.android.gms.ads.AdActivity" 
	android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> 


create ids.xml file with following content:

<?xml version="1.0" encoding="utf-8"?>

<resources>
	<string name="app_id">your app id here</string>
</resources>

create version.xml file with following content:

<?xml version="1.0" encoding="utf-8"?>

<resources>

    <integer name="google_play_services_version">5089000</integer>

</resources>

These files can be anywhere, but remember to add it to deployment with Remote Path: "res\values\"

LICENSE AGREEMENT:
You are free to use the source code (even for commercial purposes) as long as you provide a link to this website(http://deuxsoftware.com) from app OR credit us with

