apparently not :)

I do wonder though, does the same happen if you get a FileDescriptor and 
use it instead of a URI? 

On Monday, April 15, 2013 5:03:53 PM UTC+3, nobre wrote:
>
> Hi, is this supposed to be working after 2.3 ? I'm experiencing this 
> behavior on 4.0.3 and 4.1.1 , URI permissions aren't being granted to an 
> Activity that was previously running (singleTask), onNewIntent is called 
> and raises SecurityException when trying to use the content resolver.
>
> Em sábado, 30 de abril de 2011 10h49min00s UTC-3, Dianne Hackborn escreveu:
>>
>> Sorry, this is probably a bug in 2.3 with trying to grant a URI 
>> permission to an activity instance that is already running.  I'll look in 
>> to this.  In the mean-time, the only solution may be to not use singleTask 
>> for the activity being launched to a preview an attachment.  This is 
>> actually the preferred thing to do, since your preview activity should be 
>> running as its own instance as part of the gmail task.
>> On Apr 30, 2011 5:20 AM, "Akshay Goel" <[email protected]> wrote:
>> > To add, the exception occurs on this line-
>> > 
>> > mContext.getContentResolver().openInputStream(intent.getData());
>> > 
>> > where mContext is the activity context.
>> > 
>> > -Akshay
>> > 
>> > On Apr 30, 2:14 pm, Akshay Goel <[email protected]> wrote:
>> >> Hello,
>> >>
>> >> I have declared the launch mode of my activity to be singleTask. If I
>> >> launch my application, press the home button, go to an email client
>> >> (gmail in this case) & preview an attachment using my application, I
>> >> am experiencing asecurityexceptionon Android versions 2.3 & later,
>> >> which says that I do not have the permissions to access gmail
>> >> attachments. Theexceptiondoes not occur on prior versions & if I do
>> >> not use singleTask as the launchMode.
>> >>
>> >> Is this a known issue?
>> >>
>> >> Any help will be really appreciated.
>> >>
>> >> Thanks,
>> >> Akshay
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to [email protected]
>> > To unsubscribe from this group, send email to
>> > [email protected]
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to