We can open PDF in google drive by below code Uri pdfUri = Uri.parse("pass you file path");
Intent shareIntent = ShareCompat.IntentBuilder.from(this)
.setText("Share PDF doc")
.setType("application/pdf")
.setStream(pdfUri )
.getIntent()
.setPackage("com.google.android.apps.docs");
startActivity(shareIntent);
What is Intent? What is the difference between an implicit intent and an explicit intent?
Symmetric vs Asymmetric Encryption in Android Server - RRutors
Set Activity to Fullscreen Mode in Android - RRutors
How do I check in SQLite whether a table exists?
How to convert milli seconds to hours, minutes and seconds in Android?
How to find Android Device UDID or unique ID?
What happens next when the device switches between portrait and landscape?
How to copy database from assets folder in android using kotlin
FCM Not Receiving Notifications in Android - RRutors
How to Use Deprecated Handler() in Android - RRutors Guide
Open PDF in Google Drive with Intent in Android - RRutors
Android Studio project R can't find
What is Application?
What is Context?
How to Generate signed apk with android studio
Key Points to remember while develop the Android Application.
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
How to Get bitmap from drawable: Android
How to avoid multiple button click at same time in android?
Hide/Disable soft keyboard on Activity launch: Android
ERR_ACCESS_DENIED in Android Webview with sdk 30
Explain Fragment Life Cycle
How can i comment inside xml file in android studio?
How to get screen size (width,height) in Android?
Fix Android Emulator Kill Error When Running Your App
How to validate email address in Android with Kotlin?
What are the notifications available in android?
How to get an image resource by it's name in android?
How to stop EditText focus at Activity startup in Android?
Decompile APK Files: How to Get Source Code - RRutors Guide
What is Android Fragments?
What is the difference between match_parent and fill_parent?
How to check Android version?
INSTALL_FAILED_INVALID_APK: Split lib_slice_9_apk was defined multiple times. It is possible that th
Check List for Generate Signed APK Android
Add Jar/Library Files as Dependency in Android Studio
What is Android?
Fix Error: Use JsonReader.setLenient(true) for Malformed JSON
How to reduce APK package size?
How To Set Text Color Programmatically Android TextView?