Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5241] createIntent using file:// leads to FileUriExposedException

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2017-10-05T18:37:50.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterNikos Poulios
AssigneeShak Hossain
Created2017-09-27T13:59:44.000+0000
Updated2017-10-05T18:37:50.000+0000

Description

startActivity - createIntent to view a local file does not work. FileProvider API needs to be used Tested using 6.1.0/6.2.2 GA targeting API 25 See https://medium.com/@ali.muzaffar/what-is-android-os-fileuriexposedexception-and-what-you-can-do-about-it-70b9eb17c6d0

Comments

  1. Sharif AbuDarda 2017-10-05

    Hello, As of Android 7.0, Intents should use a ContentProvider to provide the DATA URI of created Intents. We have an issue waiting in production for a fix in 6.3.0 release. Thanks.

JSON Source