I have this issue with the manifest.
Looks like this may be a dupe of : Using @string for android:authorities in a ContentProvider
I have a provider with separate authorities for different versions of the app (so that the different variations can be I store these authorities within the string folders of the difference target res folders.
My manifest looks as such:
<provider android:authorities="@string/app_provider_auth" android:name="com.mecompany.myapp.provider.CachedFileProvider"/>
NOW, this works fine however I am seeing a Bad Manifest
issue when it is installed on a 2.1 OS device. This is the issue as when I change it to a text string it works fine on 2.1.
I'm taking it that on 2.1 (7) or earlier the manifest does not allow you to reference strings from the resource files. So, can I create a separate manifest for version 7-, can I have a if statement in the manifest? or do I have to raise the minSDK (last resort)?
UPDATE:
OK on further searching seems like I might be able to set/switch the provider auth string using my Maven build. I already have a number of profiles and am overriding resource folders. So i am comfortable with the idea, however its the how I can't get my head around. something like
<replaceAuthority>${customerauthority}<replaceAuthority>
However I don't know what the tag is that I should use, or if the way i have hypothesized above is the way I need to go.