@Override
 protected void onCreate(Bundle savedInstanceState) {
   docSessionManager = new DocSessionManager(getApplicationContext());
   if (!docSessionManager.isLoggedIn()) {
     docSessionManager.checkLogin(BaseActivity.this);
   }
   super.onCreate(savedInstanceState);
 }
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {

    switch (item.getItemId()) {
      case android.R.id.home:
        mDrawerLayout.openDrawer(GravityCompat.START);
        return true;

      case R.id.action_share:
        sharingIntent();
        break;
      case R.id.action_logout:
        docSessionManager.logoutUser();
        break;
    }
    return super.onOptionsItemSelected(item);
  }