title: Android - get manifest meta-data out of activity
body: <p>I want to do something like this</p>
  
  <pre><code>private static final String url;
  private static final String pass;
  private static final String user;
  
  static {
      Bundle metadata = ctx.getPackageManager().getApplicationInfo(ctx.getPackageName(), PackageManager.GET_META_DATA).metaData;
      url = (String) metadata.get("JMSQueueURL");
      user = (String) metadata.get("JMSQueueUsername");
      pass = (String) metadata.get("JMSQueuePassword");
  }
  </code></pre>
  
  <p>So far it was in activity (but not as static), so that I was possible to get package manager, but now i want to move this piece of code to another class which doesn't inherits ContextWrapper (from where we can get package manager). Is it possible somehow? This class is something like util class.</p>