Reputation: 493
I create xamarin forms where it takes a photo from camera but when i click camera open button it not open the camera. My code is here "https://github.com/Malith1994124/Kiosk/blob/master/Kiosk_V2/Kiosk_V2/Helpers/Utilities.cs" and i gave all required permissions in android section.
Can someone please help me. I am new to xamarin and um stuck here more than 1 week now.
Upvotes: 0
Views: 856
Reputation: 102
Try this: set CrossCurrentActivity.Current.Init(this, bundle);
on your MainActivity.cs
OnCreate Method.
The CurrentActivity Plugin is a dependency for CrossMedia Plugin and if it didn't create a MainApplication.cs file, you must configure it yourself, and at the minimum, you need that method call.
Upvotes: 2