title: Android development in IntelliJ IDEA -v Eclipse (Starting an Activity)
body: <p>I am just beginning with developing Android projects and I've run into a road bump. I am starting with the developer site (http://developer.android.com/training/basics/firstapp/index.html) and my problem begins with starting a new Activity (http://developer.android.com/training/basics/firstapp/starting-activity.html)</p>
  
  <p>The site expects Eclipse, and I suspect that I am missing something that happens behind the scenes with Eclipse, but I am using IntelliJ IDEA.</p>
  
  <p>In DisplayMessageAcitivity.java I am getting the following Error:</p>
  
  <pre><code>cannot find symbol variable activity_display_message.
  </code></pre>
  
  <p>In the Eclipse example, this is a Layout Name.</p>
  
  <p>I am including my code as it was when I first encountered the issue rather than with my attempts at fixes.</p>
  
  <p>DisplayMessageActivity:</p>
  
  <pre><code>public class DisplayMessageActivity extends Activity {
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_display_message);
      }
  }
  </code></pre>
  
  <p>AndroidManifest:</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"
            android:versionCode="1"
            android:versionName="1.0"&gt;
      &lt;uses-sdk android:minSdkVersion="13"/&gt;
      &lt;application android:label="@string/app_name" android:icon="@drawable/icon"&gt;
          &lt;activity android:name="MyActivity"
                    android:label="@string/app_name"&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;/activity&gt;
          &lt;activity android:name=".DisplayMessageActivity"
                    android:label="My Message"&gt;
                  &lt;meta-data android:name="android.support.PARENT_ACTIVITY"
                          android:value="com.example.MainActivity"/&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>R.java:</p>
  
  <pre><code>package com.example;
  
  public final class R {
      public static final class attr {
      }
      public static final class color {
          public static final int testing_string_color=0x7f040000;
      }
      public static final class drawable {
          public static final int icon=0x7f020000;
      }
      public static final class id {
          public static final int edit_message=0x7f060000;
      }
      public static final class layout {
          public static final int main=0x7f030000;
      }
      public static final class string {
          public static final int app_name=0x7f050000;
          public static final int button_send=0x7f050002;
          public static final int edit_message=0x7f050001;
          public static final int menu_settings=0x7f050003;
          public static final int title_activity_main=0x7f050004;
      }
  }
  </code></pre>
  
  <p>main.xml:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:orientation="horizontal"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
          &gt;
      &lt;EditText android:id="@+id/edit_message"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:hint="@string/edit_message"/&gt;
      &lt;Button android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:text="@string/button_send"
              android:onClick="sendMessage"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>