Session management on UI in android
<p>In my app, I have to handle the client side session management regarding UI that means when the user never touches on the screen for a while(eg: 1min), he will be prompted to login screen(in my case). for this I planned like this: added ontouch listener to the root view of every layout and placed my session logic. But the problem is, every layout contains lot of textviews,listviews,buttons,etc. I dont want to add ontouch listener to all these views, for this I added to only root view of my layout. when i touch on textviews, the root view's ontouch listener is getting that touch event and working fine. but when i touch on the remaining views, the root view's ontouch listener is not getting that touch event. Can someone tell me whether my approach is correct or not? If it is correct then how can I do for the remaining views?</p>

<p>thanks,<br>venu</p>
