title: AspectJ in Android: pointcut call(* Activity.onCreate(..)) doesn't pick out Activity.onCreate() calls
body: <p><br /> I am using AspectJ in my Android project and I'd like to write a <code>pointcut</code> that catches all the calls to <code>onCreate()</code> and <code>onDestroy()</code> of my activities. I am quite new to AspectJ, so probably I am missing something here but why this:<br />
  <code>pointcut createActivity(Activity a) : target(a) &amp;&amp; execution(* Activity.onCreate(..)) &amp;&amp; within(com.test.activities..*);</code> 
  <br /> works and this:<br /> <code>target(a) &amp;&amp; call(* Activity.onCreate(..)) &amp;&amp; within(com.test.activities..*);</code>
  <br />  doesn't work?</p>