Android E Book
Created:- 15 December 2022
Company:- Viavi Webtech - India
Contact:- Codecanyon Profile
Thank you for purchasing the app. If you have any questions that are beyond the scope of this help file, please feel free to message me via my user page contact form Here. Thanks so much!
Which Android Studio version is needed?
Android Studio Chipmunk | 2021.2.1 Patch 2 version recommended
How to Open The Project in Android Studio?
- Open Android Studio > Open an Existing Android Studio Project > Select Your Project build. gradle file > ok
- Select Project
How to change the package name?
You can change it easily from Android Studio. Here are the steps:
- In the Project pane, click on the little gear icon.Uncheck/Deselect the Compact Empty Middle Packages option.
- Your package directory will now be broken up in individual directories.
- Individually select each directory you want to rename, and: Right-click itSelect RefactorClick on RenameIn the Pop-up dialog.
- Click on Rename Package instead of Rename Directory Enter the new name and hit RefactorAllow a minute to let Android Studio update all changes.
- Now open your build.gradle (Usually 'app' or 'mobile'). Update the applicationId to your Package Name and Sync Gradle, if it hasn't already been updated automatically.
Note: When renaming com in Android Studio, it might give a warning. In such case, select Rename All.
How to change app name?
- Open Android Studio >Android E Book > res > values > strings.xml
- Enter your app name inside "app_name" string tag:
<string name="app_name">Android E Book</string>
Where to put Admob app id and Applovin Sdk key in application ?
- Open Android Studio > app > res > values > strings.xml
- Enter your AdMob App id inside "admob_id" string tag:
<string name="admob_id">Your Admob App Id</string>
Admob privacy policy link?
- Note :- This contents show on this link.
Account delete instruction link?
- Note :- This contents show on this link.
Where to put Server Url in Application?
- Select Project > go to Gradle Scripts> Gradle.properties
- Open Gradle.properties
- now if your Sever is http://www.abc.com so your service url like that
http://abc.com/
How to enable/disable RTL(Right To Left)?
- Open Android Studio > app > res > values > strings.xml
- Change isRTL to true if you want to enable or false if you want to disable
- Change all the text below in your language
How to change 'Splash Screen, Application Icon and MoreApp link'?
How To Change Application Icon- Open Android Studio > app > res >
- Rename your icon with ic_launcher.png and ic_launcher_round.png paste in all mipmap folders
- Open Android Studio > app > res > drawable-nodpi > splash.png or jpg
- Open Android Studio > app > res > drawable-night > splash.png or jpg
- Rename your splash screen image with splash.png or jpg and paste in drawable-nodpi and drawable-night folder
- Open Android Studio > app > res >values > strings.xml
- Enter your Play Store Apps Link inside "play_more_apps" string tag:
<string name="play_more_apps">https://play.google.com/store/apps/dev?id=7157478532572017100 </string>
How to generate Gmail login & firebase analytic file and replace google-service.json?
Open https://developers.google.com/identity/sign-in/android/start-integrating
- Create New Project
- How to generate SHA-1 key
- If not showing this option then follow this step
- File
- Settings
- Experimental
- Unchecked the 'Do not build gradle task list during gradle sync' and click 'OK'
- Go to file
- Sync project with Gradle files
- You will see the option on Signing reports under: Gradle -> Tasks ->Android -> Signing Report.'
- Download google-service.json file and replace
- Now generate SHA1 key with following this command follow this
- C:\Program Files\Java\jdk1.8.0\bin>keytool -list -v -keystore E:\your.jks -alias your
- SHA-1 key from google app signing certificate as follows
- Navigate to the Google Play Console and login
- Choose the application you are signing
- Go to setup –> Application integrity
- Copy /Download the SHA-1 or SHA-256 certificate fingerprint from the App signing certificate section

Open https://console.firebase.google.com/
After sign apk follow this
When Uploading bundle to Playstore
How To Setup Facebook Login ?
Open https://developers.facebook.com/ Documentation https://developers.facebook.com/docs/facebook-login/android- Create New App
- Select Facebook Login Option
- Choose Android
- Click next
- Enter your package name and default disply activity class name
- Create your hash key
- download openssl for windows https://code.google.com/archive/p/openssl-for-windows/downloads

- Debug apk generate hash key
- Note :- use this code to generate hash key for debug apk find from log cat. remove this code after you have generate hash key
- If you have any trouble creating hash key use this following code link https://developers.facebook.com/docs/facebook-login/android/advanced
- Sign apk generate hash key
- When you are uploading bundle in playstore there keyhash is changed so you need to generate again with app which is download from playstore.
- Now there is another app you have to install in your phone choose package name from dropdown then generate key.
Click here to download

- Enable single sign on for your app
- Copy your facebook_app_id and fb_login_protocol_scheme
- Open Android Studio >AndroidEBook_V12 > res > values > strings.xml
- Enter your facebook app id inside "facebook_app_id" string tag:
<string name="facebook_app_id">XXXXXXXXXXXXX</string> - Enter your fb login protocol scheme inside "fb_login_protocol_scheme" string tag:
<string name="fb_login_protocol_scheme">XXXXXXXXXXXXX</string>
- And click next all step

- Add your privacy policy link (check this instruction)
- Add your user data deletion link (check this instruction)
- Select category
- Go to setting > basic

- Enable in devlopment

- Allow advance access
- App Review > Permission and feature

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try {
PackageInfo info = getPackageManager().getPackageInfo(
"{your-package-name}", //Insert your own package name.
PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
}
} catch (NameNotFoundException e) {
} catch (NoSuchAlgorithmException e) {
}
...
keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64
Example :- keytool -exportcert -alias xxxxx -keystore E:\xxxxx.jks | "C:\Program Files\openssl-0.9.8e_X64\bin\openssl" sha1 -binary | "C:\Program Files\openssl-0.9.8e_X64\bin\openssl" base64
How to Generate Facebook Ads ID?
Shortly Facebook Audience Network will switch to Bidding from Waterfall
- Follow this url to use Facebook Audience Network bidding with Admob, Follow Step-1 and Step-2 - Integrating Facebook Audience Network with Mediation
- Use admob ads id in which facebook placement id is added as mentioned in above url
Below is detailed steps for generating PlacementIDs from facebook
Open and login in Facebook Developer Website :- https://developers.facebook.com/
- Click On My Apps
- Click On Create App
- If your app already exists then select your app
- Enter App Name
- Click On Products +
- Click On Set Up button of Audience Network
- Select your Business Manager Account or Create New One
- Enter your app name
- Click next
- Click On Add of Android Section
- Add your google app url if your app live
- Click on Submit
- Select the ad setup option
- Choose ad type
- Click on next
Generate Another Ad PlacementID:-
- Go to side menu
- Go to Integration > Properties
- Now select your app
- Now click on more option and click Create Placement
- Enter your ad placement name
- Select your ad type
- Click Create Placement below
- How to find your ad ids
Testing Facebook Ads inside app:-
- Go to side menu
- Click Testing inside Integration menu
- Turn On Testing enabled
- Ad your device advertising id to load facebook ads
- Find Advertising ID -> In your device go to Google Setting > Ads > Your Advertising ID
Note :- Disable Testing when you upload your app to playstore - Enter your app playstore url and click submit button
- Add Your Payment Account if you havent added
- Setup all details
Note :- To test facebook ads in your phone you have to either add your phone advertising id or you have to login to facebook app in your phone with the same account in which you have created app
How to Change One Signal Notification App Id in Application?
Get your Google Server API key and project number.
https://documentation.onesignal.com/docs/generate-a-google-server-api-key
How to Change One Signal App Id And Sender Id
- Open Android Studio > app > java > com.example.androidebook > util > YouApplication.java
- Enter your Onesignal App id
OneSignal.setAppId("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
How to Change One Signal Notification App Icon in Application?
How to Change One Signal Notification App Icon- Open Android Studio > app > res
- Rename your icon with ic_stat_onesignal_default.png and ic_onesignal_large_icon_default.png paste in drawable-mdpi folders
How to Change One Signal Id And Rest Key?
How to Send Notification From Admin?
- Open Admin Panel > Notification
- Enter title and message which are mandatory
- Upload Image if you want to show in notificaiton. This is optional
- If you want to show particular category, sub category, book and author select one option when click on notification. This is optional
How to change Ad network type and ad unit id?
Ads Instruction:
How to change interstitial Ad Count?
How to change native ad position?
How to change deep link?
- Enter your scheme inside "scheme" string tag:
<string name="scheme">XXXXXXXXXXXXX</string> - Enter your host inside "host" string tag:
<string name="host">XXXXXXXXXXXXX</string> - Enter your pathPrefix inside "pathPrefix" string tag:
<string name="pathPrefix">XXXXXXXXXXXXX</string> - Note :- If you have no any pathPrefix then set / sign
How to Find Package Name?
How to change package name in admin panel ?
Note :- Package name same in android project otherwise application not work
How to change app color ?
- Open Android Studio > app > src > main > res > values > colors.xml
- Open Android Studio > app > src > main > res > values-night > colors.xml
- values-night > colors.xml all color for night mode in this file
How to change app images ?
- Open Android Studio > app > src > main > res > drawable-night
- Open Android Studio > app > src > main > res > drawable-nodpi
- drawable-night folder for all image for night mode
How to Generate Signed AAB?(For Reference)
Create New Keystore
- Click Build > Generate Signed Bundle/APK
- Click On Create New or if you are updating app click choose existing
- Select Keystore Path
- Enter Keystore password and confirm password
- Enter any name for alias
- Enter key password and confirm password
- Choose Validity Years
- Fill rest of the details and click OK
- Enter keystore password, alias name, key password and genrate encrypted key export path file and click next
- Choose the signed build destination
- Click Finish
Note :- Please save the keystore and remember the keystore password, alias and key password. If you want to update app in future you have to use this keystore. With new keystore you cannot update your app
How to fill Data Safety Form?
- Open Playstore Console and open your app
- Click on App Content tab
- Click on Manage option of Data safety
- Click Next
- Select options as follows and click Next
- Go to Personal info and select Name, Email address, User IDs and Phone number
- Go to Photos and videos and select Photos
- Scroll down and go to Device and other IDs and select Device and other IDs and click Next
- Click On arrow on each data type you selected
- Select options as follows and click Save and click Next
- Do same for all other data types
- For Device and other IDs select options as follows and click Save and click Next
- Click Submit
Change App all graphics
You will find all image into /res/drawable-mdpi/,/res/drawable-hdpi/,/res/drawable-xhdpi/ folder. Just create your own graphics and replace those files. Create seperate graphics of different device screen sizes & place them into other drawble folders (drawable-hdpi & drawable-xhdpi) with same file name found at drawable-mdpi folder. Check here for more information: Devices and Displays & Supporting Multiple Screens.
Application Showcase in PlayStore
Once you will publish your app to Google Play or any other Android store, send us your app link. We will happy to showcase your app into our website & Codecanyon page.
Rating
If you like our app, we will highly appreciate if you can provide us a rating of 5. You can rate us from your Codecanyon Menu > Download page.
Credits
I've used folowing sources into this app:
- Gson
- Glide
- Admob
- EventBus
- Retrofit
- Calligraphy
- SmoothCheckBox
- CircleImageView
Once again, thank you so much for purchasing this app. As I said at the beginning, I'd be glad to help you if you have any questions relating to this app. No guarantees, but I'll do my best to assist. If you have a more general question relating to the apps on Codecanyon, you might consider visiting the "FAQ / Support" section and asking your question in the "Comments" section at Codecanyon app detail page.
Vishal Parmar
Viavi Webtech-India


