Skip to content

Instantly share code, notes, and snippets.

@louisbl
Created July 15, 2013 18:51
Show Gist options
  • Save louisbl/6002384 to your computer and use it in GitHub Desktop.
Save louisbl/6002384 to your computer and use it in GitHub Desktop.
static public native void onFBEvent( String jsEvName , String javaArg1 , String javaArg2 );
static{
System.loadLibrary( "HypFacebook" );
}
private static GLSurfaceView _mSurface = (GLSurfaceView) GameActivity.getInstance().getCurrentFocus();
private void onFBEventWrapper( final String arg0, final String arg1, final String arg2 ) {
_mSurface.queueEvent(new Runnable() {
@Override
public void run() {
onFBEvent( arg0, arg1, arg2 );
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment