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?
How to check Android version?
Fix Behavior Subclass BottomSheetBehavior Exception - RRutors
What are the notifications available in android?
How to convert milli seconds to hours, minutes and seconds in Android?
ERR_ACCESS_DENIED in Android Webview with sdk 30
How to get complete address from latitude and longitude?
What is the Different Between val and var in Kotlin?
What is "shared preferences" in Android ?
Set Activity to Fullscreen Mode in Android - RRutors
What is ANR in android?
How to Use Deprecated Handler() in Android - RRutors Guide
How to validate email address in Android with Kotlin?
Extract Date and Time from Long Type Variable - RRutors
What is the difference between match_parent and fill_parent?
How to get screen size (width,height) in Android?
How do I generate random numbers in Dart?
Fix Android Emulator Kill Error When Running Your App
Fix Error: Use JsonReader.setLenient(true) for Malformed JSON
What are Android Versions available?
FCM Not Receiving Notifications in Android - RRutors
What is NetworkOnMainThread Exception?
Fix Duplicate Files in APK Build.gradle Issue - RRutors
Fix Play Store Rejection Due to SMS Permission - RRutors
What is ANR? How to avoid and resolve it?
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
How to find Android Device UDID or unique ID?
How to stop EditText focus at Activity startup in Android?
Add Jar/Library Files as Dependency in Android Studio
How to save activity State in Android?
How to convert DP to Pixel and Pixel to Dp?
How do I check in SQLite whether a table exists?
How to reduce APK package size?
How to copy database from assets folder in android using kotlin
How to Get bitmap from drawable: Android
Hide/Disable soft keyboard on Activity launch: Android
Check List for Generate Signed APK Android
How to start a new activity on button click
What is Context?
Explain Fragment Life Cycle