Embed activity of application A inside application B's viewgroup in android

我的梦境 提交于 2019-12-11 03:37:19

问题


My requirement is as follows:

I have two of my application, one is Application A and Application B. Now I want them to work individually as well as mutually We can assume this is the scenario which I need(assumed):

Application A has activity DoPlusMinusActivity which is having two EditText box and two buttons named Add and subtract, which does the appropriate function as their name and store the result.

Application B has activity MultipleCalcActivity which is having some EditText box and some buttons for the functions user wants to perform. Now there is a button which should open the DoPlusMinusActivity of Application A on the predefined area of current activity. It means any time I can touch the options of Application B. User should be able to perform the calculation there and can found it in the Application B.

The Application A's activity DoPlusMinusActivity should be opened on some part of calling application's activity, it should be touchable outside. We can understood it by using an example of a wood table having some glasses of water on the middle while a tray of cup of tea on left side, so that any time user can pick the water glass or tea cup.

Suggest me, how could it be possible to achieve it? any kind of help would be appreciated.

Note: Both the applications are mine and it is sure that they are installed on the same device. I can change the code of both application.

来源:https://stackoverflow.com/questions/17228145/embed-activity-of-application-a-inside-application-bs-viewgroup-in-android

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