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 happens next when the device switches between portrait and landscape?
What are symmetric and asymmetric encryption in the way Android interacts with the server?
How to validate email address in Android with Kotlin?
'constructor Handler()' is deprecated. Deprecated in Java, How to use Handler() class in And
What is Application?
How do I generate random numbers in Dart?
How can i comment inside xml file in android studio?
Error: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path
How to reduce APK package size?
Android Activity FullScreen - How to set activity to fullscreen mode in Android?
Google play store rejected my app due to SMS permission I removed SMS permission from the manifes
ERROR Android emulator gets killed when I try to run my application and choose an emulator it ret
How to start a new activity on button click
How to add jar/library files as a dependency in Android studio gradle file
How to stop EditText focus at Activity startup in Android?
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
How to get an image resource by it's name in android?
What is the difference between match_parent and fill_parent?
What is Context?
How to extract date and time from Long type variable in Kotlin on Android "
How to convert DP to Pixel and Pixel to Dp?
Duplicate files during packaging of APK” build.gradle issue: Android Studio
INSTALL_FAILED_INVALID_APK: Split lib_slice_9_apk was defined multiple times. It is possible that th
How To Set Text Color Programmatically Android TextView?
Invoke-customs are only supported starting with android 0 --min-api 26
What are the notifications available in android?
Intent for Drive PDF Viewer - How to open PDF in Google Drive with intent
What is "shared preferences" in Android ?
How to get complete address from latitude and longitude?
How to find Android Device UDID or unique ID?
Android Studio project R can't find
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
What is the Different Between val and var in Kotlin?
Explain Fragment Life Cycle
Hide/Disable soft keyboard on Activity launch: Android
What is Android Fragments?
What is Android?
How to save activity State in Android?
Android FCM not receiving notifications when app is removed from background
Could not inflate Behavior subclass android.support.design.widget. BottomSheetBehavior How resolve