@Override protected void onResume(){
  if (mWZCameraView != null)   mWZCameraView.setPreviewReadyListener(this);
  super.onResume();
  if (sGoCoderSDK != null && mWZCameraView != null) {
    if (mNinjaFace == null) {
      Bitmap faceBitmap=BitmapFactory.decodeResource(getResources(),R.drawable.ninja_face);
      mNinjaFace=new WZBitmap(faceBitmap);
      mNinjaFace.setPosition(WZBitmap.CENTER,WZBitmap.CENTER);
      mNinjaFace.setScale(0.50f,WZBitmap.SURFACE_WIDTH);
      mNinjaFace.setVisible(false);
      mWZCameraView.registerFrameRenderer(mNinjaFace);
    }
  }
}

@ Override protected void onResume ( ) { if ( mWZCameraView != null ) mWZCameraView . setPreviewReadyListener ( this ) ; super . onResume ( ) ; if ( sGoCoderSDK != null && mWZCameraView != null ) { if ( mNinjaFace == null ) { Bitmap faceBitmap = BitmapFactory . decodeResource ( getResources ( ) , R . drawable . ninja_face ) ; mNinjaFace = new WZBitmap ( faceBitmap ) ; mNinjaFace . setPosition ( WZBitmap . CENTER , WZBitmap . CENTER ) ; mNinjaFace . setScale ( 0.50f , WZBitmap . SURFACE_WIDTH ) ; mNinjaFace . setVisible ( false ) ; mWZCameraView . registerFrameRenderer ( mNinjaFace ) ; } } }
android activity lifecycle methods
