Hello

Hello,

I have an advanced question about scripting.

Is it possible at all to communicate with a 3rd party remote service from a script? You know, Context.bindService() and all those things. Provided I have that service’s AIDL file.

I understand that AIDL is for generation of stub and proxy for “real” Java code. But maybe it can be done from JavaScript using bare Binder/Parcel classes?

I’m not as experienced developer to figure it out myself, sadly 🙁

What’s on my mind – is to communicate to famous Torque application, which provides API for plugins:

https://torque-bhp.com/forums/?wpforumaction=viewtopic&t=438.0

https://torque-bhp.com/ITorqueService.aidl

What I would like to call on this service is:

float getValueForPid(long pid, boolean triggersDataRefresh);

Thanks in advance for any clue 🙂

https://torque-bhp.com/ITorqueService.aidl
]]>

4 Commentsto Hello

  1. Anonymous says:

    < ![CDATA[

    Yes, Lightning should be able to bind services. You should be able to call functions on the Binder without any AIDL required.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Thanks for your reply, Lukas!


    I thought so that it would be possible.


    Maybe somebody already done some scripting with remote service calls, to use as a reference. Because as I said, I have not much of experience with Android development, and all that looks complex.


    Anyone?

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Dmitry Avsioukov​ I saw your second post with a script. What happened to it?

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Lukas Morawietz In that post, I put my script and I was asking for suggestion what is my mistake. But almost immediately, I figured it out, so I removed it. I managed to make the script work, and already shared in a separate post.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *