C# Monodroid中的内容提供程序出现问题
我在xamarin中创建了一个android应用程序,它有一个自定义应用程序类C# Monodroid中的内容提供程序出现问题,c#,xamarin.android,C#,Xamarin.android,我在xamarin中创建了一个android应用程序,它有一个自定义应用程序类 [Application(Label="Demo")] public class CustomApplication : Application { public CustomApplication (IntPtr handle, JniHandleOwnership transfer) : base (handle, transfer) { } public
[Application(Label="Demo")]
public class CustomApplication : Application
{
public CustomApplication (IntPtr handle, JniHandleOwnership transfer)
: base (handle, transfer)
{
}
public CustomApplication()
{
}
}
现在,我已经在清单文件中创建了一个具有某些权限的内容提供程序。
我的应用程序运行良好,如果我的应用程序中没有自定义应用程序类,我可以向内容提供商查询。但若我使用自定义应用程序类和内容提供商,那个么我的应用程序甚至不会打开。基本上,我需要我的应用程序作为内容提供商。
我需要一些帮助 如果您在AndroidManifest.xml中向
应用程序
节点添加了权限,则在您创建自己的应用程序
类并使用应用程序
标志对其进行属性化后,它将被覆盖。您可以阅读有关应用程序
标志的更多信息