I want to know if there's any way in Android to programatically know if
public boolean onCreateOptionsMenu(Menu menu)
has been called and returned.
I'm using actionsherlockbar library in a project and the app has to download some content and I'd like to start the download when the action bar is loaded so I can use its integrated progress interface, but I can't find a way since onCreateOptionsMenu is called after onCreate.
To sum up, hat I want to do is:
-load the actionBar -notice it is loaded -enable the progress bar -download -disable the progress bar
But I don't know how to notice it's loaded.
Thanks in advance for your help.