I am Having an Issue Succesfully opening new activities
from these multiple buttons. Im new to coding though. can someone help
me with this issues..

I used fragments and I cannot to get to work please help. 
Here is my code so far.
Thank you

```
     public class CreditFragment1 extends Fragment {
     private static final View View = null;
         Button balance;
         Button recharge;
         Button share;
         Button buy;
     public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        return (LinearLayout) inflater.inflate(R.layout.credit_frag1_layout,
                container, false);

    // at the next line below i get "Unreachable code"
     balance =  (Button) getView().findViewById(R.id.balance_bt);
     recharge =  (Button) getView().findViewById(R.id.recharge_bt);
     share =  (Button) getView().findViewById(R.id.share_bt);
     buy =  (Button) getView().findViewById(R.id.buy_bt);

     OnClickListener balanceListener = new OnClickListener() {            
         public void onClick(View view) {
             setContentView(R.layout.balance_layout);
             Intent BalanceIntent = new Intent(getActivity(),BalanceActivity.class);
             startActivity(BalanceIntent);
            }
        private void setContentView(int balanceLayout) {
            // TODO Auto-generated method stub

        }
     };

     OnClickListener rechargeListener = new OnClickListener() {            
         public void onClick(View view) {
             setContentView(R.layout.recharge_layout);
             Intent BalanceIntent = new Intent(getActivity(),RechargeActivity.class);
             startActivity(BalanceIntent);
            }
        private void setContentView(int rechargeLayout) {
            // TODO Auto-generated method stub

        }
     };
     OnClickListener shareListener = new OnClickListener() {            
         public void onClick(View view) {
             setContentView(R.layout.share_layout);
             Intent BalanceIntent = new Intent(getActivity(),ShareActivity.class);
             startActivity(BalanceIntent);
            }
        private void setContentView(int shareLayout) {
            // TODO Auto-generated method stub

        }
     };

     OnClickListener buyListener = new OnClickListener() {
         public void onClick(View view) {
             setContentView(R.layout.buy_layout);
             Intent BalanceIntent = new Intent(getActivity(),BuyActivity.class);
             startActivity(BalanceIntent);
            }
        private void setContentView(int buyLayout) {
            // TODO Auto-generated method stub

        }
     };
            balance.setOnClickListener(balanceListener);
            recharge.setOnClickListener(rechargeListener);
            share.setOnClickListener(shareListener);
            buy.setOnClickListener(buyListener);     
            return View;
     }
}

```