CHANGED:applied the bridge function with EXTERN C metadata,applied the demo appliction with segement button swich handler