发送短信前上下文菜单 [英] Context menu before sending SMS
问题描述
如果在手机上安装谷歌语音,当你拨打电话号码的上下文菜单会弹出询问您是否要带或不带谷歌语音拨号。我想完成同样的任务拨号或发送文本消息。这个API允许你这样做吗?
if google voice is installed on your phone, when you dial a phone number a context menu pops up asking if you want to dial with or without google voice. I would like to accomplish the same task for dialing a number or sending a text message. Does the API allow you to do that?
这似乎是有process_outgoing_calls,清单中的权限,但有对SMS什么?
It seems there is a process_outgoing_calls, in the permissions manifest, but is there anything for the SMS?
推荐答案
我没有测试此我自己,但你应该能够监听短信至意向加入这种意向过滤器的舱单一个相应的活动(从系统MMS / SMS应用程序 - http://bit.ly/9JjHGd ):
I haven't tested this myself, but you should be able to listen for the "sms-to" intent by adding this intent-filter to your manifest for a corresponding activity (from the system mms/sms app - http://bit.ly/9JjHGd):
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.SENDTO" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
</intent-filter>
这篇关于发送短信前上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!