1
使用OnActivityResult,如何獲取圖像的完整路徑?我正在使用OnActivityResult,並得到一個位圖。我能否以某種方式加載該信息文件?這裏是我的代碼:MonoDroid獲取完整圖像路徑,OnActivityResult
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
{
try
{
base.OnActivityResult(requestCode, resultCode, data);
switch (requestCode)
{
case REQUEST_IMAGE:
if (resultCode == Result.Ok)
{
//Bitmap thumbnail = (Bitmap)data.Extras.Get("data");
//imagePicture.SetImageBitmap(thumbnail);
}
break;
default:
break;
}
}
catch (System.Exception ex)
{
}
}