D Deepak Shede Member Licensed User Longtime User Nov 17, 2019 #1 Following is my code written to open pdf through pdf viewer through intent. Its works fine on Target sdk version 23. If i use target sdk 23 i cannot keep my app on Google play store Sub btn1_Click i.Initialize(i.ACTION_VIEW, "file://" & File.DirRootExternal & "/1.pdf") i.SetType("application/pdf") i.WrapAsIntentChooser("Choose PDF Viewer") StartActivity(i) End Sub Last edited: Nov 17, 2019
Following is my code written to open pdf through pdf viewer through intent. Its works fine on Target sdk version 23. If i use target sdk 23 i cannot keep my app on Google play store Sub btn1_Click i.Initialize(i.ACTION_VIEW, "file://" & File.DirRootExternal & "/1.pdf") i.SetType("application/pdf") i.WrapAsIntentChooser("Choose PDF Viewer") StartActivity(i) End Sub
drgottjr Expert Licensed User Longtime User Nov 18, 2019 #2 sdk 28 needed for play store (maybe still 26, but i think they up'd it to 28) Upvote 0
DonManfred Expert Licensed User Longtime User Nov 18, 2019 #3 - android.jar / targetSdkVersion / minSdkVersion Read that thread and all Infos there. All changes regarding the TargetSDK are listed here. - FileProvider To share a file you need to use FileProvider. Watch this carefully. - RuntimePermissions To access files in der external sdcard you need to use Runtimepermissions. Also for other things. Watch the Runtimepermission Tutorial video carefully. Last edited: Nov 18, 2019 Upvote 0
- android.jar / targetSdkVersion / minSdkVersion Read that thread and all Infos there. All changes regarding the TargetSDK are listed here. - FileProvider To share a file you need to use FileProvider. Watch this carefully. - RuntimePermissions To access files in der external sdcard you need to use Runtimepermissions. Also for other things. Watch the Runtimepermission Tutorial video carefully.
D Deepak Shede Member Licensed User Longtime User Nov 21, 2019 #4 Hi Tried all the steps mention above but still not able to use pdfviewer intent in my project. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2019 #5 Deepak Shede said: Tried all the steps mention above but still not able to use pdfviewer intent in my project. Click to expand... Not enough information for us to help you. Upvote 0
Deepak Shede said: Tried all the steps mention above but still not able to use pdfviewer intent in my project. Click to expand... Not enough information for us to help you.