Forum Xamarin.Forms

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Take picture in the background on Android

rozman50rozman50 Member ✭✭

Hello.
For college project I have to make an app, that takes image every n seconds and send it to a server.
I already have a working code, that opens default camera app but user has to press button to take photo.
How could I take photo without any user input?
I only need this for android.
Current code:
var photo = await Plugin.Media.CrossMedia.Current.TakePhotoAsync(
new Plugin.Media.Abstractions.StoreCameraMediaOptions
{
PhotoSize = Plugin.Media.Abstractions.PhotoSize.Medium,
SaveToAlbum = false
}) ;

Tagged:

Best Answer

Answers

Sign In or Register to comment.