问题描述
我发现了一个 ACTION_SEND
意图与数据类型在以下异常应用程序/ PDF
:
I'm getting the following exception during an ACTION_SEND
intent with a data type application/pdf
:
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.SEND typ=application/pdf flg=0x3080000 cmp=com.adobe.reader/.ARSendForSignature (has extras) }
这会弹出一个对话框,选择所需的应用程序接收PDF。我相信 SecurityException异常
当用户选择Adobe Reader的从列表中,尽管这似乎是开放特别是 ARSendForSignature $ C $被抛出, C>的活动。
This brings up a dialog to choose the desired application to receive the PDF. I believe the SecurityException
is being thrown when a user chooses Adobe Reader from the list, although it appears to be opening specifically the ARSendForSignature
activity.
任何想法?
推荐答案
您遇到在Adobe Reader应用程序中的错误,或在Android中的一个错误,这取决于你的观点。
You are encountering a bug in the Adobe Reader app, or a bug in Android, depending upon your perspective.
在Adobe Reader的 ARSendForSignature
活动支持 ACTION_SEND
<意向滤光器>
,但他们明确有安卓出口=假
,否认任何人,但他们开始这项活动的能力。
The Adobe Reader ARSendForSignature
activity supports the ACTION_SEND
<intent-filter>
, but they explicitly have android:exported="false"
, which denies anyone but them the ability to start that activity.
或者:
- 在Adobe Reader的不应该是
&LT;意向滤光器&gt;
或 - 在Adobe Reader的不应该将其标记为不出口,或
- 在Android的选择器应该过滤掉非出口活动
从长期来看,答案应该是#3 - 我会工作,重现此问题,并将文件中的问题,假设有没有之一。短期,Adobe公司可以解决这个问题比我们快可以解决几百亿台设备。 : - )
Long-term, the answer should be #3 -- I'll work on reproducing this problem and will file an issue, assuming there isn't already one. Short-term, Adobe can fix this faster than we can fix a couple hundred million devices. :-)
这篇关于安卓SecurityException异常的PDF发送意向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!