add jni call back function to refresh screen