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

compile error #6

Open
suhasswamy6756 opened this issue Sep 27, 2023 · 1 comment
Open

compile error #6

suhasswamy6756 opened this issue Sep 27, 2023 · 1 comment

Comments

@suhasswamy6756
Copy link

i am getting error in
@OverRide
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_search_devices:
checkPermissions();
return true;
case R.id.menu_enable_bluetooth:
enableBluetooth();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
the constant expression required in cases

@anjali2221
Copy link

anjali2221 commented Sep 27, 2023 via email

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

2 participants