@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    // START SERVICE JADWAL
    startService();

    fragJadwal = new ViewJadwal2();
    menuService =
        (ViewMenuService) getSupportFragmentManager().findFragmentById(R.id.navigation_drawer);

    toolbar = (Toolbar) findViewById(R.id.toolbar);
    mTitle = (TextView) toolbar.findViewById(R.id.toolbar_title);
    setSupportActionBar(toolbar);
    // toolbar.setTitleTextColor(getResources().getColor(android.R.color.white));

    // Set up the drawer.
    menuService.setUp(
        R.id.navigation_drawer, (DrawerLayout) findViewById(R.id.drawerLayout), toolbar);

    // Load Fragment1 when the app starts
    FragmentManager fragmentManager = getSupportFragmentManager();
    fragmentManager
        .beginTransaction()
        .replace(R.id.frame_container, new ViewDataService())
        .commit();
  }
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   // Sync the toggle state after onRestoreInstanceState has occurred.
   menuService.getDrawerToggle().syncState();
 }
  public void halamanHistory(int position) {

    menuService.menuKlik(position);
  }