Closed hemrajKumawat1 closed 1 year ago
Thank you for creating your first issue. We appreciate your help in making this project better. We will look into it, and get back to you soon.
Any updates, or this library is deprecated?
Hi, Thank you for using this library. Above issue has been fixed in latest version. https://github.com/afreakyelf/Pdf-Viewer/releases/tag/v2.0.1
Hello, I have the same error!
version I have v2.0.5 Caused by java.lang.NullPointerException: at com.rajat.pdfviewer.PdfViewerActivity.onCreate(PdfViewerActivity.kt:226)
content.pdfPreview.initWithUrl(
arg.path,
lifecycleCoroutineScope = lifecycleScope,
lifecycle = lifecycle
)
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rsmssb.oldpaper/com.rajat.pdfviewer.PdfViewerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
and using this
startActivity(PdfViewerActivity.Companion.launchPdfFromUrl(PdfViewer.this, path, "PDF", "", false) .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));