When you name an Activity, you are allowed to start the name with a
leading "." which causes the name to inherit the Application package.
So, when you define taskAffinity names, can you do the same thing,
i.e.

android:taskAffinity=".activities.MyAffinity"

so that the full name is:
com.mycompany.android.myapp.activities.MyAffinity, (assuming main app
package name is "om.mycompany.android.myapp.")?

I've seen other posts where people define affinity names like this,
with a leading colon:

android:taskAffinity=":MyAffinity"

Task affinity names are global across the phone, so I'd like to know
the proper way to define them.

I assume defining a fully explicit affinity name would be the safest?
i.e.

android:taskAffinity="com.mycompany.android.myapp.activities.MyAffinity"

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to