title: How to make a conditional invalidateOptionsMenu() call depending on the API level in Android?
body: <p>I'm trying to update the menu buttons of my app every time one of them is pressed; in API 11+, you need to call <code>invalidateOptionsMenu()</code> to do this; since I want my app to be compatible with lower APIs, how do I only call this method when using api 11+?</p>