Insert activity of application A inside application B viewgroup in android

My requirement is as follows:

I have two of my applications: one - application A and application B. Now I want them to work both individually and mutually. We can assume that this is the scenario that I need (assumed):

Appendix A has a DoPlusMinusActivity activity, in which there are two EditText fields and two buttons with the name Add and subtract, which performs the corresponding function as its name and saves the result.

Appendix B has MultipleCalcActivity, which has some EditText field and some buttons for the functions that the user wants to perform. Now there is a button that should open DoPlusMinusActivity of Application A in a predefined area of ​​current activity. This means that at any time I can touch on the options for application B. The user must be able to perform calculations there and can find it in application B.

Application activity A DoPlusMinusActivity must be open in some part of the application-application action, it must be tangible on the street. We can understand this using an example of a wooden table with several glasses of water in the middle, while a tray with a cup of tea on the left side, so that any user can choose a water glass or a cup of tea.

Suggest me how can this be achieved? Any help would be appreciated.

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

+2
source share

All Articles