How to keep action bar "clickable" when foreground activity has a progressDialog showing?

A

AC Question

I have a progress dialog that is launched to indicate, data is being uploaded to the server. While this is happening, I want to be able to access other menu items (perhaps to switch activities) in the action bar. But I am not able to get the action bar to respond to touch. Ideas?