“Granth - Android Ebook App + Admin panel”

Created: 17/11/2019
Updated: 21/02/2020
By: iQonicthemes
Email: [email protected]

We are following CodeCanyon rules and regulation, so under this licenses you can only publish single product on play store. And you can't sell this source code anywhere. Please follow Standard Licenses: https://codecanyon.net/licenses/standard/

Basic Installation

To develop app you need to set up an Android studio.

Android Studio Setup Process

Android App Configuration

Open project in Android studio

Step 1:- Select ‘Import Project’ option and find your “granth_droid" Project

HTML Structure

Step 2:- Select your current project then click ok button and wait few minute

HTML Structure

Change ApplicationID

- Find build.gradle file inside app folder and click to open and change your applicationId

howtochangeappid

Change Application menu icon, background and app icon

- Open res folder inside open all drawable folder and all mipmap folder and replace your background images and icons here.

HTML Structure

Change Application name

- Open app gradle file and change your 'app_name' here

HTML Structure

Change app Font

- Click and open font folder and change ttf file

HTML Structure

Change color

- Open color.xml file and change colors

HTML Structure

Change server URL

- Open Constants.java file and change base_url value.

HTML Structure

Push Notification

Create a Firebase Project

The first step is to create a project in the Google environment.

Note: You need to have been logged in with a Google account which can use the Firebase console in order to walk through this tutorial.

You create a project with the Firebase console.

Follow the steps below to create new project.

  • Open the Firebase console.
  • Click "Add Project" and follow the steps upto creation of project.




  • After creation of project your screen looks like below.


  • Add Firebase to your Android app. Also download json file for future refrences.









Configure Firebase on App

We have already added code for sdk and other configuration for firebase.

Update your google-services.json file

Create New Account on OneSignal

OneSignal is used for send push notification into mobile and web. Fore more details about OneSignal

If you have own OneSignal then login and create project. If you does not have then register your account and create new project.

You create a project with the OneSignal.









Goto Firebase app and copy your Firebase server key and Firebase sender id.





Follow the steps until your project is not ready.

Configure OneSignal on App

We have already added code for sdk and other configuration for onesingal push notification. You have to change your onesignal app id into build.gradle file



Send Push Notification

To send push notificaiton you need to follow below steps





If you want to show image on push notification then select below option with your image url



If you want to open some url when user click on notificaiton then select below option with custom key "webUrl"

NOTE: Compulsory Key is "webUrl"







Create PAYTM account and get API keys

  • Click here to login with Paytm Developer account.

  • Goto Api Keys Section

    HTML Structure
  • Here we have two Tabs 'Test API Details' and 'Production API Details'

    • 'Test API Details' is used for testing purpose
    • 'Production API Details' is used for live transation

  • NOTE: You need to activate your account to view your Production API Keys

  • Create Your testing credentials

    HTML Structure

    HTML Structure
  • Activate your account

    HTML Structure

  • To enable paytm option in your app, add your PAYTM credentials into Mobile section in Admin panel.

    HTML Structure

    Change Paytm service environment in android code by changing below line PaymentUtil.java file on line no 91

    • For Sandbox Environment: PaytmPGService Service = PaytmPGService.getStagingService();
    • For Production Environment: PaytmPGService Service = PaytmPGService.getProductionService();

Braintree Paypal Payment Configurations

Create Braintree Sandbox Account

Braintree Direct is a set of tools to accept and process cards, PayPal, and wallets such as Apple Pay, Google Pay, and Venmo (US only).

Follow the below steps to enable braintree paypal payment in your app



Create PayPal business sandbox account

In order to link a PayPal sandbox test account to your Braintree sandbox account, you will need the API credentials for that PayPal sandbox test account.

  • Create a PayPal business sandbox account:

    • Login into Paypal Developer Dashboard.
    • Navigate to Sandbox > Accounts
    • Click Create Account
    • Select the same Country as your Braintree sandbox account
    • Select the account type as Business
  • Go to the Create New App page

    • Create an app to get sandbox API credentials
    • Select the same sandbox developer account as the test account created in above step
  • Note the following Sandbox API Credentials for the new app you created:

    • Email address associated with this app
    • Client ID
    • Secret

Link Paypal on Braintree

Once you have those PayPal sandbox API credentials, enter them in your Braintree sandbox:

  • Log into your Braintree sandbox Control Panel

  • Navigate to Settings > Processing > Payment Methods > PayPal
  • Click Link Sandbox
  • Enter the Email address, Client ID, and Client Secret for your PayPal sandbox test account
  • Click Link PayPal Sandbox

Go Live

Note: Your sandbox account is not linked to your production account in any way. Nothing created in the sandbox will transfer to production. This includes processing options and recurring billing settings. Your login information, merchant ID, and API keys will also be different.

Get production credentials

Log into your production account as the API user to obtain your API credentials. And add the production credentials to admin panel as mentioned in above steps.

Stripe Payment Gateway

The new standard in online payments

Stripe is the best software platform for running an internet business. We handle billions of dollars every year for forward-thinking businesses around the world.

Generate API Key for Stripe payment

Click here generate API Key for payment

Note: You have to generate separate API Keys for the test and live modes. No real money is used in test mode.


Change Stripe Payment Key

- Open secrets.xml file and replace your Stripe Payment key with "stripe_publisher_key" and "stripe_secret_key"

HTML Structure


Remove Stripe payment

We are recommended you to follow only second step if you don't know about dependency and code

If you want to remove Stripe payment gateway option then follow below steps:

Step 1: Goto App level build.gradle file, find and remove below dependency line:

implementation 'com.stripe:stripe-android:16.10.0'

HTML Structure

Note: If you have remove dependency from build.gradle then also remove classes dependencies from related files

Step 2: Goto File -> App -> res -> layout -> activity_shopping_cart.xml file

Find "rb_stripe" Radio Button and add this line

For Ex: android:visibility="gone"

HTML Structure


Test Cards Details for stripe payment
There are several test cards you can use in test mode to make sure this integration is ready. Use them with any CVC, postal code, and future expiration date.

Number Description
4242 4242 4242 4242 Succeeds and immediately processes the payment.
4000 0025 0000 3155 Requires authentication. Stripe will trigger a modal asking for the customer to authenticate.
4000 0000 0000 9995 Always fails with a decline code of insufficient_funds.
Click Here For more details about test Cards Details for stripe payment

How to update future release code to existing source code

Many have question on their minds. How can i update existing code with new changes if future release will come?

No worries - We are provided documentation which help you to update new changes into existing source code.

Just go through this Update Existing Code documenation link.

Support & Assistance

Faced a problem? Need assistance with the product? No worries – our customer support team is always ready to help you.

  • Support requests are being processed on business days from 9:00 to 18:00 (GMT +05.30) [generally] within 24h to 48h in the order they were received.
  • We suggest, while our team reviews your support request, please read the documentation that comes in the zip file of Codecanyon. You can download it from ThemeForest: https://codecanyon.net/downloads
  • We are in GMT+5:30 timezone. We address all the support queries 6 days weekly (Sunday off).
  • If any support ticket has no response from the item owner for 7 days, the ticket will be considered closed. If you need further assistance you can create another ticket or drop us an email asking to re-open the ticket for you.
  • Have pre-sales questions or concerns, please write to us via our website contact page
  • If you like our product and support then please drop a rate and write a review at: https://codecanyon.net/downloads

Note:We have launched our support portal on Desky. Please raise a ticket here at https://iqonic.desky.support/

Refund Policy

  • We don't offer a refund. (If the item is downloaded)
  • Please read the description and compatibility content thoroughly before purchasing as we don't offer a refund if you buy it by mistake.

Greetings from Iqonic Design

We are actively looking forward to your feedback in order to make our product more efficient for you. Thanks again!