The action bar requires a minimum of API 11. If you want to remove it programmatically, although you can use hide () in the code for this action.
ActionBar actionBar = getActionBar(); actionBar.hide();
Not quite sure what it will show for anything below 3.0, but it seems like the best place to start.
Edit:
You can check the SDK version at runtime using build constants
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { //checks if its lower than Honeycomb ActionBar actionBar = getActionBar(); actionBar.hide(); }
source share