This is a trimmed version of a thread started here:
Perhaps the length of the original post was not appropriate.
I am trying to figure out why it's possible to send a bitmap using StartActivityForResult but not with ActivitySetResult.
2 very simple examples demonstrating the exchange and the exception thrown are attached.
It only occurs when using FileProvider, which - I believe - I am using following the rules. I have tried several variations,
but any attempt using FileProvider in combination with ActivitySetResult fails with the same error (as shown in the attached log).
It is possible, for example, to use a byte array with ActivitySetResult, but Android sets a limit on the length of that array. The
example allows you to toggle between these variations to show how one succeeds and the other fails.
"ContentProviderHelper.checkAssociationAndPermissionLocked". Say What?
here's a strange exception: ContentProviderHelper.checkAssociationAndPermissionLocked the method referred to is easily found in com.android.server.am.ContentProviderHelper. instances of the exception are not so easy to find. below please find the exception that was logged by my app, as well as...
www.b4x.com
I am trying to figure out why it's possible to send a bitmap using StartActivityForResult but not with ActivitySetResult.
2 very simple examples demonstrating the exchange and the exception thrown are attached.
It only occurs when using FileProvider, which - I believe - I am using following the rules. I have tried several variations,
but any attempt using FileProvider in combination with ActivitySetResult fails with the same error (as shown in the attached log).
It is possible, for example, to use a byte array with ActivitySetResult, but Android sets a limit on the length of that array. The
example allows you to toggle between these variations to show how one succeeds and the other fails.