1

My Android app allow users send message to each others with attachments, the problem is:

When user taps on a message attachment to open it, in this case is PDF file, app will ask system for another application to open the attachment and send user to that app along with the file, everything was working fine on Android 9 and older but Android 10, the pdf viewer app appears shortly in just 1 second then user is sent back to my app, issue occurs mostly on Samsung devices.

I tried android:requestLegacyExternalStorage but did not help.

Can anybody help on this? Thanks in advance.

Son Nguyen
  • 3,481
  • 4
  • 33
  • 47
  • 1
    With the new permission settings of Android you need to give access to the PDF App to your file. See: https://stackoverflow.com/a/60967854/2110483 – devz Jun 02 '20 at 12:04
  • Hi @devz, thanks for reminding me, I knew it but somehow forgot to do it for that app @.@, thanks again – Son Nguyen Jun 03 '20 at 10:02

0 Answers0