如何创建在另一个应用程序之上运行的 Android 应用程序

发布于 2024-11-25 23:52:24 字数 166 浏览 5 评论 0原文

我想开发一个像按钮救星这样的程序(它在另一个应用程序之上运行,我们可以在正在运行的应用程序之上按菜单、后退按钮)。因此,用户无需按硬件按钮即可访问菜单、返回功能。

我想做同样的事情,但要做到这一点,我必须在另一个应用程序之上运行一个应用程序。

我该怎么做?

-拉西斯。

I want to develop a program like button savior (which runs on top of a another app and we can press menu, back buttons on top of a running app). So user do not need to press hardware buttons to access menu, back functionalities.

I want to do the same but to do it I have to run a app on top of another app.

How can I do this?

-Lasith.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

琉璃繁缕 2024-12-02 23:52:24

看一下 Robotium:http://code.google.com/p/robotium/

似乎正在做自己想做的事。您可以查看代码并了解如何操作。

Take a look at Robotium: http://code.google.com/p/robotium/

It seems to be doing what you want to do. You can take a look at the code and figure out how to do it.

梦醒时光 2024-12-02 23:52:24

好吧,我认为您正在寻找的是创建类似输入法(IME)的东西,有一个很好的教程可以从 Android Docs,您可以做的另一件事是创建一个包含虚拟控制器的活动,将其作为库分发,然后如果有人需要它,他们可以下载并注册你的组件到他们的项目中,比如AdMobs 可以。

Well i think that what you are looking for is creating something like Input Method (IME), there is a good tutorial to start with on Android Docs, another thing you can do is to create an activity which contains your virtual controller, distribute that as a lib and then if someone need it they can downloads and register your component into their project, something like what AdMobs does.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文