final Button Button1=(Button)findViewById(R.id.button1);
final Button Button2=(Button)findViewById(R.id.button2);
while debuging an error appearing :button cannot resolved to a type;
add the following code in front:
import android.widget.Button;
problem solved.
final Button Button2=(Button)findViewById(R.id.button2);
while debuging an error appearing :button cannot resolved to a type;
add the following code in front:
import android.widget.Button;
problem solved.
recommend: if you have the similar problems ,try enter a key combination:ctrl+shift+O
2011-07-27