got ANR on clicking button in my App (Android)
<p>i have a button in my app, if i click it once, everything is OK, the problem is when i keep clicking it very quickly, i'll get an ANR. Here is part of my code:</p>

<pre><code>shareBtn.setOnClickListener(new OnClickListener() {
        public void onClick(View v) {
            shareBtn.setClickable(false);
            new UploadPicture().execute(urls);                    
        }
    });

private class UploadPicture extends AsyncTask&lt;String, Void, Boolean&gt; {
         protected Boolean doInBackground(String... urls) {

            Booblean boo = uploadPic(picPath);  

            return boo;
         }

         protected void onPostExecute(Boolean result) {
             //do nothing
         }
     }
</code></pre>

<p>1, i have shareBtn.setClickable(false);
2, i use AsyncTask to do things that will cost long time.</p>

<p>anyone could give me some advices? Thanks a lot!</p>
