Blood Bank App with Admin & Material Design v3.0

Made for blood donors & peoples in need of blood


Thank you for purchasing our Application. If you have any questions that are beyond the scope of this help file, please feel free to send your message via comments or at almahirhub@gmail.com. Thanks so much!

I've included items listed:

  1. Android Source Code
  2. Server Backend Code

Here's how to setup Admin Panel!

For local Server

  1. Unzip the Main folder & goto Admin Panel folder
  2. you'll find BloodBank_Admin-v3.1.0.zip, Unzip it
  3. Copy the folder to your server directory (most likely C://xampp/htdocs/ if using xampp server)
  4. Start the server
  5. Create a database
  6. just visit "http://localhost/YourFolder/install"
  7. Fill the form with correct information ie Database created in previous steps. & other info. & than click next
  8. fill your admin login details & click next
  9. it will take approximately 10 seconds to complete if information is correct. 
  10. & You're done... 

For Live Server

  1. Unzip the Main folder & goto Admin Panel folder
  2. you'll find BloodBank_Admin-v3.1.0.zip
  3. Upload the zip file to your server directory prefferable is your main directory (public_html) or a sub domain's main folder. 
  4. just visit "http://YourDomain.com/install" or "http://YourDomain/YourFolder/install"
  5. Fill the form with correct information ie Database created in previous steps. & other info. & than click next
  6. fill your admin login details & click next
  7. it will take approximately 10 seconds to complete if information is correct. 
  8. & You're done... 
  9. For security reasons, please delete install directory after successfull installation!

Updating from 3.0.x to 3.1.0

  1. Take a backup of previous admin panel source code & Database
  2. Upload new source code to server goto your backup directory
     > application > config > database.php
  3. Copy this file to your current new directory
     > application > config 
    folder
  4. Login to your admin panel & visit
     your_admin_panel_domain.xyz/migrate 
  5. It will refresh to login page if succeeded, Good luck

 

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

https://developer.android.com/studio

  1. Open Android Studio
  2. Open an Existing Android Studio Project
  3. Select Your Project Folder or build.gradle file inside project folder
  4. Click Ok
  5. Done

     Select Your project folder and you're done...

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 in individual directories.
  3. Individually select each directory you want to rename, and: Right-click it Select Refactor
  4. Click 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.
  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.

Note: When renaming com in Android Studio, it might give a warning. In such case, selectRename All.

 

 

 

 

 

Open Android Studio >Your app> res > values > strings.xml

Enter your app name inside "app_name" string tag: 

<string name="app_name">Your new Name</string>
 

Step 1: Open project in Android Studio

Step 2: After successfull Gradle sync 

Right click on res > New > Image Asset

Change logo

Step 3: Choose Your logo from browse button. 

Do step 4 if you want .. else click Next

Note: Logo recommended size is 512 x 512

Step 4: Change background color as you want & Than click next

Step 5: Click Finish

 

Open project in Android studio

Method 1: Press shift key 2 time (Double shift), it will open search file box... 

type UrlHelper & open this file

Method 2: if you're getting problem with this method than 

goto app/java/your-package-name/utils/UrlHelper.java

After Opening the file. 

look for this

public static final String SERVER_URL = "http://bloodbankv3.almahirhub.com/"; 

Replace "http://bloodbankv3.almahirhub.com/" with your Admin panel Url

public static final String SERVER_URL = "http://your-admin-panel.com/"; 

NOTE: Don't forget forward slash at the end "/"

Create a project in Google cloud by Clicking Here

After creating project

Goto Menu > APIs & Services > Credentials

& Click Create Credentials > Api Key

This will create an api key for you... if you want to restrict this key with your project only you can click Restrict key

in 

Application restrictions

Click Android Apps & Click on Add an item below
Give your app package name & Your SHA1 Fingerprint there.. & click Done
 
& in 

API Restrictions 

Select Restrict key &
Click Save

 

Enable API Libraries

Goto Menu >>  Library

In maps section click view All

Enable these all

 

NOTE: it will take 5 minute to 1 hour to work everything fine. 

 

Open project in Android studio

Method 1: Press shift key 2 time (Double shift), it will open search file box... 

type google_maps_api & open this file

Method 2: if you're getting problem with this method than 

goto app/res/values/google_maps_api.xml

After Opening the file. 

look for this

<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">
    AIzaSyDsFg6fd2lwqaxzsxN_W04Ox4_xcJfgbX4
</string>

Replace with your Api key...

  1. Get Your OneSignal app_id from onesignal.com
  2. Open Project in Android Studio
  3. Open build.gradle (Module: app)
  4. replace key of 'onesignal_app_id'  according to your OneSignal app id.
  5. sync gradle

(You can Watch video tutorial below)

        Just go here and download the config file... 

* replace google-services.json file in 

             ProjectName/app/google-services.json

  with downloaded file. 

& sync gradle

If above video is not working than you can visit the link. Click Here

OTP verification

It's time to add Firebase to your app. To do this you'll need a Firebase project and a Firebase configuration file for your app. To create a Firebase project:
Go to the Firebase Console
Click Add project, then select or enter a Project name.
If you have an existing Google project associated with your app, select the project from the Project name dropdown menu.
If you don't have an existing Google project, enter a new Project name.
Follow the remaining setup steps, then click Create project (or Add Firebase, if you're using an existing Google project).
Firebase automatically provisions resources for your Firebase project. The process typically takes a few minutes. When the process completes, you'll be taken to the overview page for your Firebase project in the Firebase console.
Now that you have a project, you can add your Android app to it:
Click Add Firebase to your Android app and follow the setup steps. If you're importing an existing Google project, this may happen automatically and you can just download the config file.
When prompted, enter your app's package name. It's important to enter the package name your app is using; this can only be set when you add an app to your Firebase project.
During the process, you'll download a google-services.json file. You can download this file again at any time.
After you add the initialization code, run your app to send verification to the Firebase console that you've successfully installed Firebase.

Now
OTP Authentication Enable This API update firebase project app with your sha-1 & sha-256 keys for debug or if you want it to work in release, goto your play console app setup > app signing, you'll find your sha-1 and sha-256 keys there, add those keys to your firebase project. Goto your project overview and select Authentication from side navigation. Goto Sign-in method and turn on the Phone Authentication. Now it's time to download google-services.json file... SDKgoogle-services.json file with your downloaded google-services.json file.

Google maps or OTP is not working?

Google maps Try rechecking that you’ve placed your api in correct file… google api key files will be found in two places first is debug second is release first of all check if you’ve correctly placed your api key in required file… secondly, after uploading to playstore you’ve to put play console app signing keys to your google console/cloude or firebase project, click on your app in play console, goto

 setup > app signing
you’ll find
sha-1 & sha-256
keys there, put them to your firebase or google console/cloude project. after some time it will start working update firebase project app with your current
sha-1 & sha-256
keys for debug or if you want it to work in release, goto your play console app setup > app signing, you’ll find your
sha-1 and sha-256
keys there, add those keys to your firebase project.

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
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.

I've used the following images, icons or other files as listed.


Once again, thank you so much for purchasing this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist. If you have a more general question relating to the themes on ThemeForest, you might consider visiting the forums and asking your question in the "Item Discussion" section.