Taking or choosing photos
It's very common to work with the camera in applications: you want to take a photo or video, post on social media, or just keep it as records, from expenses to business cards.
For this recipe, we will use a Xamarin plugin to simplify the process and achieve the goal of using the camera for capturing photos and videos with a couple of code lines.
How to do it…
- Create a Blank App (Xamarin.Forms Portable) solution from File | New | Project…, named
XamFormsTakingPhotos
and click OK. - For each project created, we will add the
Xam.Plugin.Media
NuGet package. Right-click the projects one by one, choose Manage NuGet Packages and search and install theXam.Plugin.Media
package. - Three permissions are required in the Android Manifest. ...
Get Xamarin: Cross-Platform Mobile Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.