鉴于内推出的Andr​​oid应用 [英] Android launch app inside view

查看:127
本文介绍了鉴于内推出的Andr​​oid应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,让我有一个应用程序,我想有使用其他应用程序。比如我有一个应用程序,并相当多的东西,除了一个目录查找,因为已经有一个应用程序,这是否为我校。我知道我可以启动与意图的应用,但也使他们远离了我的应用程序的导航菜单。反正是有,我可以运行一个视图布局内的应用程序。我不希望为这个,但我想我会问的机会也无妨。

Alright so I have an app that I would like to have utilize other apps. For example I have an app that does quite a number of things except for a directory look up since there is already an app that does that for my school. I know I can launch the application with intents, but that also brings them away from the navigation menu for my application. Is there anyway that I could run an app inside a view layout. I am not hopeful for this but I figured I would chance asking it anyway.

推荐答案

这是通过使用小部件技术上是可行的。你可以实现一个 AppWidgetHost 和其他应用程序可以创建的应用小工具您自己的应用程序里使用。这是Android的Launcher画面是如何工作的。

This is technically possible by using widgets. You can implement an AppWidgetHost, and other applications can create App Widgets to use inside your own app. This is how the launcher screen in Android works.

此,当然,将仅在所讨论的其他应用程序执行部件工作。所以,一般的回答你的问题就没有,这是不可能举办里面自己从其他应用程序的任意应用程序或浏览/活动。

This, of course, will only work if other applications in question implement widgets. So, the general answer to your question would be no, it is not possible to host arbitrary applications or Views/Activities from other applications inside your own.

这篇关于鉴于内推出的Andr​​oid应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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