How to receive email from gmail android

前端 未结 3 1644
再見小時候
再見小時候 2021-01-03 06:48

I am new to android programming.

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 not

3条回答
  •  失恋的感觉
    2021-01-03 07:07

    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 Email in Android using JavaMail API without using the default/built-in app

提交回复
热议问题