如何创建在另一个应用程序之上运行的 Android 应用程序
我想开发一个像按钮救星这样的程序(它在另一个应用程序之上运行,我们可以在正在运行的应用程序之上按菜单、后退按钮)。因此,用户无需按硬件按钮即可访问菜单、返回功能。
我想做同样的事情,但要做到这一点,我必须在另一个应用程序之上运行一个应用程序。
我该怎么做?
-拉西斯。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看一下 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.
好吧,我认为您正在寻找的是创建类似输入法(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.