While I am adding an Action bar, emulator will be displayed "Unfortunately MainActivity has stopped", even no error and installed
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.trintwo"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion = "7"
android:targetSdkVersion = "18" />
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:name="MainActivity"
android:label="@string/app_name"
android:theme="@style/Theme.Holo.Light">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name = "com.example.trintwo.DisplayMessageActivity"
android:label = "@string/title_activity_display_message"
android:parentActivityName = "com.example.trintwo.MainActivity">
<meta-data
android:name = "android.support.PARENT_ACTIVITY"
android:value = "com.example.trintwo.MainActivity" />
</activity>
</application>
</manifest>
This is my res/values/styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light"></style>
<style name="CustomActionBarTheme"
parent="@android:style/Theme.Holo.Light.DarkActionBar">
</style>
</resources>
debug successfully and installed successfully but emulator show this "Unfortunately MainActivity has stopped"
I am using terminal [not eclipse]