title: How to convert a URI to an integer drawable and add it to int[] array of drawables?
body: <p>I have an array of integers which stores drawables: </p>
  
  <pre><code> menuIcons = new int[] {R.drawable.icon_default,R.drawable.icn_delete_45x45,
      R.drawable.icn_delete_45x45,R.drawable.icn_delete_45x45 };
  </code></pre>
  
  <p>I use this array to populate images in my list. Now the problem scenario is that for the first row I dont have an image in the draable folder but I have a URI in my database, this URI can refer to a server URL or a local URI on the SDCard or even a content provider URI. I have a function to handle displaying images from various sources. </p>
  
  <p>The problem here is that I dont know how to add this URI at position 0 of my int array of drawables, or is that even possible? </p>
  
  <p>As a duct-tape solution I can pass this URI to my constructor of the ListAdapter Class and detect the position 0 and display the image accordingly. But that is not a proper solution.  </p>