biometrics Active Member Licensed User Longtime User Oct 21, 2014 #1 I have two apps (one is an activity and the other a service) and I want to communicate between the two. How do I do that? Is there a way to send and receive messages between them directly without using an intermediary like a file or database and a timer?
I have two apps (one is an activity and the other a service) and I want to communicate between the two. How do I do that? Is there a way to send and receive messages between them directly without using an intermediary like a file or database and a timer?
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2014 #2 There are several ways. The best way depends on your requirements. You can open a socket on one app and then connect to this socket in the other app. Another option is to send intents between the applications (probably simpler). Upvote 0
There are several ways. The best way depends on your requirements. You can open a socket on one app and then connect to this socket in the other app. Another option is to send intents between the applications (probably simpler).
W werner_Fourie Member Licensed User Longtime User May 3, 2022 #3 Erel said: There are several ways. The best way depends on your requirements. You can open a socket on one app and then connect to this socket in the other app. Another option is to send intents between the applications (probably simpler). Click to expand... Hi All.. Is there an example for what Erel is mentioning in the above.. " You can open a socket on one app and then connect to this socket in the other app" Really would appreciate it.. Thanks Upvote 0
Erel said: There are several ways. The best way depends on your requirements. You can open a socket on one app and then connect to this socket in the other app. Another option is to send intents between the applications (probably simpler). Click to expand... Hi All.. Is there an example for what Erel is mentioning in the above.. " You can open a socket on one app and then connect to this socket in the other app" Really would appreciate it.. Thanks
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 3, 2022 #4 You can search the forum, there are a lot of ways & examples .. Using HTTPServer library (localhost or 127.0.0.1 address not work, use network ip) Or easier way use intent messages. Upvote 0
You can search the forum, there are a lot of ways & examples .. Using HTTPServer library (localhost or 127.0.0.1 address not work, use network ip) Or easier way use intent messages.