Get Started:
Guide Documentation v4.0 for “ScratchAndSpin Android App
with Admin Panel”
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: [email protected] us at [email protected]
1. Android Studio
Download 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.
DOWNLOAD ANDROID STUDIO
2. Open Project
Open Project in Android studio
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:
There are 3 AD Networks available. 1) Admob 2) Facebook 3) Start App.
Note: You can use 1 AD Network at a time.
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.
Example for Facebook: <string name="ad_network" translatable="false">facebook</string>
OR if you want to use Start App Ads then do like this. see below example.
Example for Start App: <string name="ad_network" translatable="false">startapp</string>
6. Change Application Logo
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.
7. Change application colors
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.
Check in screenshot below.
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
Go to Android Studio click on Android Icon and Select Project Mode.
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.
9. How To Send Notification To Users
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
# How to 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
Your Admin Panel default Email & Password for Login:
Email : [email protected]
Password : 123456
11. How to set API URL
Step: 1
Your Mobile Api URL will be like below.
1) http://www.yourdomain.com/api/ (Base URL)
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
Click on Build and select Generate Signed Bundle/Apk.
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 !
If you like our app then please rate us 5 stars on codecanyon :)
Copyright AADevelopers All Rights Reserved.