我可以为预定义的意图以编程方式单击按钮吗? [英] Can I click a button programmatically for a predefined intent?

查看:16
本文介绍了我可以为预定义的意图以编程方式单击按钮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要点击意图 ACTION_SEND 的按钮.这里不需要显示 UI.我可以在 Android 的 MMS-SMSProvider 中点击发送"按钮吗?

I need the button click of the intent ACTION_SEND. Here there is no need of displaying UI. Can I get the "Send" button click from the MMS-SMSProvider in Android?

推荐答案

您可以使用 button.performClick() 方法以编程方式单击按钮.

You can click a button programmatically by using the button.performClick() method.

这篇关于我可以为预定义的意图以编程方式单击按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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