Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on second_activity.java #7

Open
V3L0CITY opened this issue Feb 2, 2019 · 0 comments
Open

error on second_activity.java #7

V3L0CITY opened this issue Feb 2, 2019 · 0 comments

Comments

@V3L0CITY
Copy link

V3L0CITY commented Feb 2, 2019

@OverRide
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {

    switch(item.getItemId()){
        case R.id.logoutMenu:{
            Logout();
            break;
        }
        case R.id.profileMenu:
            startActivity(new Intent(SecondActivity.this, ProfileActivity.class));
            break;

    }
    return super.onOptionsItemSelected(item);
}

}

and in UpdateProfile
i am getting getUsername red sign
and
getting red sign on menu
logoutMenu:
profileMenu: are red also please see this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant