Android - How can I find out how many unread email the user has?

前端 未结 3 491
梦如初夏
梦如初夏 2021-01-06 22:10

I\'m writing a program that should display the amount of unread sms, mms, phone calls and emails. It was quite easy to find how to query for sms and phone calls (I used the

3条回答
  •  花落未央
    2021-01-06 22:28

    According to a thread on the android developer list which I found by searching for "unread email count" , the Gmail.java file which you can find in gmail4j (found through Google Code search) gives the provider you need. That's what the author of gmail-unread-count did.

    Sorry, I don't yet have enough rep to link to the thread & the app, so I'm just linking to the code.

提交回复
热议问题