如何在新的电子邮件中的Andr​​oid到达执行一些code? [英] How to execute some code when new email arrives in Android?

查看:102
本文介绍了如何在新的电子邮件中的Andr​​oid到达执行一些code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android的是新。

I am new in Android.

我怎么能执行一些code,当新邮件在到达的Andr​​oid(Gmail的)?有没有办法做到这一点?

How can I execute some code when new email arrives (gmail) in Android? Is there a way to do that?

推荐答案

我能得到它自己的工作与搜索某些源$ C ​​$ CS不同的程序。但它是真的哈克。由于没有关于它没有形成文件播放,我不会分享任何code。如果有人有兴趣,可以看看 GmailNotifier源$ C ​​$ C 在github上。

I could get it work on myself with searching some source codes of different programs. But it is really hacky. Since there is no documented broadcast about it, I won't share any code. If anyone interested, can take a look at GmailNotifier source code at github.

GmailNotifier通知用户,当收到新的Gmail。

GmailNotifier notifies user when receive new GMail.

P.S:而且请注意,这只是GMAIL。并不是所有的电子邮件作为标题说。 (主持人先后编辑了,IDK的为什么。)

P.S: And please note that, it is only for GMAIL. Not all email as title says. (A moderator has edited it, idk why.)

这篇关于如何在新的电子邮件中的Andr​​oid到达执行一些code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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