title: What the original ID in MediaStore.Images.Thumbnails.getThumbnail?
body: <p>I use <code>gridView</code> to get the file list. But it can not use <code>filelist.get(position)</code></p>
  
  <p>I want to get the <code>Thumbnails</code> by using </p>
  
  <pre><code>MediaStore.Images.Thumbnails.getThumbnail(getActivity().getContentResolver(), origId, Images.Thumbnails.MICRO_KIND, null);
  </code></pre>
  
  <p>But what the <code>origId</code> of image here ???</p>
  
  <p>Is that mean <code>path</code> or <code>name</code> ?</p>
  
  <p>-------------------------------------------------EDIT---------------------------------------</p>
  
  <p>The full code is like the following:</p>
  
  <p>I want to get Thumbnails at <code>getView</code>.</p>
  
  <p><code>viewTag</code> is the other class , it store the <code>textview</code>.</p>
  
  <p>so <code>viewTag.mFilename.setText(filename);</code> is equal to <code>Textview.setText</code>.</p>
  
  <pre><code>public class LocalFileListAdapter extends BaseAdapter {
  
          private LayoutInflater mInflater ;
          private ArrayList&lt;FileNode&gt; mFileList ;
          private static final String TAG = "MJPEG Player" ;
          private Context mContext;
  
          public LocalFileListAdapter(LayoutInflater inflater, ArrayList&lt;FileNode&gt; fileList) {
              mInflater = inflater ;
              mFileList = fileList ;
          }
  
          public void GridAdapter(Context ctx) {
              // TODO Auto-generated method stub
              mContext = ctx; 
          }
  
          @Override
          public int getCount() {
              return mFileList == null ? 0 : mFileList.size() ;
          }
  
          @Override
          public Object getItem(int position) {
              return mFileList == null ? null : mFileList.get(position) ;
          }
  
          @Override
          public long getItemId(int position) {
              return position ;
          }
  
  
          @Override
          public View getView(int position, View convertView, ViewGroup parent) {
  
              ViewTag viewTag ;
  
              if (convertView == null) {
  
                  convertView = mInflater.inflate(R.layout.filelist_row, null) ;
  
                  TextView fileListName = (TextView) convertView.findViewById(R.id.fileListName);
                  fileListName.setSelected(true);
  
                  viewTag = new ViewTag(mContext , (ImageView) convertView.findViewById(R.id.fileListThumbnail), 
                          (ImageView) convertView.findViewById(R.id.select) ,
                          mFileList.get(position) , fileListName , 
                          (TextView) convertView.findViewById(R.id.fileListSize) , 
                          (ImageView) convertView.findViewById(R.id.video_layout) , 
                          (TextView) convertView.findViewById(R.id.fileListTime));
  
                  convertView.setTag(viewTag) ;
  
              } else {
                  viewTag = (ViewTag) convertView.getTag() ;
              }
  
              viewTag.mFileNode = mFileList.get(position) ;
              String filename = viewTag.mFileNode.mName.substring(viewTag.mFileNode.mName.lastIndexOf("/") + 1) ;
  
              viewTag.mFilename.setText(filename);
  
                              MediaStore.Images.Thumbnails.getThumbnail(getActivity().getContentResolver(), Long.parseLong(mFileList.get(position)), Images.Thumbnails.MICRO_KIND, null);
  
              return convertView ;
          }
      }
  </code></pre>
  
  <p>How to get the image Id ?</p>