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);
How to validate email address in Android with Kotlin?
Could not inflate Behavior subclass android.support.design.widget. BottomSheetBehavior How resolve
How to Get bitmap from drawable: Android
How to get complete address from latitude and longitude?
What are the notifications available in android?
How to start a new activity on button click
How to avoid multiple button click at same time in android?
Check List for Generate Signed APK Android
How to get screen size (width,height) in Android?
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
How can i comment inside xml file in android studio?
Duplicate files during packaging of APK” build.gradle issue: Android Studio
Android FCM not receiving notifications when app is removed from background
What happens next when the device switches between portrait and landscape?
What is "shared preferences" in Android ?
How to convert DP to Pixel and Pixel to Dp?
How to Generate signed apk with android studio
Hide/Disable soft keyboard on Activity launch: Android
How to extract date and time from Long type variable in Kotlin on Android "
What are Android Versions available?
Is There A Way To Get The Source Code From An APK File? (or) How to decompile apk?
How to check Android version?
How do i load image from drawable folder in Jetpack Compose?
How to save activity State in Android?
What is Android?
INSTALL_FAILED_INVALID_APK: Split lib_slice_9_apk was defined multiple times. It is possible that th
What is ANR in android?
How to install/ uninstall apk by command line ADB
Error: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path
What is the Different Between val and var in Kotlin?
How to convert milli seconds to hours, minutes and seconds in Android?
Google play store rejected my app due to SMS permission I removed SMS permission from the manifes
Intent for Drive PDF Viewer - How to open PDF in Google Drive with intent
How to copy database from assets folder in android using kotlin
'constructor Handler()' is deprecated. Deprecated in Java, How to use Handler() class in And
How to stop EditText focus at Activity startup in Android?
What is NetworkOnMainThread Exception?
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
What is ANR? How to avoid and resolve it?
What is the difference between match_parent and fill_parent?