0

i want to get pdf files from firebase and view them through my app. how can i do this?

this is my firebase console and my pdf file is inside PDFfiles folder

This pdf is inside PDFfiles folder

How can i show them in my app's activity to view it by a user?

Frank van Puffelen
  • 499,950
  • 69
  • 739
  • 734
  • To download files from Firebase Storage on Android, see https://firebase.google.com/docs/storage/android/download-files. To show a PDF from a URL on Android, see: https://stackoverflow.com/questions/23240469/open-online-pdf-file-through-android-intent – Frank van Puffelen Jan 10 '21 at 15:06
  • I have uploaded some PDF files to firebase storage.it is inside storage/PDFfiles/file.pdf, i did ot upload it through my app,i uploaded it by firebase console. now i want users to access it through my app and view it by any pdf viewer in user's phone. Can you please help me, i am stucking here for somedays, HELPS WOULD BE APPRICIATED! Thanks! – Ashrik Ahamed Jan 12 '21 at 14:47
  • I gave you two links already. Did you check those out? Were you able to download the file based on that? If not, what went wrong? – Frank van Puffelen Jan 12 '21 at 15:27
  • Thank you for the quick reply sir:) i cannot understand properly what those ducumentations are explaining. i cannot download it from firebase.i am stucking i need help.i need a perfect coding explaination,how to do this. THANK YOU:) – Ashrik Ahamed Jan 12 '21 at 18:27
  • Without seeing what you've done, it is unlikely that anyone here will do a better job explaining how to download a file than the product documentation that I linked. ¯\\_(ツ)_/¯ – Frank van Puffelen Jan 12 '21 at 19:12
  • Ok sir thank you for your time,i will try somewhere! :) – Ashrik Ahamed Jan 12 '21 at 19:27

0 Answers0