i have declared launch mode of activity singletask. if launch application, press home button, go email client (gmail in case) & preview attachment using application, experiencing security exception on android versions 2.3 & later, says not have permissions access gmail attachments. exception not occur on prior versions & if not use singletask launchmode.
the exception occurs on line-
mcontext.getcontentresolver().openinputstream(intent.getdata());
where mcontext activity context.
is known issue?
any appreciated.
thanks,
akshay
i had posted on android-developers , got response dianne hackborn-
"sorry, bug in 2.3 trying grant uri permission activity instance running. i'll in this. in mean-time, solution may not use singletask activity being launched preview attachment. preferred thing do, since preview activity should running own instance part of gmail task."
Comments
Post a Comment