How to Get List of Videos from Firebase Cloud Storage in Android Studio Using Java

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 13

  • @FffELARYS
    @FffELARYS Год назад

    when updating, the position of the videos will change. will you make it so that it does not change?

  • @alone78926
    @alone78926 Год назад

    all well good but when click arrary list then dose not work and vedio play?plzz raplay....

  • @hoaiang1212
    @hoaiang1212 3 месяца назад

    Tôi không thấy vìdeo hiển thị trên app. ngài có thể giúp tôi được không ?

  • @Goldenbook999
    @Goldenbook999 7 месяцев назад +1

    How to modify this code to display pdf file......
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setDataAndType(uri,"video/*");
    startActivity(intent);

    • @EverydayProgrammer
      @EverydayProgrammer  7 месяцев назад

      set "application/pdf" instead of "video/*"

    • @Goldenbook999
      @Goldenbook999 7 месяцев назад

      @@EverydayProgrammer Thank you very much! i did

    • @Goldenbook999
      @Goldenbook999 7 месяцев назад

      @@EverydayProgrammer the picture of the book does not appear in the list of books.
      Glide.with(context).load(arrayList.get(position).getUri()).into(holder.imageView);
      How do I convert this code?

    • @EverydayProgrammer
      @EverydayProgrammer  6 месяцев назад

      private Bitmap displayPdfPage(String pdfFilePath) throws IOException {
      ParcelFileDescriptor fileDescriptor = ParcelFileDescriptor.open(new File(pdfFilePath), ParcelFileDescriptor.MODE_READ_ONLY);
      PdfRenderer pdfRenderer = new PdfRenderer(fileDescriptor);
      PdfRenderer.Page page = pdfRenderer.openPage(0);
      Bitmap pageBitmap = Bitmap.createBitmap(page.getWidth(), page.getHeight(), Bitmap.Config.ARGB_8888);
      page.render(pageBitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
      page.close();
      pdfRenderer.close();
      return pageBitmap;
      }
      Use the above function to get pdf image but make sure to download the pdf file first and then parse the downloaded file path to the above function and it will return the first page of the pdf as bitmap.

    • @Goldenbook999
      @Goldenbook999 6 месяцев назад

      @@EverydayProgrammer You need to display the pdf image in Firebase

  • @itsMeRem684
    @itsMeRem684 Год назад +1

    How about image sir

  • @HenryfPichardog
    @HenryfPichardog Год назад +1

    😍