I'm intrigued by ContextWrapper and ContextThemeWrapper to solve the
OP, but I'm not clear on how to use it in that case. It looks like one
way to use it is:

class MyContextWrapper extends ContextWrapper { ...}

and then use the constructor to use it as a proxy for a given context:

SomeActivity activity; // such as ListActivity, MapActivity, etc.,
which all extend from Context
new MyContextWrapper(activity);

This could be done in the activity's onCreate().

However, it seems that a better pattern would be to use some factory
method in Application that creates Activities, which could wrap every
(or selected) activities. But I haven't found such a factory method.

-- 
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