我制作了一个自定义相机应用程序,但我想将文件夹中保存的照片链接到图库。我该如何链接它? 我的代码是:
private void onFileClick2(Option o)
{
Toast.LENGTH_SHORT).show();
Toast.makeText(this, "File Clicked: "+f.getPath(),
Toast.LENGTH_SHORT).show();
Intent imageIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
Calendar c = Calendar.getInstance();
int seconds = c.get(Calendar.DATE);
Random r = new Random();
int i1 = r.nextInt();
File image = new File(f.getPath()+"/"+"picture"+String.valueOf(i1)+".jpg");
Uri uriSavedImage = Uri.fromFile(image);
imageIntent.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);
startActivityForResult(imageIntent , 1337);
fill(f);
}