static function call from ndk and button click correction