I have a uri for a PDF file (which I am storing on Firebase Storage) and I am trying to display it on the screen to the user. I have found a bunch of people talking about the PDF Renderer found in API 21 and later but the answers I have found seem outdated and don't work. Here is my code so far
//Get image from database
StorageReference pdfRef = storageReference.child(userID + "/reports/" + reportID);
pdfRef.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
public void onSuccess(Uri uri) {
}
});
What is the simplest way to take the uri I already have and display the PDF which it leads to?