I'm pretty new to learning about java and android development; so please help me out. In the next line of code I am trying to create a button but I am having trouble understanding why the 'id' is underlined. When I fix it in the R folder the .blue_yes gets underlined and I am confused what I should do next? Any help would be helpful. Thanks
Button yes = (Button) findViewById(R.id.blue_yes);
yes.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
mBtAdapter.enable();
setResult(CheckBluetoothEnabledActivity.RESULT_SUCCESS);
finish();
}
});
Button cancel = (Button) findViewById(R.id.blue_cancel);
cancel.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
setResult(CheckBluetoothEnabledActivity.RESULT_CANCEL);
finish();
}