http://developer.android.com/training/basics/supporting-devices/languages.html
http://developer.android.com/training/basics/supporting-devices/screens.html
http://developer.android.com/training/basics/supporting-devices/platforms.html
privatevoid setUpActionBar(){ // Make sure we‘re running on Honeycomb or higher to use ActionBar APIs if(Build.VERSION.SDK_INT >=Build.VERSION_CODES.HONEYCOMB){ ActionBar actionBar = getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); } }
原文:http://www.cnblogs.com/davesuen/p/3539806.html