如何接收来自Gmail的Andr​​oid电子邮件电子邮件、Gmail、Andr、oid

2023-09-05 10:21:36 作者:温心语i

我是新来的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发送通知给用户。请点击此链接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

Sending电子邮件在Android中使用JavaMail API不使用默认的Andr​​oid应用程序(内建电子邮件应用程序)

 
精彩推荐
图片推荐