在主 Activity 中嵌入外部 Intent
我见过许多使用 ActivityGroup 在单个视图中嵌入多个 Activites 的示例。在每种情况下,正在加载的活动都是当前应用程序的内部活动。此外,它们似乎都占据了整个视野。
我想使用特定 MIME 类型的 Intent 启动外部活动。具体来说,如果设备安装了 PDF 查看器,我想启动该活动来查看 PDF。但是,我希望它出现在正在运行的应用程序活动的视图中,保持我的主要活动页眉和页脚视图完好无损。
是否可以在我正在运行的应用程序内的视图中加载外部活动?
I have seen a number of examples of using an ActivityGroup to embed multiple Activites in a single view. In each of these cases, the Activities being loaded are internal to the current application. In addition, they all appear to take over the entire view.
I would like to start an external Activity using an Intent for a particular mime type. Specifically, if the device has a PDF viewer installed, I would like to start that Activity to view a PDF. However, I would like it to appear within the View of my running application Activity, keeping my main Activities header and footer Views intact.
Is it possible to load an external Activity within a View inside my running application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,抱歉,这是不可能的。
No, sorry, that is not possible.