Android的ACTION_SEND不同的文本为每个应用程序 [英] Android ACTION_SEND different texts for each application

查看:106
本文介绍了Android的ACTION_SEND不同的文本为每个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是与ACTION_SEND的意图,我需要共享不同的文本。我需要发送一个文本Gmail和我需要发送其他的文本微博。取决于应用。我可以得到由用户选择的应用程序之前,应用程序发送的文本共享?

I'm using an Intent with ACTION_SEND and I need to share different texts. I need to send a text for Gmail and I need to send other text for twitter. depends on the application. Can I get the application selected by the user before the application sends the text shared?

推荐答案

在一般的,你不能确定哪个应用程序将收到您的ACTION_SEND意图。

In general you can't be sure which application will receive your ACTION_SEND intent.

<一个href="http://stackoverflow.com/questions/2077008/android-intent-for-twitter-application/2077361#2077361">This回答解释了为什么以predicting该应用程序的用户最终会在你可能不应该做定制。

This answer explains why you probably shouldn't do customization based on predicting which application the user will end up in.

<一个href="http://stackoverflow.com/questions/2077008/android-intent-for-twitter-application/4715465#4715465">This答案解释了解决方法TwiDroyd,你可能不应该使用,但可以帮助你在短期内。

This answer explains a workaround for TwiDroyd, which you probably shouldn't use but may help you in the short term.

这篇关于Android的ACTION_SEND不同的文本为每个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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