See this simple code,But i am getting Description
The method onClick(View) of type CheckboxActivity must override a superclass method CheckboxActivity。java on my onClick(View v) method。
public class CheckboxActivity extends Activity implements Button。OnClickListener{
/** Called when the activity is first created。 */
Button b1;
CheckBox c1, c2;
EditText et1;
@Override
public void onCreate(Bundle savedInstanceState) {
super。onCreate(savedInstanceState);
setContentView(R。layout。main);
et1 = (EditText) this。findViewById(R。id。text1);
c1 = (CheckBox) findViewById(R。id。check1);
c2 = (CheckBox) findViewById(R。id。check2);
b1 = (Button) findViewById(R。id。button1);
b1。setOnClickListener(this);
}
@Override
public void onClick(View v){
et1。setText("");
if (c1。isChecked())
et1。setText("Android ");
if (c2。isChecked())
et1。setText(et1。getText()+"iPhone ");
}
}
Anyone please help
。