How to detect that i have received an email/gmail on my Android Device?
问题 Is there a way to detect or an event being triggered when i receive a gmail/email on my android device. Basically i would like my application to read the email notification when i receive it. Could you kindly tell me if there is way to do this ? 回答1: You need to register a content observer (not broadcast receiver) contentResolver.registerContentObserver(Uri.parse("content://gmail-ls"), true, gmailObserver); gmailObserver is your own ContentObserver object. ContentObserver.onChange is going to