如何在新的电子邮件中的Andr​​oid到达执行一些code?电子邮件、如何在、Andr、oid

2023-09-06 19:18:22 作者:27.春日樱亭

我在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.)