这是我用来打开使用默认图库的相机拍摄的图像的代码:
Dim i As Intent
i.Initialize(i.ACTION_VIEW, "mnt/sdcard/DCIM/Camera/IMG_20121027_205219.jpg")
Log("mnt/sdcard/DCIM/Camera/IMG_20121027_205219.jpg")
i.SetType("image/*")
StartActivity(i)
Log("error:"&I)
当我点击按钮时,图库会打开然后强行关闭。
答案 0 :(得分:2)
Dim i As Intent
i.Initialize(i.ACTION_VIEW, "file:///sdcard/DCIM/Camera/IMG_20121027_205219.jpg")
Log("mnt/sdcard/DCIM/Camera/IMG_20121027_205219.jpg")
i.SetType("image/*")
StartActivity(i)
Log("error:"&I)