title: How to set drawable variable with ArrayAdapter to display it in ListView in android
body: <p>I want to make a list of app icons and display it in <code>listView</code>.I have stored the package names in <code>ArrayList</code> variable <code>array</code>.I am getting the applications icon by using this code:</p>
  
  <p><code>Drawable icon=getPackageManager().getApplicationLogo(array.toString());</code></p>
  
  <p>and storing all the icons in <code>drawable</code> variable <code>icon</code>.Now I want to set the  variable <code>icon</code> with <code>ArrayAdapter</code> in order to display it in <code>listview</code>.But I don't know how to do it can anyone help me..</p>