如何接收来自Gmail的Andr​​oid电子邮件 [英] How to receive email from gmail android

查看:111
本文介绍了如何接收来自Gmail的Andr​​oid电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid编程。

I am new to android programming.

我得到了我与Gmail帐户的应用程序发送电子邮件。 我现在需要的是如何接收给G邮箱新邮件? 或者至少如何得到通知,有我的收件箱中的新邮件?

I got my app with Gmail account sends emails. What I need now is how to receive new emails from G mail? Or at least how to get a notification that there is a new mail in my inbox?

我不希望使用来自市场的Gmail应用程序或嵌入电子邮件Android应用程序或使...我做我自己的应用程序,管理Gmail帐户(就像在我自己​​的应用程序某种小部件)。

I don't want to use Gmail app from market or embedded email android app or so...I'm making my own app that manages Gmail accounts (like some kind of widget in my own app).

推荐答案

为了实现这个功能,首先需要建立与Gmail服务器的连接,那么你需要检查收件箱文件夹中有新邮件。如果找到则使用NotificationManager发送通知给用户。请点击此链接<一个href="http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android" rel="nofollow">http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android而另一个链接

In order to implement this functionality ,first you need to establish the connection with the gmail server,then you need to check the inbox folder for new messages. If find then send the notification to the user using NotificationManager. please follow this links http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android and another link is

<一个href="http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-app">Sending电子邮件在Android中使用JavaMail API不使用默认的Andr​​oid应用程序(内建电子邮件应用程序)

这篇关于如何接收来自Gmail的Andr​​oid电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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