super.onCreate(savedInstanceState); setContentView(R.layout.local_sample); // Watch for button clicks. Button button = (Button)findViewById(R.id.go); button.setOnClickListener(mGoListener);