i've got app in play store reads gmail labels (based on sample app provided on google blog)
it works fine people, following error app:
"java.lang.securityexception: permission denial: reading com.google.android.gm.provider.publiccontentprovider uri content://com.google.android.gm/test@example.com/labels pid=29069, uid=10087 requires com.google.android.gm.permission.read_content_provider, or granturipermission()"
the code i'm using is:
cursor c = context.getcontentresolver().query(gmailcontract.labels.getlabelsuri(accountname),null, null, null, null);
and manifest file has:
<uses-permission android:name="com.google.android.gm.permission.read_content_provider" />
therefore i've no idea why people error. it's not handful of people, there's on 100 people have reported (but thousands haven't)
can shed light?
i'm not familiar java. but, sms backup plus application includes similar feature. useful consider.
Comments
Post a Comment