@Override protected Void doInBackground(String... params) { mFileSize.clear(); mFileTime.clear(); ArrayList<String> fileList = (ArrayList<String>) FileUtils.getVideoFileName(); for (String str : fileList) { mFileSize.add(FileUtils.getFileSize(str)); mFileTime.add(FileUtils.getVideoTime(getContentResolver(), getResources(), str)); } mFileList = fileList; return null; }
@SuppressWarnings("rawtypes") private void deleteRecorder() { Iterator<?> iter = mSelectMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); Boolean val = (Boolean) entry.getValue(); if (val) { Integer key = (Integer) entry.getKey(); FileUtils.deleteRecordFile(mFileList.get(key)); mThumbnailMap.put(key, null); mTaskMap.put(key, false); } } mFileTask = new FileTask(); mFileTask.executeOnExecutor(PoolThread.THREAD_POOL_EXECUTOR, ""); exitOptionSelect(false); }