ANR Exception handling
<p>I have an application, where we are providing the Remote UI(which contains all the buttons to control the Media server). </p>

<p>The problem is when we click any of the button, we are executing the corresponding action, which is very long UPNP network operation.</p>

<p>so when we press the buttons continuously , finally the device comes up with ANR Exception and force close the application. I made some research on this ANR Exception and finally found that, we can use Thread or AsyncTask to solve this problem.</p>

<p><strong>But in my application since we are providing so many buttons, when user presses buttons continuously , it may inturn lead to lot of threads created in the application.</strong></p>

<p><em>Please give me your suggestions on this.</em></p>

<p><strong>How to overcome this problem?</strong></p>

<p>Thanks</p>
