title: Am trying to implement push down notification but ".build()" is showing error and i don't know why
body: <p>here is my java file </p>
  
  <pre><code>public class two extends Fragment {
  EditText ed1, ed2, ed3;
  
  public two() {
      // Required empty public constructor
  }
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
  
      View view = inflater.inflate(R.layout.fragment_two, container, false);
  
      ed1 = (EditText) view.findViewById(R.id.editText);
      ed2 = (EditText) view.findViewById(R.id.editText2);
      ed3 = (EditText) view.findViewById(R.id.editText3);
  
  
      // Inflate the layout for this fragment
      return inflater.inflate(R.layout.fragment_two, container, false);
  
  }
  public void sendNotification(View v){
      String Name = ed1.getText().toString().trim();
      String Tittle = ed2.getText().toString().trim();
      String Question = ed3.getText().toString().trim();
  
      NotificationManager notif = (NotificationManager)getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
      Notification n = new Notification.Builder(getActivity().getApplicationContext()).
              setContentText(Question).
              setContentTitle(Tittle + "-" + Name).
              setSmallIcon(R.drawable.map).build();
              notif.notify(0,n);
  }
  }
  </code></pre>
  
  <p>the build() on the second to the last line showing error don't know why please what do I have to do thank you </p>