how to see the action which has triggered/ started a component(activity)?
use getAction() from the intent.
use getIntent() and then use getAction() from that intent.
Option 3 is true, but not always. some times you don't need to get the intent specifically.
Use getIntent() - then- getAction(). getIntent will give you the intent, from which you can fetch the action. but some times intent will be directly available in onNewIntent() function of the activity, in some scenarios. in that case you don't need to use getIntent() specifically.
Back To Top