Embed external Intent in main Activity

匿名 (未验证) 提交于 2019-12-03 02:38:01

问题:

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?

回答1:

Is it possible to load an external Activity within a View inside my running application?

No, sorry, that is not possible.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!