问题
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