Button myBtn = (Button) this.findViewById(R.id.myBtn);
However, it does not work for me. Eventually, I got a useful answer. It's better to clean the entire project before compiling the updated source code. Since I am using 'ant' for the compilation, it will be like this:
> ant clean
> ant debug
> adb -d install -r bin\xxx-debug.apk