title: 4.4.2 Layout Call Issue (Eclipse)
body: <p>I'm very new to android development (this is actually my first project) and I have searched for a solution to this issue ever since the last update, but I haven't found anything that I hadn't previously tried, or actually pertained to my problem. I apologize if the answer is already out there and I have not found it yet. </p>
  
  <p>Here's the problem:<br>
  When I attempt to start coding from Eclipse's Auto-Generated Android Application Project, things begin well. However, when I try to assign tasks to the different elements from the layout, such as <i>onClick()</i>, the layout call <i>setContentView(R.layout.activity_main)</i> returns as an invalid <i>int</i> call. The only quick-fix that is suggested is to change the layout call to a file that isn't even part of the project [<i>setContentView(R.layout.activity_list_items)</i>]. Even if I do use this suggestion, however, I am still unable to use the element I need to assign the function to, because it is not part of the project.<br>
  Also, this is my current activity_main.xml:</p>
  
  <p>If it helps to understand what I mean, this is where my issue seems to lie:</p>
  
  <pre><code>    public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          // Prior to 4.4.2, was still able to call layout without issue.
          // Upon update, has not worked since.
          // Unknown as to why.
          setContentView(R.layout.activity_main); // here
  
          getExternalFilesDir(mCurrentPhotoPath); // no issue with this function
  
          scanButton = (Button)findViewById(R.id.scanButton); // issue starts with this line
          helpButton = (Button)findViewById(R.id.helpButton);
          setButton = (Button)findViewById(R.id.setButton);
          scanButton.setOnClickListener(scanBtn);
          helpButton.setOnClickListener(helpBtn);
          setButton.setOnClickListener(setBtn);
      }
  </code></pre>
  
  <p>If I remove the <em>findViewById()</em> and Button.<em>setOnClickListener()</em> functions, the layout returns to being a valid call. Please help me, this has been driving me insane for weeks now and I can't even continue with the rest of the project until I fix this. If you need more of what I have, in case something else is blocking it, let me know and I'll revise the question. Thank you.</p>
  
  <p>Edit #1: I said "<em>findViewById()</em> and Button.<em>setOnClickListener()</em> functions," but I should have said "or (inclusive)." It should also be mentioned that "<i>getExternalFilesDir(mCurrentPhotoPath)</i>" is utilized by the set and scan <i>onClick()</i>'s, though I may need to move the function inside of the calls to make them work correctly. As for the activity_main.xml file having an issue, the only thing I changed from the auto-generated file is to add the Buttons and ImageView fields which will have the functions assigned to them. I'll still attempt to see if changing these things will make this work, but I'm not sure how to do so.<br>
  Also, this is my current xml file. Should have had this here to begin with.</p>
  
  <pre><code>    &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:paddingBottom="@dimen/activity_vertical_margin"
          android:paddingLeft="@dimen/activity_horizontal_margin"
          android:paddingRight="@dimen/activity_horizontal_margin"
          android:paddingTop="@dimen/activity_vertical_margin"
          tools:context=".MainActivity" &gt;
  
          &lt;ImageView
              android:id="@+id/photo"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentTop="true"
              android:layout_centerHorizontal="true"
              android:contentDescription="@string/PicDescript"
              android:minHeight="100dp" /&gt;
  
          &lt;Button
              android:id="@+id/scanButton"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_alignParentLeft="true"
              android:text="@string/scanText"
              android:onClick="ButtonOnClick" /&gt;
  
          &lt;Button
              android:id="@+id/helpButton"
              style="?android:attr/buttonStyleSmall"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignBaseline="@+id/scanButton"
              android:layout_alignBottom="@+id/scanButton"
              android:layout_centerHorizontal="true"
              android:text="@string/helpText"
              android:onClick="ButtonOnClick" /&gt;
  
         &lt;Button
              android:id="@+id/setButton"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_alignParentRight="true"
              android:text="@string/setText"
              android:onClick="ButtonOnClick" /&gt;
  
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Edit #2: Oh dear...the second suggestion worked. Now I've got to see if I can fix the other issue it created. Thank you so much guys.</p>