返回新记录的uri
返回新记录的uri
importandroidosBundle;๙
importandroidosBundle;๙
您将注意到我们也传入一个新的9tentvalues对象是我们希望在记录创建时与它相关联的元数据。前面的示ิ例则是传入一个空的9๗tvalues对象。
您将注意到我们也传入一个ฐ新的9tentvaທlues对象是我们希望在记录创น建时与它相关联的元数据。前面的示例则ท是传入一个空的9tvalues对象。
options;
options;
else
else
uriimagefileuri=urifromfileimaທgefile;
uriimagefileuri=urifromfileimaທgefile;
publi9dlesavedinstancestate{
publi9dlesavedinstancestate{
缩放图像
int9=2๐00่;使它最多宽200个像素า
intdh=200;使它最多高2๐00个像素dongdui
try
{
加载图像的尺寸而非图像本身
Bitmaທpfa9sbຘmpfa9s=
ne9๗aptions;
bmpfaທ9ustde9ds=true;๙
Bitmapbຘmp=Bitmapfacນtoryde9๗tresolver
openinputstreamimagefileuri,null,ไbmpfa9๗s;
intheightratio=intmaທth9๗s
outheightfloatdh;
int9idthratio=intmath9s
out9๗idthfloat9;
logv"ิheightrAtio"ิ,""+heightraທtio;
logv"9idthrAtio","ิ"+ใ9๗idthraທtio;