“Car Racing” Documentation by “ittus” v1.0


“Car Racing”

Created: 04/01/2015
By: ittus
Email: vietnamvodich2100@gmail.com

Thank you for purchasing my application. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact vietnamvodich2100@gmail. Thanks so much!


Table of Contents

  1. File Structure
  2. Drawable Resource
  3. String
  4. Admob
  5. Change game's introducing video
  6. Change sounds

A) File Structure - top

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:

Project Structure

src/

    Contains stub Activity file, which is stored at src/your/package/namespace/ActivityName.java. All other source code files go here as well.

bin/

    Output directory of the build. This is where you can find the final .apk file and other compiled resources.
	

assets/

    Store raw asset files. Files that you save here are compiled into an .apk file as-is, and the original filename is preserved. In this game, this directory stores fonts, images and maps of every levels

res/

    Contains application resources, such as drawable files, layout files, and string values. Details below
		
  • anim/ - For XML files that are compiled into animation objects
  • drawable/ - For bitmap files (PNG, JPEG, or GIF), 9-Patch image files, and XML files that describe Drawable shapes or Drawable objects that contain multiple states (normal, pressed, or focused).
  • layout/ - XML files that are compiled into screen layouts (or part of a screen).
  • menu/ - For XML files that define application menus
  • raw/ - For arbitrary raw asset files. Saving asset files here instead of in the assets/ directory only differs in the way that you access them. These files are processed by aapt and must be referenced from the application using a resource identifier in the R class. In this application, this is place for media, such as MP3 or Ogg files
  • values/ - For XML files that are compiled into many kinds of resource. Unlike other resources in the res/ directory, resources written to XML files in this folder are not referenced by the file name. Instead, the XML element type controls how the resources is defined within them are placed into the R class.

AndroidManifest.xml

    The control file that describes the nature of the application and each of its components. For instance, it describes: certain qualities about the activities, services, intent receivers, and content providers; what permissions are requested; what external libraries are needed; what device features are required, what API Levels are supported or required; and others

B) Drawable Resource - top

Drawable resource are stored in res/drawable(hdpi,ldpi,mdpi,xhdpi,etc.) folder and some in assets folder

If you want to change icon of game, please replace ic_launcher.png in each drawable folder with similar image-size pictures

Project Structure

C) String Resources - top

All String Resource are store in res/values/string.xml files

Project Structure

If you want to change the Application'name, you can change Car Racing in string app_name to anything you want.

D) Admob - top

I have integrated Admob Full Screen. This ads will display after player finish a game play, on viewing score screen

Be sure import google-play-services_lib_origin in your IDE

google_lib

Then replace the advertise ID in res/values/ads.xml

by your advertise ID google_lib

E) Change game's introducing video - top

introducing video is stored in res/raw/video.mp4 file

You can change the video to any other video (recommend *.mp4 file). Please keep the file name so that application can work properly

Project Structure

F) Change sounds - top

Two sounds file are stored at raw folder with names are carstart.wav and nhacnen.wav nhacnen.wav is background sound and carstart.wav is strong sound which is played when car starts running. Game Title

You can freely change,edit the sounds.


Once again, thank you so much for purchasing this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this application. No guarantees, but I'll do my best to assist.

ittus

Go To Table of Contents