Forum Xamarin.Android

Metadata XML resource not working

loleklolek Member
edited May 2020 in Xamarin.Android

Hi

I have an accessibility service where I want to load an XML manifest. I'm trying the following lines:

[Service(Label = "MyAccessibilityService", Permission = Manifest.Permission.BindAccessibilityService), IntentFilter(new[] { "android.accessibilityservice.AccessibilityService" }), MetaData("android.accessibilityservice", Resource = "@xml/serviceconfig")]

but no matter where I put serviceconfig.xml, I get the following error:
resource xml/serviceconfig (aka com.app2:xml/serviceconfig) not found.

I tried creating xml folder under Resource, but it didn't work.
where exactly should I put the file???

thanks a lot.

Sign In or Register to comment.