Hooking up a new android component to main activity
<p>So i wrote a scrolling image component which uses relative layout's , linear layouts , 
AsyncTasks and canvas drawing. While developing I tested the application by writing everything inside a dummy activity. Since my component uses threads to communicate with the server, the thread creation and destruction are related to the activity life cycle. </p>

<p>Now, i want to embed this component inside the real main activity of application. So my question is there a way to make my component aware of activity life cycle events. The approach I have used now is to create a matching life cycle method such as (onMyComponentCreate()) and call it inside onCreate. Is there another way to do that?</p>
