扩展Android的默认的Gmail /电子邮件应用程序 [英] Extending Android's Default Gmail/Email Applications

查看:179
本文介绍了扩展Android的默认的Gmail /电子邮件应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想无论是堵到他们的ContentProvider或者通过使用意图过滤器在Android平台默认的Gmail /电子邮件应用程序扩展。从本质上讲,我希望能够扫描传入电子邮件的特殊规则,将引发我的Andr​​oid应用程序的事件。如果在扫描电子邮件自动是不可能的,那么我想至少要一个菜单​​项添加到电子邮件查看器屏幕,将允许用户标记邮件内容为需要扫描的。

  1. 是否的Gmail /电子邮件应用程序允许您将它们扩展以这种方式?
  2. 对于未来的参考,除了寻找样本code或阅读由应用程序的作者提供的文档,有没有发现什么意图适合我的应用程序使用的标准方法?像一个工具,也许?

谢谢, 马克·

解决方案
  

版的Gmail /电子邮件应用程序允许您将它们扩展以这种方式?

Gmail是封闭源代码,因此它是很难知道它做什么,或者不支持。

电子邮件应用程序是不是公开SDK的一部分,所以试图依靠任何的ContentProvider它可能有(我不知道它有一个)将是一个错误,因为您的应用程序容易与随后突破Android的更新。

  

我想至少要一个菜单​​项添加到电子邮件查看器屏幕,将允许用户标记邮件内容为需要扫描的。

要做到这一点的唯一方法假定的Gmail /电子邮件使用菜单#addIntentOptions(),并通过谷歌code搜索,这似乎不是这样的。

您可能会考虑联系K9的开发者看到,如果你能钩到他们的Andr​​oid电子邮件应用程序。

  

有没有发现什么意图适合我的应用程序使用的标准方法?像一个工具,也许?

不是真的。意图的行动仅仅是字符串。

I would like to extend the Android platform's default Gmail/Email applications either by plugging into their ContentProvider or by using intent filters. Essentially, I want to be able to scan incoming emails for special rules that will trigger events in my Android application. If scanning emails automatically isn't possible, then I would at least like to add a menu item to the email viewer screen that would allow the user to flag the email content as needing to be scanned.

  1. Does the Gmail/Email applications allow you to extend them in this way?
  2. For future reference, besides finding sample code or reading documentation provided by the author of an application, is there a standard way of finding out what intents are available for my application to use? Like a tool maybe?

Thanks, Marc

解决方案

Does the Gmail/Email applications allow you to extend them in this way?

Gmail is closed source, and so it is difficult to know what it does or does not support.

The Email application is not part of the public SDK, so trying to rely upon any ContentProvider it may have (and I don't know that it has one) would be a mistake, as your application is liable to break with subsequent Android updates.

I would at least like to add a menu item to the email viewer screen that would allow the user to flag the email content as needing to be scanned.

The only way to do that assumes Gmail/Email uses Menu#addIntentOptions(), and via Google Code Search, this does not appear to be the case.

You might consider contacting the developers of K9 to see if you could hook into their Android email application.

is there a standard way of finding out what intents are available for my application to use? Like a tool maybe?

Not really. Intent actions are just strings.

这篇关于扩展Android的默认的Gmail /电子邮件应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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