First, I want to get the new mail notification I used getContentResolver().registerContentObserver(Uri.parse"content:// com.android.email.provider"), true, service)
when new mail coming the ContentObserver will catch event onChange() Then, i want to get this new mail content I used final String URI = "content://com.android.email.provider/message"; Uri uri = Uri.parse(URI); Cursor c = this.getContentResolver().query(uri, null, null , null ,null); Always have a java.lang.SecurityException: "Permission Denial: reading com.android.email.provider.EmailProvider uri content://com.android.email.provider/message from pid=429, uid=10023 requires com.android.email.permission.ACCESS_PROVIDER". this Permission is define in packages/app/Email/AndroidManefest.xml and the level is android:protectionLevel="signatureOrSystem" can any 3rd party app access mail content or other way to get content? -- 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

