How to detect if my android application is minimized or not programmatically?
<p>I am creating chat application.So whenever my application is minimized and new message arrives at my application , notification message will be display on the screen .I am having the code for notification ,but I am not able to check my application is  minimized or not???</p>

<p>Any help will be greatly appreciated</p>
