Android - 我如何找出用户有多少未读电子邮件?

Android - How can I find out how many unread email the user has?(Android - 我如何找出用户有多少未读电子邮件?)

本文介绍了Android - 我如何找出用户有多少未读电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序来显示未读短信、彩信、电话和电子邮件的数量.很容易找到如何查询短信和电话(我使用了此页面上的搜索),但我无法找到如何查询电子邮件.

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 search on this page) but I have not been able to find out how to query for emails.

有没有办法查出用户手机中有多少未读邮件?

Is there anyway to find out how many unread emails the user got in their phone?

推荐答案

我是 Gmail Unread Count 的作者.查看 Gmail.java,这是我用的.有几种方法可以做到这一点.我直接从标签中读取未读计数.你应该能够通过阅读源代码来弄清楚如何使用它.

I'm the author of Gmail Unread Count. Check out Gmail.java, it's what I use. There are a couple of ways to do it. I read the unread count directly from the label. You should be able to figure out how to use it by reading the source.

从电子邮件中获取未读计数是不可能的,因此您必须在那里进行轮询.

Getting the unread count from Email is afaik not possible so you'll have to do polling there.

这篇关于Android - 我如何找出用户有多少未读电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Android - 我如何找出用户有多少未读电子邮件?

基础教程推荐