holder.title.setText((String) Data.get(position).get("title")); holder.info.setText((String) mData.get(position).get("info")); return convertView; } }
private void finishWithResult(String path) { Bundle conData = new Bundle(); conData.putString("results", "Thanks Thanks"); Intent intent = new Intent(); // 以intent的方式将结果返回调用类 intent.putExtras(conData); Uri startDir = Uri.fromFile(new File(path)); intent.setDataAndType(startDir, "vnd.android.cursor.dir/lysesoft.andexplorer.file"); setResult(RESULT_OK, intent); finish(); } };
|