title: How to check file extension on Android
body: <p>In my application, when we browse the file from the SD card, the files will be .text, .jpg and mpeg4ie video files.</p>
  
  <p>I want to store each file type into a particular folder. For example, .text files go to the text folder.  When I select the file, how do I check the file extension?</p>