I am new to android. My minimum API level needs to be 7, so that I can test the app on my htc hero. My target API level is 17. The error concerns the actionbar. Some code is added by eclipse and I guess I need it to propperly run my app on the latest android versions:
getActionBar().setDisplayHomeAsUpEnabled(true);
getActionBar()
gives NPE on API 7, but not on API 17. How do I solve this without deleting the code (which I will presumably need for modern API levels)?