title: Best way to get layout inflater?
body: <p>I have just come across the <code>getLayoutInflater()</code> method, I have always used 
  <code>LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);</code> to get the layout inflater so I was just wondering what is the difference between these two? Is there a case where one of these will work and not the other ? Thanks</p>