Call different layouts based on function call
<p>I have 2 functions send and receive. I need to display send and receive message. I have to display a.xml if it is send function and b.xml if it is received function. How can i set the flag. Please guide me how to call layouts based on function call.</p>

<p>Thanks.</p>
