TheMightySwe Active Member Licensed User Longtime User Mar 28, 2015 #1 Hi all, Is it possible to communicate with an external service written in java with Intents or something from and to B4A? The communication must be bi-directional. / TMS
Hi all, Is it possible to communicate with an external service written in java with Intents or something from and to B4A? The communication must be bi-directional. / TMS
thedesolatesoul Expert Licensed User Longtime User Mar 28, 2015 #2 Yes Look in the similar threads for a tutorial Upvote 0
TheMightySwe Active Member Licensed User Longtime User Mar 28, 2015 #3 Yes, i have read that, but does it work when one of the apps is a service written in Java. Upvote 0
thedesolatesoul Expert Licensed User Longtime User Mar 28, 2015 #4 What makes you think it wont? Upvote 0
TheMightySwe Active Member Licensed User Longtime User Mar 28, 2015 #5 It seems to be very hard to just answer YES or NO on a specific question sometimes? Upvote 0
thedesolatesoul Expert Licensed User Longtime User Mar 28, 2015 #6 TheMightySwe said: It seems to be very hard to just answer YES or NO on a specific question sometimes? Click to expand... It seems to be very hard to read the very first word of the first reply somethimes? Upvote 0
TheMightySwe said: It seems to be very hard to just answer YES or NO on a specific question sometimes? Click to expand... It seems to be very hard to read the very first word of the first reply somethimes?
warwound Expert Licensed User Longtime User Mar 28, 2015 #7 If you have control over the service - you are writing the java code - then you can use use Intents and BroadcastReceivers to communicate between b4a code and the service. Upvote 0
If you have control over the service - you are writing the java code - then you can use use Intents and BroadcastReceivers to communicate between b4a code and the service.
xiaoyao Active Member Licensed User Longtime User Mar 29, 2015 #8 IF USE socket,i think it's a new method,so it can work on same app or 2 app.try to use by events.java code: ba.raiseEvent (***) then b4a can do it. Upvote 0
IF USE socket,i think it's a new method,so it can work on same app or 2 app.try to use by events.java code: ba.raiseEvent (***) then b4a can do it.
TheMightySwe Active Member Licensed User Longtime User Mar 29, 2015 #9 warwound said: If you have control over the service - you are writing the java code - then you can use use Intents and BroadcastReceivers to communicate between b4a code and the service. Click to expand... Yes, that was the answer I was looking for, ofcourse I can use a Broadcast reciver for the "back" communication. Sometimes the answer is so simple and you just doesn't think about it. Upvote 0
warwound said: If you have control over the service - you are writing the java code - then you can use use Intents and BroadcastReceivers to communicate between b4a code and the service. Click to expand... Yes, that was the answer I was looking for, ofcourse I can use a Broadcast reciver for the "back" communication. Sometimes the answer is so simple and you just doesn't think about it.