Is there a way in android to intercept activity method calls (only standard ones, for example, onStart. OnCreate)? I have many functions that should be present in every action in my application, and (since it uses different types of actions (List, Preferences)), the only way to do this is to create my custom extensions for each activity class that sucks: (
PS I use roboguice, but since Dalvik does not support code generation at runtime, I think it helps a little.
PSS I thought about using AspectJ, but this is too much trouble, as it requires a lot of complications (ant build.xml and all this reluctance)
source share