Tag: android camera

使用MonoDroid从相机访问全分辨率图片

我试图找到一种方法来从MonoDroid访问全分辨率图片,经过长时间尝试将Java示例移植到MonoDroid并查看其他人似乎已经得到了,我目前有以下(这不起作用) ) private const int TAKE_PICTURE = 1; protected Uri fileUri; private void takePhoto(object sender, EventArgs e) { Intent intent = new Intent(Android.Provider.MediaStore.ActionImageCapture); string path = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), “hqxmmc/pictures/ikbeneenplaatje.jpg”); Java.IO.File xfile = new Java.IO.File(path); if (xfile.Exists()) { Android.Util.Log.Warn(“FILE”, “file exists {0} \n overwriting!”, xfile.Name); xfile.Delete(); xfile.CreateNewFile(); } else { Android.Util.Log.Warn(“FILE”, “file does not exist {0}, creating”, […]