Can you define an Android intent-filter using a string resource?

Not directly answering the OP's question, but what drove me to this question was that I wanted to be able to define different actions in different situations (including defining an action triggering a component in android library in the application using this library). I eventually found about manifest placeholders, which were actually what I needed. Hopefully, this will be useful for someone else too.

PS: Yes, defining a placeholder in the app still allows you to use it in a library, because of the manifest merging happening at build time.


Its not the issue with intent-filter, the issue is with android:name. android:name attribute is not taking string resource for activity name also. example <activity android:name="@string/app" android:label="@string/app_name"> is not valid in android.