0

Looking at other questions that are similar, the error i am receiving is sometimes due to an Eclipse bug. However, since i am a novice, this may not be the case.

The error:

Values cannot be resolved to a type

The code:

    @Override
public boolean onOptionsItemSelected(MenuItem item) {
    // TODO Auto-generated method stub
    switch(item.getItemId()){
    case R.id.bNewStory:
        startActivity(new Intent(MainActivity.this, AddStory.class));
    case R.id.bAddTopic:
        CustomDialogClass cdd=new CustomDialogClass(Values.this); //ERROR OCCURS
        cdd.show();
    }

    return true;
}

Notes:

  • Already tried restarting Eclipse
  • Already tried cleaning project
  • Package has been declared

0 Answers0