((Button) findViewById(R.id.Button01)).setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
// startActivityForResult(Intent.createChooser(intent,
// "Select Picture"), SELECT_PICTURE);
Log.d("Gallery displaying....!",""+intent);
final File imagesFolder = new File(Environment.getExternalStorageDirectory(), "Safe");
imagesFolder.mkdirs(); // <----
startActivityForResult(intent,0);
}
});`
我从图库中选择图像并保存到 SD 卡,但我需要在运行时保存图像资产文件夹,请帮助任何人......