title: The <activity> element must be a direct child of the <application> element
body: <p>I just wanted to launch my application, but it always fails and gives me this error. Before, it would just install the .apk file, but now it just fails to start at all. I just began and was following the Android Developing tutorial.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.myfirstapp"
          android:versionCode="1"
          android:versionName="1.0" &gt;
  
          &lt;uses-sdk
              android:minSdkVersion="8"
              android:targetSdkVersion="17" /&gt;
  
          &lt;application
              android:allowBackup="true"
              android:icon="@drawable/ic_launcher"
              android:label="@string/app_name"
              android:theme="@style/AppTheme" &gt;
              &lt;activity
                  android:name="com.example.myfirstapp.MainActivity"
                  android:label="@string/app_name" &gt;
                  &lt;activity
                      android:name="com.example.myfirstapp.DisplayMessageActivity"
                      android:label="@string/title_activity_display_message"
                      android:parentActivityName="com.example.myfirstapp.MainActivity" &gt;
                      &lt;meta-data
                          android:name="android.support.PARENT_ACTIVITY"
                          android:value="com.example.myfirstapp.MainActivity" &gt;
                          &lt;intent-filter&gt;
                              &lt;action android:name="android.intent.action.MAIN" /&gt;
                              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
                          &lt;/intent-filter&gt;
                      &lt;/meta-data&gt;
                  &lt;/activity&gt;
              &lt;/activity&gt;
          &lt;/application&gt;
  
      &lt;/manifest&gt;
  </code></pre>