@Override
    public boolean onOptionsItemSelected(MenuItem item) {
      //menu item selected
        switch (item.getItemId()) {
        case R.id.action_shuffle:
          //shuffle
          break;
        case R.id.action_end:
          stopService(playIntent);
          musicSrv=null;
          System.exit(0);
          break;
        }
        return super.onOptionsItemSelected(item);
    }

R.id.action_ "": are creating problems, i am following a demo music app and have fixed other errors but can't seem to pass this one error. If i hover my cursor over the error line, i get a dialog box "create field in type id" and "create constant field in type id". I have tried both of the solutions and still am unable to pass through this error.

help.

Related posts

Recent Viewed