1

I would like to take a picture from camera and after display it on the screen. I saw this post Take picture mvvmcross monodroid but this isn't the vnext version. (I haven't the Cirrious.MvvmCross.Interfaces.Platform.Tasks resource)

Can someone help me to implement this feature in my application ?


Using mvvmcross vNext and monodroid

Community
  • 1
  • 1
liotims
  • 424
  • 2
  • 18

1 Answers1

1

The picture choosing (camera and library) interfaces moved into a Plugin for vNext, so you need to:

  • reference Cirrious.MvvmCross.Plugins.PictureChooser in your ViewModel project
  • reference Cirrious.MvvmCross.Plugins.PictureChooser.Droid in your Droid UI project
  • make sure you call EnsureLoaded on the PictureChooser Plugin before you use it

Apart from that, the actual code should work the same as in Master (I think).


Other possibly helpful links are


Would love to see a sample published on this :)

Community
  • 1
  • 1
Stuart
  • 66,722
  • 7
  • 114
  • 165
  • Thanks - Please be careful testing Android Activity lifecycles when taking big (* Megapixel) pictures - sometimes you have to hook into the SavedInstanceState code in order to preserve field values! – Stuart Feb 14 '13 at 15:00
  • Comments are not for questions – Stuart Feb 15 '13 at 10:37