02-18 14:37:05.740: E/AndroidRuntime(6353): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.paddemo/com.example.paddemo.AcitonBar1}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
setContentView(R.layout.action_bar1);
getWindow().requestFeature(Window.FEATURE_ACTION_BAR);// 取到ActionBar
位置交换即可