title: Android: Incorrect File name for selected file(From file chooser)
body: <p>I have a screen where on a button click I open a file chooser and then I select a file named "Test.jpg" for further operation.
  I use following code to get name of that file.</p>
  
  <pre><code>Uri uri = data.getData();
  File file = new File(uri.getPath());
  String fileName = file.getName();
  </code></pre>
  
  <p>Here are the results from debugger</p>
  
  <pre><code>file.getName() =&gt; 167522
  
  file.toString() =&gt; /external/images/media/167522
  </code></pre>
  
  <p>I want to get Test.jpg as my filename.
  Please let me know what is wrong with my code.</p>