これは、件名に関連するマニフェスト コードです。
<activity
android:name="smartHomes.capstone.GeneralAndSecurity"
android:label="@string/title_activity_general_and_security"
android:parentActivityName="smartHomes.capstone.HomePage" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="smartHomes.capstone.HomePage" />
</activity>
これはエラーログです:
03-20 21:19:18.227: E/AndroidRuntime(787): FATAL EXCEPTION: main
03-20 21:19:18.227: E/AndroidRuntime(787): java.lang.IllegalArgumentException: Activity GeneralAndSecurity does not have a parent activity name specified. (Did you forget to add the android.support.PARENT_ACTIVITY <meta-data> element in your manifest?)
03-20 21:19:18.227: E/AndroidRuntime(787): at android.support.v4.app.NavUtils.navigateUpFromSameTask(NavUtils.java:177)
03-20 21:19:18.227: E/AndroidRuntime(787): at smartHomes.capstone.GeneralAndSecurity.onOptionsItemSelected(GeneralAndSecurity.java:41)
03-20 21:19:18.227: E/AndroidRuntime(787): at com.actionbarsherlock.app.SherlockActivity.onMenuItemSelected(SherlockActivity.java:208)
戻るボタンがエラーを返す理由を教えてください。