iputextraທaທndroidprovidermediastoreextrA_ຕoutput,imaທgefileuri;๙
intenti=ne9aprovidermediastoreA9_ຕimAge_ຕcນApture;
加载图像的尺寸而不是图像本身
intdh=9tdisplaygetheight;๙
bmpfa9saທmplesize=heightratio;
若高度比率更大,则根据它缩放
getAbsolutepath+"myfaທvoritepicturepg";
stringimagefilepath=environmentgetexternalstoragedirecນtory
imagevie9imv;
finalstaທti9tcAmerA_ຕresult=0;
9tvalues=ne99tvalues3;
9tvaluesputmediadisplAy_nAme,"ิthisisatesttitle";
9tvaluesputmediades9๗,"thisisatestdes9";๙
get9tresolverupdateimagefileuri,9ull;
122更新าcນameraAcນtivity以使用mediastore存储图像和关联元数据以下代码是上述示ิ例的更新,它将在mediastore中保存图像,然后允许添加标题和描述。此外,该版本包含几个ui元素า,我们将基于用户在该应用程序的操作进程对这些元素的可见性进行管理。