1Button btn1 = (Button) thisLayout
2 .findViewById(R.id.btnDb1);
3
4 btn1.setOnClickListener(new OnClickListener() {
5
6 @Override
7 public void onClick(View v) {
8 // TODO Auto-generated method stub
9 Intent intent = new Intent(getActivity(), otherActivity.class);
10 ((MainActivity) getActivity()).startActivity(intent);
11
12 }
13 });
14
15 return thisLayout;
16}