title: Load all images from assets folder dynamically
body: <p>I am building an application that currently read images from the drawable folder. Since i cannot have subfolders in the drawable i have to create subfolders in the assets folder and load images from there. Is there any way that i can create a <code>List</code> or an <code>ArrayList</code> with all the images from the assets subfolder??</p>
  
  <p>My code is this:</p>
  
  <pre><code>public class ImageAdapter extends BaseAdapter {
  
      private Context mContext;
  
      // Keep all Images in array
      public Integer[] mThumbIds = {
              R.drawable.pic_2,
              R.drawable.pic_3, R.drawable.pic_4,
              R.drawable.pic_5, R.drawable.pic_6,
              R.drawable.pic_7, R.drawable.pic_8,
              R.drawable.pic_9, R.drawable.pic_10,
              R.drawable.pic_11, R.drawable.pic_12,
              R.drawable.pic_13, R.drawable.pic_14,
              R.drawable.pic_15
      };
  
      // Constructor
      public ImageAdapter(Context c){
          mContext = c;
      }
  
      @Override
      public int getCount() {
          return mThumbIds.length;
      }
  
      @Override
      public Object getItem(int position) {
          return mThumbIds[position];
      }
  
      @Override
      public long getItemId(int position) {
          return 0;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          ImageView imageView = new ImageView(mContext);
          imageView.setImageResource(mThumbIds[position]);
          imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
          imageView.setLayoutParams(new GridView.LayoutParams(250, 400));
          return imageView;
      }
  
  }
  </code></pre>
  
  <p>Instead of having an <code>Integer[]</code> i want to have a <code>List&lt;String&gt;</code> or something like this from the assets subfolder</p>
  
  <p>Any ideas???</p>