c# - Method "TakePhotoAsync" of Xam.Plugin.Media return null on platform WinPhone in Xamarin.Forms -


i'm new xamarin , xamarin forms. not understand how come method "takephotoasync" of plugin xam.plugin.media return null lifting system.nullreferenceexception. variable media correctly initialized. part of code:

var file = await media.takephotoasync(new storecameramediaoptions                 {                     defaultcamera = cameradevice.rear,                     directory = "testphoto",                     name = "photo.jpg",                     savetoalbum = true                 }); 

exactly variable file null, why?!

due link have next thing: enter image description here

updated

components

enter image description here enter image description here


Comments

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -