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:
Application is invoked is not your own writing? Reply:
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:
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:
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:
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);
No comments:
Post a Comment