small jni improvements

fix crash after wrong getStaticMethodInfo
add some functional to support in app billing(and may be some other extensions)