If SdkVersion >= 23 Then
i.PutExtra("output", CreateFileProviderUri(imageFolder, tempImageFile)) 'the image will be saved to this path
Else
uri.Parse("file://" & File.Combine(imageFolder, tempImageFile))
i.PutExtra("output", uri) 'the image will be saved to this path
End If