use JNI to broadcast pref changes