Re: [android-developers] Understanding how the Final keyword in Android Works

2010-01-20 Thread TreKing
On Wed, Jan 20, 2010 at 11:35 AM, tim hansen < timhansen.lon...@googlemail.com> wrote: > final Builder builder = new AlertDialog.Builder(this); > > btnSave = (Button)findViewById(R.id.save_button); > > btnSave.setOnClickListener(new OnClickListener() { > @Override >

[android-developers] Understanding how the Final keyword in Android Works

2010-01-20 Thread tim hansen
Hi all, Can anyone explain why, when I use the Final keyword the following code works fine, but without it, it doesn't? I just find it irritating that I don't understand why it works! ;) Thanks in advance! Tim. public class PowerLangMaxMain extends Activity { private Button btnSave;