A) Project Structure
Android projects are the projects that eventually get built into an .apk file that you install onto a device. They contain things such as application source code and resource files. Some are generated for you by default, while others should be created if required. The following directories and files comprise an Android project in Eclipse:
- src - Source code files.
- assets - Files that you save here are compiled into an .apk file as-is.
- res - Contains application resources, such as drawable files, layout files, and string values.
- AndroidManifest.xml - The control file that describes the nature of the application and each of its components.
B) Including Libraries
First of all you need to import google-play-services_lib as a project into Eclipse Workspace. Then make it as library:
Then import BaseGameUtils as a project into Eclipse Workspace.
Make it as library too and add link to already added google-play-services_lib library:
In properties of main project add links to BaseGameUtils library and google-play-services_lib library:
C) AdMob and Google Play Game Services
AdMob Smart Banner, AdMob Interstitial and Google Play Game Services with leaderboard were integrated.
You can configure all in file /res/values/strings.xml
You can configure all in file /res/values/strings.xml
This Screen Shoot :
No comments:
Post a Comment