title: How to get a reference to LocationManager inside a Fragment
body: <p>I have a class that extends Fragment and implements LocationListener.
  When I write </p>
  
  <pre><code>LocationManager myLocalManager =
  (LocationManager)getSystemService(Context.LOCATION_SERVICE);
  </code></pre>
  
  <p>I get an compile time error because the method <code>getSystemService</code> is not a method of Fragment.</p>
  
  <p>What can I do in order to create the <code>LocationManager</code>?</p>