我可以让我的应用程序打开另一个应用程序并单击其中的按钮吗? [英] Can I make my app open another app AND click a button in it?

查看:69
本文介绍了我可以让我的应用程序打开另一个应用程序并单击其中的按钮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

比方说,我的手机上有一个预先存在的Android应用程序,该应用程序的主屏幕上有一个可以单击的按钮.我知道有一种方法可以从正在创建的应用程序中启动该应用程序,但是有没有一种方法也可以自动单击按钮?我可以传递一个参数吗?我将如何使用它?

Let's say there is a pre-existing Android app on my phone that has a button on its home screen that I can click. I know there is a way to launch that app from an app I am creating, but is there a way to click the button as well automatically? Is there a parameter I can pass in, and how would I go about using it?

推荐答案

您不能让您的应用按另一个应用上的按钮.那将是巨大的安全漏洞.

You can't have your apps push a button on another app. That would be a giantic security leak.

但是,另一个应用程序可能具有如何调用它的选项.这将取决于其他应用程序.您可以使用Intent调用其他应用,然后使用 putExtra 以提供额外的参数.

However, the other app might have options on how to call it. It will depend on that other app. You would call the other app with an Intent, then use putExtra to provide extra parameters.

这篇关于我可以让我的应用程序打开另一个应用程序并单击其中的按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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