In most of the cases you should have that in onCreate
because this method is called once and you probably want to set those actions listeners once. onResume
, according to Activity life-cycle may be called several times, according to Activity life cycle doc, and you would set those action listeners again for no reason.
However, if you would like to have a customizable behavior for that action listener for each time your Activity
becomes visible again, it may worth set your action listeners in onResume
, but that would probably apply for a small set of controls and I guess that would be very rare.