TC56 infrared scanner not working on logout from android app

I am using the code below to logout user from app and sent them to sign in activity. Infrared scanner not working in sign in activity after logout method. The logout method is in a BaseActivity class where other activity inherit the BaseActivity and use the logout method. Any help is greatly appreciated.

Below the logout code: (logout method is generic and it can be called from any activity)

------------------

Intent intent = new Intent(mContext, SignInActivity.class);

intent.putExtra("finish", true);

intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |

  Intent.FLAG_ACTIVITY_CLEAR_TASK |

  Intent.FLAG_ACTIVITY_NEW_TASK);

mContext.startActivity(intent);

finish();

code in sign in activity:

------------------------------

@Override
public void onStop() {

   super.onStop();  

  BarcodeScanner.deInitScanner();

  BarcodeScanner.releaseEmdk(); 

}

@Override
protected void onDestroy() {

   // TODO Auto-generated method stub
   super.onDestroy();

   if (BuildConfig.DEVICE_TYPE.equals(Constants.DEVICE_TYPE)) {

  BarcodeScanner.releaseEmdk();

  }

}

@Override
protected void onResume()

{

   super.onResume();

   if (BuildConfig.DEVICE_TYPE.equals(Constants.DEVICE_TYPE)) {

  BarcodeScanner.getInstance(this);

  BarcodeScanner.registerUIobject(this);

  }

}

@Override
protected void onPause() {

   // TODO Auto-generated method stub
   super.onPause();

   if (BuildConfig.DEVICE_TYPE.equals(Constants.DEVICE_TYPE)) {

  BarcodeScanner.unregisterUIobject();

  }

}