title: check if the image is in assets folder if image exists return its path in android
body: <p>I have some images in assets folder. 
  Now i want a code to check if the image exists. And if image exits then it has to return its path. 
  So what can be the possible steps to find a path of images or text files in assets folder in android?</p>
  
  <p>I used this method: but i want to get the path of images stored in assets folder.</p>
  
  <pre><code>public String filePath(String image) throws IOException{
           String myfilepath = Environment.getExternalStorageDirectory().toString()+"/"+image;
              return myfilepath;
  
          }
  </code></pre>