O'Reilly logo
  • Karthik Rajagopalan thinks this is interesting:

getIntent inside your onCreate method and check why it’s being started so you can take the right action (by calling getAction).

From

Cover of Beginning Android Programming: Develop and Design

Note

How to get the intent for the activty.