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 ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to register a content observer (not broadcast receiver)
gmailObserveris your own ContentObserver object.ContentObserver.onChangeis going to be called every time something changes in Gmail.Here you get all conversations like so:
And the actual conversation messages will be: