My Oracle Support Banner

Camera Plugin Not Working After Upgrade To MAF 2.5.0 (Doc ID 2399281.1)

Last updated on MAY 31, 2018

Applies to:

Mobile Application Framework - Version 2.5.0 and later
Information in this document applies to any platform.

Symptoms

There is an application with MAF 2.3.3 version. When upgrading the application to MAF 2.5.0, the camera plugin stops working. The first time the camera is accessed, a popup is shown to the user to allow the access to the camera. When the user clicks Allow, the application crashes and an error is shown to the user. 

Error:

05-05 09:44:31.837 18805 18805 E AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=0, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.company.MobileApp/oracle.adfmf.Container}: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.company.MobileApp/cache/.Pic.png exposed beyond app through ClipData.Item.getUri()

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.