Support > General Discussions

Build your own SL4A Facade

(1/1)

Support:

--- Quote from: Sergey Zelenev ---I need to use a closed-source proprietary Java library with my SL4A standalone project (in form of APK).
I will need to expand the SL4A RPC API for that.

What would be a good example in the source on how to do that? I'm not too strong with Java, so something very basic would be helpful.

--- End quote ---

If you have a Java background, (Pete Verhas: do you have your ears on?) one could create their own Facade scripting extension to SL4A.


--- Quote from: anthony prieur ---You need to create your own facade class and then add it to
FacadeConfiguration.java, like:

sFacadeClassList.add(MyCustomFacade.class);

FacadeConfiguration.class needs to be put out of script.jar and add it
to your project, see e.g.:
HERE

Simple facade you can use as base for yours:
HERE

--- End quote ---

Navigation

[0] Message Index

Go to full version