getActionBar();为null
解决方法:在styles.xml中appbasetheme改为 <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
01-01 08:25:44.905: E/AndroidRuntime(4562): android.view.InflateException: Binary XML file line #6: Error inflating class fragment
01-01 08:40:04.680: E/AndroidRuntime(5845): Caused by: android.app.Fragment$InstantiationException: Trying to instantiate a class com.example.iplatlayout.lightControlFragment that is not a Fragment
初始化fragment必须保证import的包是一样的,