我有xamarin自定义相机应用程序,现在需要运行相机应用程序默认相机。技巧是相机工作,但当我尝试将其作为默认相机访问时,它不会出现。我没有运气就在网上查询。我的清单文件似乎没问题,但是当我想在我的设备上选择它作为默认摄像头时,它不希望出现。
xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="Meniko_Cam.Meniko_Cam" android:versionCode="1" android:versionName="1.0">
<!--suppress UsesMinSdkAttributes-->
<uses-sdk android:minSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET" />
<permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<permission android:name="android.permission.CAMERA" />
<permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application android:name="android.app.Application" android:allowBackup="true" android:label="Meniko_Cam.Meniko_Cam" android:debuggable="true">
<activity android:label="Meniko Camera" android:name="md520776b34c29868a8e2c9da76ebebad64.MainActivity">
<intent-filter android:icon="@drawable/icon">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<provider android:name="mono.MonoRuntimeProvider" android:exported="false" android:initOrder="2147483647" android:authorities="Meniko_Cam.Meniko_Cam.mono.MonoRuntimeProvider.__mono_init__" />
<!--suppress ExportedReceiver-->
<receiver android:name="mono.android.Seppuku">
<intent-filter>
<action android:name="mono.android.intent.action.SEPPUKU" />
<category android:name="mono.android.intent.category.SEPPUKU.Meniko_Cam.Meniko_Cam" />
</intent-filter>
</receiver>
</application>
</manifest>