Spain and Scratch
Spain and Scratch
Created: 10/10/2020
Last Modified: 11/12/2020 Thank you very much for purchasing our app.
Author: If you have any issue or question that this
● AADevelopers document does not cover , feel free to contact
Help/Support: aadevelopers963@gmail.com us at aadevelopers963@gmail.com
1. Android Studio
To use this app project you need to download the android studio on your computer first please
click on download android studio to download on your computer. After Download the Android
Studio you need to install it on your computer/Mac.
Step: 1
Open android studio and click on Open an existing Android Studio Project.
Step: 2
Select ScratchAndSpin from the ScratchAndSpinWin Project and click on the Ok.
3. Change Package Name
Step :1
Right click on com.myapps.scratchandwin inside Java Folder and Select Rename in Refactor
Option then click on Rename Package and enter your Package name what you want to give.
Then Click on Do Reflector and Android Studio will automatically do default setting.
Step: 2
Go to build.gradle file and change Application ID with your new Package name and click on
sync now & make sure you have to enter the same name here as Your Package Name.
4. Change App Name, Ads IDs, Privacy Policy Link , Points
Step: 1
To change App Name, Admob Ad Unit Id's, Facebook Ads placement id's, Start App Ads id,
Privacy Policy Link & Points.
Goto res > values > Strings > Strings.xml file & change.
5. How to Choose AD Network:
Step: 1
If you want to use Admob ads then no need to do anything, the default AD network is set to
Admob.
Step :2
If you want to use Facebook Ads then write "facebook" or if you want to use Start App then
write "startapp" instead of "admob" in the ad_network.
OR if you want to use Start App Ads then do like this. see below example.
Step: 1
To change Application Logo Rename your Logo Name as ( ic_launcher.png ) and make sure
your logo name is the same as ic_launcher.png otherwise you will get an Error. After you
rename the logo right click on the mipmap folder inside res folder and choose new image
asset.
Step: 2
Copy your Logo from your computer and paste it in the drawable folder Inside res Folder make
sure your logo name is ( ic_launcher.png ) after paste click on override what be it said.
Note:- Your Logo must be 512x512 width and Height in png format.
To change the application colors Go to : values folder inside res folder and click on colors.xml
file And change the application colors there.
8. Firebase Configuration
Now you need to config the firebase (firebase its a google service used to send notification)
Step: 1
Go to your firebase account and Add Project give name to your project anything you want.
Step: 2
Now you need to add your application with Firebase Database just click on Android Icon.
Step: 3
Paste your package name here that you added In Android Studio. And give any of your
application Nickname and click on the register app button.
Step: 5
After Register your app download this Json File It is very important to Connect your Application
with Firebase and Click on the next button.
Step: 6
Step: 7
Delete existing json file And right click on App Folder & paste that json File from your Computer
which you just downloaded from Firebase.
Just Go to Cloud Messaging under Grow from left side and type Title & Message you want to
show users and in Target Option select App name and then click on review and publish it.
10. Install Admin Panel on Server
Step: 1
Login to cPanel & create database. Database name, database user & password as well as
assign all privileges to database user, you can refer below link for details description about
setting database & database user.
https://www.youtube.com/watch?v=CHwxXGPnw48
Step: 2
Now upload the admin_panel.zip file to your server’s file manager and extract it. After that find
the connect.php file -> right click on file & go to edit mode. After that you have to change
database name, database user name & database password.
Step: 3
Now open PHPMYADMIN and go to your database which you created in the first step after that
go to the import option and import the database.sql file from the Source Code folder.
Step: 4
When you completed above step’s then your Admin Panel is live with location at
http://www.yourdomain.com/login.php
Step: 5
Email : admin@gmail.com
Password : 123456
11. How to set API URL
Step: 1
Step: 2
Go to the BaseUrl File inside com>java>utils>BaseUrl.java and then change the Base URL.
Set your Base URL like below.
12. Generate Signed Apk
Lets See How to Generate Signed Apk Bundle For Play Store. Apk Bundle is better than Apk
because It reduces your app Size and It’s lightweight and fast and also Google reminding users
to upload Signed Apk Bundle to Playstore.
Step: 1
Step: 2
It’s by default selected Android App Bundle, leave it default and click on Next button.
Step: 3
Click on create New Key store path where you want to save the key file.
Step: 4
Please check the screenshot below and fill this details and make your key store path and click
ok then click on the next button and select release mode and then click on the next button.
Android Studio will automatically generate a Signed Apk Bundle for you And You can Upload It
on Playstore.
Thank You !