Android Studio App open PDF file with a built-in PDF viewer
Android Studio Android App open PDF file with a built-in PDF viewer download here Create a new project "Empty Activity" Language "Java" Minimum API 25 1. Create an assets folder and copy the pdf file into it. Right on the app > New > Folder > Assets Folder 2. replace all codes in build.gradle (Module: app) ---------------------- apply plugin: 'com.android.application' android { compileSdkVersion 28 buildToolsVersion "29.0.2" defaultConfig { applicationId "com.xyz.xyzratebook" minSdkVersion 25 targetSdkVersion 28 versionCode 4 versionName '4.0' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" packagingOptions { // exclude unused native so file, ARMEABI has been removed in NDK r17. exclude "lib/x86/**" exclude "lib/x86_64/**" exclude ...