Should I specify both XML attributes for newer and older APIs in my AndroidManifest file if the minSdk is set to API 11? If not, which one should I specify?
Here is an example of using both parentActivityName
attributes:
<activity
android:name=".SettingsActivity"
android:label="@string/action_settings"
android:parentActivityName=".MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity"/>
</activity>
Based on the documentation:
So it means yes! You need to indicate both attributes if your minimum API requires.
Cheers A.