Native Android

Books4u Android Ebook App Source Code

Upload PDF or Many Other Format From Admin Panel, User Will be able to Download Them or View Online in the Android App. Make Money With This Great App.

Documentation To Edit This App:

Which Android Studio version is needed?

Latest Android Studio version is recommended, which can be downloaded from here:

How to open the project in Android Studio?

  1. Open Android Studio > Open an Existing Android Studio Project > Select Your Project build.gradle file > ok
  2. Select Project

How to change the package name?

You can change it easily from Android Studio. Here are the steps: You can change it easily from Android Studio. Here are the steps:

  1. In the Project pane, click on the little gear icon.Uncheck/Deselect the Compact Empty Middle Packages option.
  2. Your package directory will now be broken up into individual directories.
  3. Individually select each directory you want to rename, and: Right-click selects RefactorClick on RenameIn the Pop-up dialog.
  4. Click on Rename Package instead of Rename Directory Enter the new name and hit RefactorAllow a minute to let Android Studio update all changes.
  5. 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.

How to change app name?

  1. Open Android Studio > Books4u > res > values > strings.xml
  2. Enter your app name inside “app_name” string tag:
    <string name="app_name">Books4u</string>
  3. If you want to change text or either its language, it would also change from string.xml file

How to change Firebase Credentials for Dynamic link?

You can change it easily . Here are the steps:

  1. Login into Firebase, create the project with the required name.
  2. After creating the project, you have to select “Android” then you have to add App Credentials
  3. Add “App package name”, “App name” & debug SHA-1 key (How to find debug SHA-1 key)
  4. After adding all the above information, you have to download the “google-service.json” file by clicking on the “Download Google Service file:
  5. Copy/paste the downloaded file into the root folder of the project, it’s path would be “comnews/app”
  6. Write your “Url Hostname” in build.gradle (app) in front of hostName in manifestPlaceHolder For example your URL is “http://www.your_website.com/” then “www.your_website.com” is your hostName, check out the screenshot

Note : You have to follow below 2 screenshots after the publishing of app at playstore.

How to change AdMob id?

  1. Open Admin panel & click dashboard, it would enable you to configure AdMobkeys
  2. Sign in to your AdMob account.
  3. Create a new App by giving the package name of the app you want to integrate AdMob. Once the App is created, you can find the APP ID on the dashboard which looks like ca-app-pub-XXXXXXXXX~XXXXXXXXX
  4. Select the ad format and give the ad unit a name
  5. Once the ad unit is created, you can notice the Ad unit ID on the dashboard. An example of ad unit id look like ca-app-pub-10XXXXXXXX/XXXXXXXXXXX
  6. Add “Publisher Id” in publisher id text field
  7. Add “Privacy Url” into publisher URL in the text field

Where to Change Colors?

  1. Open Android Studio > Books4u > res > values > colors.xml
  2. Open colors.xml
  3. You can changes the colours

How & Where to Change Serverl Url ?

  1. Select Project > go to com.haris.books4u.ConstantUtil package > Constant.java
  2. Enter your Server Url inside “BASE_URL”
    public static String BASE_URL="YOUR_SERVER_URL"
  3. Your BASE_URL would be like “http://www.example.com”

How to configure Facebook Login?

  1. Go to “Firebase Console” in the “Authentication” section and enable Facebook Login and add the Name & Email
  2. Go to “Facebook Developer” the link is given developers.facebook.com and Create a new app
  3. Then Go in Setting > Basic Fill privacy policy and application nature/category and press save
  4. Then Go in Setting > Basic Add development platform
  5. Then Go in Setting > Basic > development platform Select Android
  6. Got to ConstantUtil -> Constant.java and find ‘isFacebookHashKeyRequired’ make it to ‘true’
  7. Then Run the project and copy the Hash key from Logcat just like shown in the picture
  8. Copy & paste App package name, Default class name path & hash key in Facebook developer just like shown in picture
  9. Then Go in Setting > Basic > development platform Select Android
  10. Select ‘Use this Package name’ & make the app public
  11. Then Go in Setting > Basic > development platform Select Android
  12. Copy app id & paste in string.xml file in “facebook_app_id” , check out picture
  13. Now copy & paste app id, app secret in the Firebase Authentication section
  14. Go to Product -> Facebook Login -> Settings & paste the OAuth redirect URL, check out pictures
  15. Check out the picture section for further clarification.

Note: After publishing, go to Release Management by selecting a specific app then click the “App Signing” option. You would have to copy “SHA-1” keys from the “App Signing Certificate”

Go to link which is given tomeko.net and just paste the SHA – 1 key and click “Convert button” , it would give you HASH key now you have to enter that HASH KEY into Facebook -> Setting – > Hash key field -> Save project

How to configure Google Login?

  1. Go to “Firebase Console” in “Authentication” section and enable Google Login and add the Name & Email
  2. Go to “Google Login” the link is given Google Login Integration and select project as well as add your email along with Sha -1 keys How to generate Debug SHA-1 key
  3. Follow screenshot for further assistant

Note: When you publish the app to playstore , you must have to submit publishing apk “SHA-1” keys in “Google Login” just you add it right now for debug sha-1 keys

How to change ‘Splash Screen and Application Icon?

How To Change Application Icon

  1. Open Android Studio > app > res > drawable folder > app_icon.png
  2. Rename your icon with app_icon.png and paste in the drawable folder

How To Change Splash Screen

  1. Open Android Studio > app > res > drawable > bg_home.png
  2. Rename your splash screen image with bg_home.png and paste in drawable folder

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

  1. Open Android Studio > App > build.gradle (Module:app)
  2. Enter your Onesignal App id inside“onesignal_app_id”
    onesignal_app_id ="Your onesignal_app_id"

How to Import Backend Files?

Below are the steps to upload backend files to your Server

  1. Click on the “File Manager”
  2. Then click on the “public_html” folder
  3. Now select “www” which is placed in “public_html”
  4. Open backend folder from Books4u which you download from CodeCanyon then you can see compressed Books4u.zip
  5. Click on the upload button & select Books4u zip file from the backend folder
  6. It would be uploaded successfully.

How to Import & Configure Database?

  1. Open MYSQL Databases for creating & configuring database
  2. Create database & write its name
  3. Create new user for database by writing username & password for database
  4. Copy the credentials like Username & password for later use in config.php file
  5. Add the user to required database by selecting database & its user which you want to add
  6. Click “phpMyAdmin” and select your database from list & import the sql file from Books4u > backend > db > books4u.sql

How to configure Database in config ?

  1. Select File Manager > public_html > www > config.php
  2. Edit config.php file & replace with your credentials
  3. Enter your database name inside “db_username” string tag:
    $db_username="database_username"
  4. Enter your database name inside “db_password” string tag:
    $db_password="database_password"
  5. Enter your database name inside “db_name” string tag:
    $db_name="your_database_name"
  6. Save it & its configured successfully
  1. Select File Manager > public_html > www > admin_panel > config.php
  2. Edit config.php file & replace with your credentials
  3. Enter your database name inside “database_username” string tag:
  4. Enter your database name inside “database_password” string tag:
  5. Enter your database name inside “your_database_name” string tag:
  6. Save it & its configured successfully

How to change TinyMCE editor api key?

Below are the steps to to get & change TinyMCE editor api key

  1. Go to TinyMCE and Create free account on it
  2. After creating account , give your domain name on which you want to show TinyMCE editor
  3. After giving domain name , it would give you api key
  4. Now copy the api keys & go to File Manager > public_html > www > admin
  5. Find post-edit , post-insert , feature-edit , feature-insert , artist-edit , artist-insert & policy.php
  6. Add your api keys by replacing “YOUR_TINY_MCE_API_KEY_HERE” with your api key

If you have any questions or problems regarding setting backend, please feel free to message here… Get Support

Click Below Link to Download:

Download Free

Leave a Comment