You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
michael edited this page Nov 9, 2015
·
2 revisions
A custom RPC template has been added in the project package com.googlecode.android_scripting, this can be used as basis to create your own facade definition,
@RpcMinSdk(4)
public class ACustomFacade extends RpcReceiver {
private final CountDownLatch mOnInitLock;
public ACustomFacade(FacadeManager manager) {
super(manager);
mOnInitLock = new CountDownLatch(1);
mOnInitLock.countDown();
}
Note: you can extend the range of native code accessible through Python by using:
a RPC facade and JNI + your own cross-compiled C code
or directly without RPC use, by using ctypes and your own cross-compiled C code in a shared object (take care using the fullpath to your .so when loading it with ctypes: cdll.LoadLibrary("full_path_to_the_so"))