In an Android module,开发者_开发知识库 does an activity requires Handler to be defined ?
No a handler is a separate object class and so one would not need to be defined if you were making an Activity.
Activity
A handler would be used if you wanted to go do something in another thread/class and call back to the activity/ui.
Handler
精彩评论