// 打开文件夹的方法
public void OpenFile() {
try {
Intent intent = new Intent();
/* 开启Pictures画面Type设定为image */
intent.setType("image/*");
/* 使用Intent.ACTION_GET_CONTENT这个Action */
intent.setAction(Intent.ACTION_GET_CONTENT);
/* 取得相片后返回本画面 */
startActivityForResult(intent, SHOW_ACTIVITY_TWO);
} catch (ActivityNotFoundException e) {
// TODO: handle exception
Toast.makeText(Index.this, "can not open File", Toast.LENGTH_LONG)
.show();
}
}
public void OpenFile() {
try {
Intent intent = new Intent();
/* 开启Pictures画面Type设定为image */
intent.setType("image/*");
/* 使用Intent.ACTION_GET_CONTENT这个Action */
intent.setAction(Intent.ACTION_GET_CONTENT);
/* 取得相片后返回本画面 */
startActivityForResult(intent, SHOW_ACTIVITY_TWO);
} catch (ActivityNotFoundException e) {
// TODO: handle exception
Toast.makeText(Index.this, "can not open File", Toast.LENGTH_LONG)
.show();
}
}