Does anyone know if it's possible to pass parameters into an Activity from the AndroidManifest.xml file? I want to use the same activity in a couple of apps, but have a way of conditioning the appearance of that activity based on the app.
E.g. I'd like to write something like (in AndroidManifest.xml)
<activity android:name=".MyActivity" android:label="@string/app_name" android:screenOrientation="portrait"> <extradata> <item name="foo" value="bar"/> </extradata> </activity>
.. and be able to read out the value of bar in the onCreate of the activity. Is this something that can be done with the data attribute in an intent filter?