Android的 - 我如何找出有多少未读邮件的用户? [英] Android - How can I find out how many unread email the user has?

查看:343
本文介绍了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未读的作者数。看看<一href="http://www.google.com/$c$csearch/p?hl=en#uX1GffpyOZk/core/java/android/provider/Gmail.java&q=gmail.java&sa=N&cd=1&ct=rc"相对=nofollow> 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.

获取从邮件的未读邮件数是AFAIK不可能的,所以你就必须做轮询那里。

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆