FAKE LIVE LOCATION DOCUMENTATION
1. Getting Started
First you need to download the Android Studio and SDK, click on the green button
to download, it come with Android Studio + SDK.
http://developer.android.com/studio
The installation is simple, but if you are having difficult, please contact us.
Open the SDK on 'SDK Manager' (Android Studio, or Standalone SDK), and
download API 27 or 28 (SDK platform), Google API 28, then Download build tools(latest
version).
2. Import the project
- Move the project folder to the “AndroidStudioProject” folder, or one that you want.
- Open Android Studio and click on “Open an existing Android Studio project”:
- Select the project folder (FakeLiveLocation) and click ok
- Now your project are open, wait for the gradle to load, this may take a while.
3. Change the project
- When your project are opened and gradle sync completed, then change the package
name, to change refer this: http://stackoverflow.com/a/29092698/3571610
- Open the “res” folder, then click on “values” > “string” and open “string.xml” file (It may
be that the directory structure is different, remember to update your gradle to the last
version)
- Click on “open editor” from the top right corner.
- On “app_name” column “Default Value” change your new App Name for english.
- Now on the right (Portuguese column) change your App name in portuguese (you can
keep the same as your english app name)
- Now search for “title_activity_main”, this is your main title for App, change both
- Now on “mipmap” folder (from RES folder), right click, new > image asset.
- Choose your new App Icon.
- Change the AppBar color, go to res>values>colors.xml and choose your favorite color
for the bar (colorPrimary) and Status Bar (colorPrimaryDark):
Click on color square to choose the color
Finally, choose the color and click OK
4. Setting Google Maps API
You need to set your Google Maps API on the project, create your project on the
https://console.cloud.google.com/apis/dashboard
This will open your Google Developer console, and then create your key,once you
have your key (it starts with "AIza"), replace the "google_maps_key" string
(google_maps_key.xml and string.xml) by your key.
- Your string.xml are located on folder res > values you can change the string
directly in the xml file or in the “Translation Editor”.
- Your google_maps_key.xml are located on folder res > values
Please refer to the link for more details :-
https://developers.google.com/maps/documentation/javascript/adding-a-google-
map#key
google_maps_key.xml
string.xml (Translations Editor)
5. Admob
- Create admob account https://www.google.com/admob/
- When you finish create your admob account, on the admob panel, click on red button
“Monetize new app”.
- If you have already uploaded you app on the play store, then on “Search for your app”
insert your app name and search for him, if you are not upload your app in the play store,
then click on “Add app manualy”, inform your app name, select Android platform and click
on Add app.
- You app has added to your admob account, now click on “Banner” Button to create your
admob banner
- Choose an banner name, and click on save, you can customize your admob banner with
colors, but I recommend to not change it.
- Now copy your ad unit ID, this is your banner ID, you need to put it on the string xml file
from your project!
- Now open your string.xml file (res > string.xml (folder) > string.xml). Put your ad unit ID here:
- Finish! You have successfully set your admob banner.
- To test, compile an SIGNED APK and install on your phone
- To use Google Analytics go to res > xml and on app_tracker.xml and ecommerce_tracker.xml set
your google analytics tracking ID. To configure the Google Analytics, follow the instructions
https://developers.google.com/analytics/devguides/collection/android/v4/ All the code are already
implemented, you need only create an analytics tracking ID
Finish!!
Remember: DO NOT KEEP THE SAME APP NAME, PACKAGE AND COLORS,
you need to change or Google will reject your APK.