title: Android: should I use MimeTypeMap.getFileExtensionFromUrl()? [bugs]
body: <p>For example,  I wanted to get the file Extension from the file URL using the function below:</p>
  
  <p>File name:</p>
  
  <pre><code>Greatest Hits - Lenny Kravitz (Booklet 01) [2000].jpg
  </code></pre>
  
  <p>Url of the file:</p>
  
  <pre><code>String url = "/mnt/sdcard/mydev/Greatest Hits - Lenny Kravitz (Booklet 01) [2000].jpg";
  </code></pre>
  
  <p>Function call:</p>
  
  <pre><code>String extension = MimeTypeMap.getFileExtensionFromUrl(url);
  </code></pre>
  
  <p>But I'm getting an exception on the function call. Is this a bug or a feature?</p>
  
  <p>It works fine for file names that don't contain that many foreign characters (such as paranthesis).</p>
  
  <p>Is the function buggy? Am I missing something? How am I supposed to differentiate a bug from a feature? I've read the function description and it should work properly.</p>
  
  <p>Do you personally use it in your projects? It doesn't seem <a href="http://code.google.com/p/android/issues/detail?id=5510" rel="noreferrer">reliable</a>.</p>