I need some help in how to start developing two android applications (on one phone) which communicate with each other.
Hello, i need some help in how to start developing two android applications (on one phone) which communicate with each other.
On the whole, you generally don't want to artificially split one application into two, particularly if you are the author of both.
That being said, you can:
IntentService
that will be called via startService()
from Application A, with results passed back via a PendingIntent
from createPendingResult()
or a Messenger
or a broadcast Intent
or a ResultReceiver
; orService
with an API defined in AIDL, and have Application A bind to that service, then have Application A call methods on Application B, orIntent
from Application A to Application B, with results being passed back by the same roster of options in the first bullet above, orContentResolver
to manipulate that content providerBe sure work through all of the security ramifications of what you are doing, since you are exposing an API not only for Application A to use, but for any application on the device to use, unless you secure it with permissions.