Quantcast
Viewing all articles
Browse latest Browse all 2010

Android READ_GMAIL permission

I can successfully retrieve an attachment in Gmail when I use strictly Android development.

However, if I use an ANE, within an AIR app, to pass the data in an InvokeEvent to an Android activity, I no longer have permission... even though it is set in the manifest.

 

Error:

W/ActivityManager(167): Permission Denial: opening provider com.google.android.gm.provider.MailProvider from ProcessRecord{41c40fa0 6108:air.com.my.wonderful.app.debug/10089} (pid=6108, uid=10089) requires com.google.android.gm.permission.READ_GMAIL or com.google.android.gm.permission.WRITE_GMAIL

 

I have added both permissions in my AIR manifest and ANE manifest. I have also tried it without.

Oddly, I do not need to add it to the Android Manifest in my alternate Android Only app, which I use as a test ( no AIR involved ).

 

I have also tried firing up a new Activity in Android from the ANE but it also does not work.

 

In Android, the ContentResolver and Activity are created from the FREContext used for the ANE.

 

Anyone else experience this or have thoughts toward a solution?

 

( In case there is a suggestion to catch the Intent in Android first and pass it along via a custom URI or other means..  I am trying to avoid that at this time so as to be able to handle the InvokeEvent in AIR first. )

 

Thanks for any leads.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>