Documentation version 2
This documentation will help you familiarise yourself with the 'Timber' Android App.
Make sure your have Android Studio 3 installed and in the Android SDK Manager make sure you have the following installed:
Try to place the project file as close to root (C:/) as possible as windows has a path character limit of 240chars. So, if you get the error:"Failed to crunch file...", reduce the path length.
Step 1 - Open up Android Studio and click 'open an existing Android Studio project'.
Step 2 - Drag and drop the 'Timber' folder in the dialog to go quickly to the folder.
Step 3 - Make sure 'Timber' is highlighted and click 'ok'.
Step 4 - Press the Play button to test the app on the emulator or connect your phone via usb to your computer to try it on your phone.
This step must be done else you will have problems uploading to Google play and the Rate feature will not work.
Step 1 - Make sure the 'Compact Empty Middle Packages' option is deselected as shown below.
Step 2 - Rename the package id by right clicking on 'neurondigital' and selecting 'refactor' and 'rename' as shown below.
Step 3 - Click Rename package.
Step 4 - In the popup menu type in your company name. Then press 'refactor' and in the next popup window press 'Do Refactor'. Do the same for 'timber'. The package name should be in this format: com.yourcompany.AppName
Step 5 - Open timber/build.gradle and put in the same package id as before instead of the 'com.neurondigital.timber'. This is shown below.
The images can be found under timber/res/drawable. To replace the images just copy/paste the image in the drawable folder to replace the other.
Create an interstitial Ad on AdMob and paste the AD unit Id in the strings.xml file. The Ad displays when the user clicks a property in the home screen. Make sure to add this to start making money from your App. The display rate can be changed from strings.xml from the ad_shows_every_X_clicks parameter.
Like the interstitial Ad, create a Banner Ad on AdMob and paste the AD unit Id in the strings.xml file. The Ad displays in the bottom of the screen. Ideally to not annoy the user, it's either the banner or the interstitial ad, so you may wish to leave one of the Ad IDs in strings.xml empty.
The game template can connect to a google play leaderboard when opened and upload the new score after each gameover. To enable this just create a leaderboard on Google Play Store and put the generated App id and leaderboard id in strings.xml:
PUT LEADERBOARD ID HERE
All translatable text is contained within the strings.xml file.
The primary colors can be changed from strings.xml file.
Go to Build| Generate Signed APK... and export the .APK file.
If you need any support,
----------------------------------------------------------------------------------------- Version 1 - July 25th, 2014 ----------------------------------------------------------------------------------------- - Initial Upload ----------------------------------------------------------------------------------------- Version 2 - Jannuary 22nd, 2018 ----------------------------------------------------------------------------------------- - Updated from Eclipse to Android Studio - updated to use the latest Admob library version