My Widget has two buttons for right and left navigation with in the widget. If I have a set of data then I switch between data using left and right arrow button. To update data I make a Http Call every minute. If http call takes time to return, my button clicks start getting accumulated and get suddenly fired in series after a pause of 7-8 seconds. I am using pendingIntents for buttons and receiving it in broadcast receiver of widget.

Button clicks work fine if HTTP call is fast.

But if HTTP call is slow to return, and I click on let say 10 times on right arrow, while clicking nothing will happen and after 7-8 secs 10 clicks will be fired in a flash.

Please suggest how can I stop my button clicks getting blocked and then getting fired in a row.

Is the slowness of HTTP call the actual reason of buttons getting stuck ?