I'm a beginner to android, so sorry in advance for any mistakes.
So I have an activity in which I have a handler to execute a message. Now I don't know where should I call the constructor of this handler in the activity life cycle. Should it be in the activity's constructor or onCreate()
or onInit()
, which one would be most suitable.
I have this handler's static object to be initialised so I guess it won't be suitable to call it in activity's constructor.
Please help.