83139

CameraCaptureTask missing in Window Phone 8.1 runtime???

How to show camera app and capture when Chooser tab completed. I used CameraCaptureTask in window phone. http://msdn.microsoft.com/en-us/library/windows/apps/hh394006%28v=vs.105%29.aspx. But it missing in window phone 8.1 runtime.

Answer1:

In Windows Phone 8.1 XAML apps you can use the FileOpenPicker to select am image either from the picture library, or from the camera. Make sure you have added ".jpg" to the picker file types, otherwise the camera button may not show. Here is sample code:

FileOpenPicker picker = new FileOpenPicker(); picker.FileTypeFilter.Add(".png"); picker.FileTypeFilter.Add(".jpg"); picker.ContinuationData["DATA"] = "MYDATA"; // The app may be closed while displaying the picker dialog, and this data will be passed back to the application on activation. picker.PickSingleFileAndContinue();

Recommend

  • C#: How to use custom autocomplete source for textbox
  • The remote server returned an error: (440) Login Timeout
  • Loop through each value to the seq num
  • Connect unmanaged c++ to WCF using TCP Binding
  • Windows 8 Metro style ListView auto scroll
  • UWP - Show textbox text highlight while textbox is out of focus
  • How to clip image to ellipse in XAML
  • Retrieving a contacts notes
  • Installing apk from within application in android
  • How to merge two Request in Laravel
  • Updating one element of a bound Observable collection
  • How to convert WPF project so it can be used as a class library by a separate exe
  • GRPC and types import error in App Engine Datastore
  • How to use SBT with multiple sub project web applications?
  • Unique SMS sender id?
  • Zend Framework bassed projects
  • Android Lock Screen C# .NET Replica
  • Regex for URL rewrite with optional query string parameters
  • What is corresponding c++ data type to SQL numeric(18,0) data type?
  • Other than Linq to SQL does anything else consume INotifyPropertyChanging?
  • How can I include If-None-Match header in HttpRequestMessage
  • WP8.1 AppBarButton holding event
  • git add error : “fatal : malloc, out of memory”
  • Switch to popup in python using selenium
  • npm 5.4.1 install/uninstall all failing
  • how to upload multiple files in c# windows application
  • Parse a date string in a specific locale (not timezone!)
  • Combining SpatialPolygonsDataFrame of two neighbour countries
  • Display issues when we change from one jquery mobile page to another in firefox
  • C# - Serializing and deserializing static member
  • Sony Xperia Z Tablet not found by adb
  • Does CUDA 5 support STL or THRUST inside the device code?
  • Javascript convert timezone issue
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • Do I've to free mysql result after storing it?
  • Why winpcap requires both .lib and .dll to run?
  • How do you join a server to an Active Directory (domain)?
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • How can I remove ASP.NET Designer.cs files?
  • reshape alternating columns in less time and using less memory