anchor.diff:  
   == Changing the Package Name After Project Creation:
   
  -1. Open the project properties of your Application
  -2. Navigate to Application &gt; Android and edit the package name.
  +. Open the project properties of your Application
  +. Navigate to `menu:Application[Android]` and edit the package name.
   
   This does absolutely nothing, but help with consistency.
   
   So, to actually change the package name, you will want to:
   
  -1. Open the Android Manifest
  -2. Edit the manifest tag key pair: package=”&lt;THE NEW PACKAGE NAME&gt;”
  -3. In File view, navigate to nbproject and open the project.properties file
  -4. Edit the value of mobile.android.package
  +. Open the `Android Manifest`
  +. Edit the manifest tag key pair: `package="<THE NEW PACKAGE NAME>"`
  +. In `File view`, navigate to nbproject and open the `project.properties` file.
  +. Edit the value of `mobile.android.package`.
   
  -Take a moment or 4 to navigate through the directory structure in file view and remove any artifacts left from the previous package name build. Alternately, you can run Clean on the project prior to updating the package name.
  +Take a moment or 4 to navigate through the directory structure in file view and remove any artifacts left from the previous package name build. Alternately, you can run `Clean` on the project prior to updating the package name.
  
positive.code: 
  == Adding a Splash Screen to your app:
  
  1. Open Android Main Activity, ether through the Important Files list in Project view or in the File view under mobile/src/&lt;package name&gt;/ directory+
  2. Add the following line to the MainActivity method:+
  
  splashPicID = R.drawable.&lt;IMAGE NAME WITHOUT EXTENSION&gt;;
  
  3. Add the image the the mobile/res/drawable directory
  
  Compiling Google Play Services and Adding it to Your Project:
  
  First get the api:
  
  1. Download the google play services add-on through the SDK Manager under Extras (named Google Play services)+
  2. Copy the directory from where you downloaded it to another location (like JME Projects Folder)+
  
  
  == Compile the jar file for use with your project:
  
  1. In the directory you copied, there is an android project file.+
  2. In JME’s IDE, open this project+
  3. In the General section of the project properties, there is a list of potential Android target platforms. Select the one you are using for your project by clicking on the list (this is not intuitive at all, as the list looks like nothing more than info… not selectable items)+
  4. Under the Library section, click the checkbox that is labeled: Is Library+
  5. Click Ok and then Clean &amp; Build this project.+
  
  This will compile the play services all proper like so you can add it to your project. Now, for that step:
  
  1. Open your project’s properties.+
  2. In the Libraries section, click the “Add JAR/folder” button.+
  3. Find and add the jar you compiled above (This can be found in: &lt;COPIED DIR&gt;\libproject\google-play-services_lib\libs\google-play-services.jar+
  4. Modify your Android Manifest by adding the following tags under application:+
  &lt;meta-data android:name=”com.google.android.gms.games.APP_ID”
  android:value=”@string/app_id” /&gt;
  &lt;meta-data android:name=”com.google.android.gms.version”
  android:value=”@integer/google_play_services_version”/&gt;
  5. Add the following tag to your mobile/res/values/integers.xml file (create it if it doesn’t exist):+
  &lt;integer name=”google_play_services_version”&gt;4323000&lt;/integer&gt;
  6. Clean &amp; Build your project+
  
  
  == Adding Play Games Services to Your Project:
  
  1. Download the project from: link:https://github.com/playgameservices/android-samples[https://github.com/playgameservices/android-samples]+
  2. In the following directory, you find java files you will need to add to your project:+
  
  ....
  <DOWNLOAD DIR>\android-samples-master\BasicSamples\libraries\BaseGameUtils\src\main\java\com\google\example\games\basegameutils\\
  Grab GameHelper.java and GameHelperUtil.java and add them to the directory you projects Main Activity is in\\
  ....
  
  3. In the following directoriy, you find a resource file you will need to add to your project:+
  
  ....
  <DOWNLOAD DIR>\android-samples-master\BasicSamples\libraries\BaseGameUtils\src\main\res\values\\
  Grab the gamehelper_strings.xml into your mobile/res/values folder\\
  ....
  
  4. Add the following jar from the Adroid SDK folder to your project as a library:+
  
  ....
  <ANDROID SDK INSTALL DIR>\adt-bundle-windows-x86_64-20131030\sdk\extras\android\support\v4\android-support-v4.jar\\
  ....
  
  And this is the basics for setting this up.
  
  
  == Adding AdMob Support to Your Project:
  
  1. Open your Android Manifest and add the following tag update the application tag:+
  &lt;activity android:name=”com.google.android.gms.ads.AdActivity” android:configChanges=”keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize”/&gt;+
  2. After the application tag, add the following tags:
  &lt;uses-permission android:name=”android.permission.INTERNET”/&gt;+
  &lt;uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE”/&gt;+
  3. In the onCreate method of your Main Activity, add the following snippet (configure however you like):+
  
  ....
        adView = new AdView(this);
        adView.setAdSize(AdSize.FULL_BANNER);
        adView.setAdUnitId(“<WHATEVER AD UNIT ID YOU ARE ASSIGNED THROUGH THE GOOGLE DEV CONSOLE>”);
        adView.buildLayer(); 
        LinearLayout ll = new LinearLayout(this);
        ll.setGravity(Gravity.BOTTOM);
        ll.addView(adView);
        addContentView(ll, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
  ....
  
  
  == Communication Between your Application & Main Activity:
  
  1. Create an interface named something along the lines of JmeToHarness.java
  2. Open your Android Main Activity and implement this interface.
  3. In Main.java of your Application, add the following:
  
  ....
   JmeToHarness harness; 
   public JmeToHarness getHarness() {
     return this.harness;
   } 
   public void setHarnessListener(JmeToHarness harness) {
      this.harness = harness;
   }
   
  ....
  
  4. Add the following snippet to the onCreate method of your Android Main Activity:
  
  ....
  if (app != null)
      ((Main)app).setHarnessListener(this);
      
  ....
  
  5. Add error handling if you want it.
  
  This bit is ultra useful for calling AdMob changes and Play Games methods (like updating achievements, leader boards, etc, etc)
  
  
negative.code: = android
  :author:
  :revnumber:
  :revdate: 2016/03/17 20:48
  :relfileprefix: ../../
  :imagesdir: ../..
  :experimental:
  ifdef::env-github,env-browser[:outfilesuffix: .adoc]
  
  
  
  == Changing the Name of Your APK/Application:
  
  . Open your project’s properties and navigate to Application
  . Update the title
  
  This has no real effect, however it keeps continuity throughout your app. Actually, this likely renamed the window created to display your app. So, now go change the actual name of your APK:
  
  . Select `File View` in the left pane of the SDK.
  . Navigate to the `mobile/res/values` directory and open the `strings.xml` file.
  . There should be a string tag with the following key pair: name="app_name".
  . Replace `MyGame` with your app`'s name and save the file.
  . In `File view`, navigate to nbproject and open the `project.properties` file.
  . Edit the value of `application.title` to reflect your game`'s name (unless step 1/2 above altered this for you).
  
  
  == Changing the APK Icon:
  
  . Under the `File view` of your project navigate to `mobile/res` and add a `drawable` folder if one does not exist.
  . Add your icon file (png).
  . Open the Android Manifest file and add the following to your application tag:
  +
  `android:icon="@drawable/<ICON FILE NAME WITHOUT EXTENSION>"`
  
  . If you would like multiple size icons, add the following folders:
  +
  ....
  drawable-hdpi (should contain the icon named the same at 72×72 pixels)\\
  drawable-ldpi (should contain the icon named the same at 36×36 pixels)\\
  