Make PDF Reader with Firebase in Android Studio – Earn Money

PDF Reader App with Firebase in Android Studio- Store the PDF file into firebase Storage and fetch it and Display PDF using pdfviewer I got many messages asking how to store and fetch PDF files in Firebase Storage.

So here is the detailed post explaining about Uploading PDF files in Firebase Storage and Fetching those uploaded files from Firebase Storage. I already posted a tutorial about the same thing but with image files. You can check that post from the below link.


  • Setup Firebase account and add your project.
  • Click on “Storage” from left Menu
  • than add your PDF files
  • after that in your android project create recycle view or use list view to view data
  • use PDFviewer library and AsyncTask to Display Data
<img src="pdf with firebase app.png" alt="pdf with firebase app">

IMP link

Firebase Setup: (
Firebase dependency : (

Dependency in project:

  • Firebase Core: ‘’
  • Analytics:
  • Cloud Messaging:
  • Cloud Storage:
  • In-App Messaging:

Note: If your Are using the new version of library than you may get Error of AndroidX.

Solution:You need migrate project into AndroidX.
If You have Any Queries About this Comment it in details

Creating a New Project

So again we will start by creating a new project. I just created a project named FirebaseStorage.
After creating the project add Firebase Storage and Firebase Database to your project (Go to tools->firebase).
Creating UI

PDF Reader with Firebase in Android Studio

Uploading PDF in Firebase Storage PDF Reader with Firebase in Android Studio


Now here comes the main task of this post which is uploading PDF files to the storage. The uploading is done on the Main Activity so come inside and write the following code.

Firebase Tutorial PDF Download

There is no built-in support for reading PDF files on Android, which is kind of a shame, especially since iOS has native support for the format. The vision must have been that user’s will select their own favorite PDF readers app.


This tutorial is about:
✓Create PDF app.
✓Display Specific or all pages from PDF
✓Display PDF from Mobile Phone.
✓Add padding between pages.
✓Firebase Integration real time data storage
✓Scroll PDF pages vertically or Swipe horizontally.

Note- For Publish on play store App , choose “Start in locked mode” in firebase than proceed the work.

<img loading=

Note- For No publish app on play store only for texting purpose than choose “Start in Test mode ” in firebase than proceed the work.

<img loading=

Download Source Code

Click below to get the full source code android PDF Reader application.

PDF Reader APK Download : Click Me

Get the full source code android PDF Reader app with firebase application.

<img src="download-btn.png" alt="PDF Reader app ">


We have successfully created a PDF Reader with Firebase in Android Studio Android application .


Wallpaper Android App- CLICK HERE

All IN ONE Status Saver App – CLICK HERE

Photo Video Maker Android App – CLICK HERE

Video Downloader Android App – CLICK HERE

College Student Portal System App – CLICK HERE

Best Status and Sayari Android App – CLICK HERE

Make Quotes Premium Android App – CLICK HERE

This image has an empty alt attribute; its file name is like.png

Don’t Forget to Share this Post.




Hey, I'm Deepika a professional blogger, web designer, Android developer and software engineer. I like to gain every type of knowledge that's why i have done many courses in different fields like engineering and technology. I love thrills and travelling to new places and hills.
0 0 votes
Article Rating
Notify of
1 Comment
Newest Most Voted
Inline Feedbacks
View all comments
Aarav Halvadia
Aarav Halvadia
7 months ago

Please make an movie streamer app with firebase real time data.
Your apps are awesome.