title: android - How to programmatically read manifest intents?
body: <p>I'm trying to make a piece of code that will work across multiple apps.  I can't figure out how to read this from within Java, though.  Is it possible without parsing the manifest manually?  I want to grab scheme1 and scheme2 out with a few lines of code.</p>
  
  <pre><code>&lt;activity android:name="urlHandlingBlah"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.VIEW"&gt;&lt;/action&gt;
          &lt;category android:name="android.intent.category.DEFAULT"&gt;&lt;/category&gt;
          &lt;category android:name="android.intent.category.BROWSABLE"&gt;&lt;/category&gt;
          &lt;data android:scheme="scheme1"&gt;&lt;/data&gt;
          &lt;data android:scheme="scheme2"&gt;&lt;/data&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>Edit: I mean how would I use PackageManager to grab this info.  I don't care about the actual XML, per se.</p>