How to create a button Inside a Fragment? : **This is my code**:
Iam creating a fragment Were If I click on the button It should Show Tost Message

public class Aboutus extends Fragment implements View.OnClickListener{


    Button ps,fb;

    @Nullable

    @Override

    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view= inflater.inflate(R.layout.about_layout, container, false);
         ps = (Button) view.findViewById(R.id.ps_btn);
         fb = (Button) view.findViewById(R.id.fb_btn);

     try {
         ps.setOnClickListener(this);
     }catch (ActivityNotFoundException exception) {

     }
      //fb.setOnClickListener(this);

      return view;
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.fb_btn:

                Toast.makeText(getActivity(), "This is my Toast message!", Toast.LENGTH_LONG).show();
                break;
            case R.id.ps_btn:

                Toast.makeText(getActivity(), "This is my Toast message!", Toast.LENGTH_LONG).show();
                break;
        }
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        //you can set the title for your toolbar here for different fragments different titles
        getActivity().setTitle("ABOUT US");
    }
    
    }

**My app is Stoped working when i open the fragment..please Help**
