title: How can I specify an intent filter to recognize jpg files, but not jpeg in Android?
body: <p>Basically, I want my app to be able to open <em>JPG</em> or <em>jpg</em> files, but not files with the file extension <em>JPEG</em> or <em>jpeg</em>. This is what I have for intent filters, but it is also accepting <em>JPEG</em> and <em>jpeg</em>:</p>
  
  <pre><code>&lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
      &lt;data android:scheme="content" android:mimeType="application/octet-stream" android:pathPattern=".*\\.jpg" /&gt;
      &lt;data android:scheme="file" android:mimeType="application/octet-stream" android:pathPattern=".*\\.jpg" /&gt;
  &lt;/intent-filter&gt;
  &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
      &lt;data android:scheme="file" android:pathPattern=".*\\.jpg" /&gt;
  &lt;/intent-filter&gt;
  &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
      &lt;data android:scheme="content" android:mimeType="application/octet-stream" android:pathPattern=".*\\.JPG" /&gt;
      &lt;data android:scheme="file" android:mimeType="application/octet-stream" android:pathPattern=".*\\.JPG" /&gt;
  &lt;/intent-filter&gt;
  &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
      &lt;data android:scheme="file" android:pathPattern=".*\\.JPG" /&gt;
  &lt;/intent-filter&gt;
  &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW"/&gt;
      &lt;category android:name="android.intent.category.DEFAULT"/&gt;
      &lt;data android:mimeType="image/jpg" android:pathPattern=".*\\.jpg"/&gt;
  &lt;/intent-filter&gt;
  &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW"/&gt;
      &lt;category android:name="android.intent.category.DEFAULT"/&gt;
      &lt;data android:mimeType="image/jpg" android:pathPattern=".*\\.JPG"/&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>How can I improve this intent filter to handle only specific image file extensions?</p>