title: Can't find getPackageManager() method in android
body: <p>I have problem with my project.</p>
  
  <p>I can't find <code>getPackageManager()</code> method although i imported  <code>android.content.pm.PackageManager;</code></p>
  
  <p>what wrong with this piece of code</p>
  
  <pre><code>List&lt;PackageInfo&gt; packs = getPackageManager().getInstalledPackages(0);
  </code></pre>
  
  <p>.Thanks for your helping</p>