0

I am using AspectJ for Android and I need to write pointcut execution for onDestroy() even though onDestroy() is not defined in the Activity. Since onDestroy() is always called when app is closed as a part of activity lifecycle irrespective of whether it is defined or not, how do I write pointcut for onDestroy() in case it is not defined in Activity

FAZ
  • 255
  • 1
  • 3
  • 13
  • what is the pointcut expression that you used? – sinujohn Jan 11 '16 at 14:48
  • I have not used any pointcut expression. I wanted to know what pointcut expression I can use for onDestroy() if it is not defined in Activity – FAZ Jan 11 '16 at 14:51
  • 2
    Possible duplicate of [AspectJ in Android: pointcut call(\* Activity.onCreate(..)) doesn't pick out Activity.onCreate() calls](http://stackoverflow.com/questions/6356375/aspectj-in-android-pointcut-call-activity-oncreate-doesnt-pick-out-acti) – sinujohn Jan 12 '16 at 11:47

0 Answers0