title: Android Notification 'Cannot resolve method 'build()' from ABS Fragment
body: <p>I am attempting to show a basic notification from a fragment in an ActionBarSherlock layout. I have been <a href="http://www.tutorialspoint.com/android/android_notifications.htm" rel="nofollow">following the tutorial here</a> as well as the one on the Android Developer pages, but I am getting the error 'Cannot resolve method 'build()' on the last line. I have imported <code>android.support.v4.app.NotificationCompat</code> and <code>.app.NotificationManager</code></p>
  
  <pre><code>public void createNotification(){
  
      NotificationManager mNotificationManager = (NotificationManager)getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
      NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getActivity());
      mBuilder.setSmallIcon(R.drawable.icon);
      mBuilder.setContentTitle("Title");
      mBuilder.setContentText("Text");
      mBuilder.setTicker("Ticker");
      mNotificationManager.notify(1,mBuilder.build());
  }
  </code></pre>
  
  <p>If I change the last line to <code>mNotificationManager.notify(1,mBuilder.getNotification());</code> it works. Why is this?</p>