Wednesday, February 19, 2014

How to communicate between android application


There are A, B two android application, I want to start the application B in A, that I set a button in A application, after I click on the system running the application B, between these two processes, how to communicate -how to achieve it? ? ? Seek advice<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Android - interactively , are a variety of ways There are related to, but also for inter-process communication.
android is more commonly used in AIDL, you can search for relevant information
Reply:
Start the application by the A B, you can send Intent, call startActivity (Intent), Intent to specify the appropriate action.
Communication between the application is the easiest way to broadcast, sendBroadcast, are registered action broadcast good specify.
There is IPC, use binder or aidl, the landlord can go to search for relevant specific code examples, many online.
Reply:
Intent

Broadcasting can also be used
Reply:
The reply was deleted administrator at 2013-11-03 08:55:31

Reply:
These are two different android software, I started B application is bound to enter its main Activity, how do I start it its main activity
Reply:
On the first floor said that AIDL
Reply:
Android AIDL inside-process communication is through the bottom of the binder driver to achieve, is more complex.
Reply:
By AIDL achieved.
When you start the application B bind bind A service application, and then call the application of A AIDL open function
Reply:
By android: sharedUserId two applications running in the same process space, it can be a kind
Reply:
references, 5th Floor Kuai_jia_long reply:
these are two different android software, I started B application is bound to enter its main Activity, how do I start it The main activity of it

Application is invoked is not your own writing?
Reply:
reference to the 10th floor guoyoulei520 reply:
Quote: references, 5th Floor Kuai_jia_long reply:

These are two different android software, I started B application is bound to enter its main Activity, how do I start its main activity it

Application is invoked is not your own writing?

Application is invoked is my own writing, and if the two applications in the same process space, will not have any effect in other areas, because I want to call not just two applications, the application may be in the A B Start application, you can also start the application C, and even D applications, how to achieve it should be, there is nothing to provide some ideas,
Reply:
reference to the 11th floor Kuai_jia_long reply:
Quote: references to the 10th floor guoyoulei520 reply:

Quote: references, 5th Floor Kuai_jia_long reply:

These are two different android software, I started B application is bound to enter its main Activity, how do I start its main activity it

Application is invoked is not your own writing?

Application is invoked is my own writing, and if the two applications in the same process space, will not have any effect in other areas, because I want to call not just two applications, the application may be in the A B Start application, you can also start the application C, and even D applications, how to achieve it should be, there is nothing to provide some ideas,

Just start right
Reply:
Learn about Andrews
Reply:
reference to the 12th floor guoyoulei520 reply:
Quote: references to the 11th floor Kuai_jia_long reply:

Quote: references to the 10th floor guoyoulei520 reply:

Quote: references, 5th Floor Kuai_jia_long reply:

These are two different android software, I started B application is bound to enter its main Activity, how do I start its main activity it

Application is invoked is not your own writing?

Application is invoked is my own writing, and if the two applications in the same process space, will not have any effect in other areas, because I want to call not just two applications, the application may be in the A B Start application, you can also start the application C, and even D applications, how to achieve it should be, there is nothing to provide some ideas,

Just start right

Should be the first to start it, the application is started after B, then B can operate independently of the application does not yet
Reply:
If only the application to start the application B, then A direct intent on it.
ComponentName cp = new ComponentName (B.packagename, B.classname);
intent.setComponent (cp);
startActivity (intent);
Reply:
cited 15 floor lingirl reply:
only apply if B then A to start the application, direct intent on it.
ComponentName cp = new ComponentName (B.packagename, B.classname);
intent.setComponent (cp);
startActivity (intent);

Positive Solutions

No comments:

Post a Comment