Search code examples
xamarinxamarin.androidandroid-camera2

Xamarin.Android Camera2 API Camera don`t appears in default apps


I downloaded the sample Сamera2 API code to my device. In another app, I want to launch a third-party camera, but I can't select the one I downloaded.


Solution

  • I Found solution for Xamarin.Android. I added above my CameraActivity page right near that Manifest String [Activity (Label = "Camera2Basic", MainLauncher = true, Icon = "@drawable/icon")]

    my Intent Filter which contains this code

    [IntentFilter(new[] { "android.media.action.IMAGE_CAPTURE" }, Categories = new[] { Intent.CategoryDefault})]

    This code write strings in Manifest, they needs for default intent call