title: ids cannot be resolved or is not a field
body: <p>I'm new to android development and I'm currently working on building a pretty basic application. I want 'button1' to open a new activity. Looked around online and I can't work out what I'm doing wrong! </p>
  
  <p>Java:</p>
  
  <pre><code>package com.testtest.herro;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  import android.widget.TextView;
  
  public class FullscreenActivity extends Activity
  
  {
  
  Button button1, saved;
  
      @Override
      public void onCreate(Bundle savedInstanceState) 
      super.onCreate(savedInstanceState);
          {
                  setContentView(R.layout.activity_fullscreen); 
  
              button1 = (Button) findViewById (R.id.button1);
          };
  
  };}
  </code></pre>
  
  <p>I'm getting the following errors on the public void onCreate method:</p>
  
  <ul>
  <li>Syntax errors on token ")", { expected after this token.</li>
  <li>Overrides android.app.Activity.onCreate</li>
  <li>Syntax errors on token ")", { expected after this token.</li>
  </ul>
  
  <p>The findViewById line has this error:</p>
  
  <p>-ids cannot be resolved or is not a field.</p>
  
  <p>XML:</p>
  
  <pre><code>&lt;LinearLayout 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:background="#FFFFFF"
  android:orientation="vertical"
  tools:context="com.testtest.herro.FullscreenActivity" &gt;
  
  &lt;View
      android:layout_width="1dp"
      android:layout_height="30dp" &gt;
  &lt;/View&gt;
  
  &lt;TextView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="top"
      android:gravity="center"
      android:text="Idea Cloud"
      android:textSize="45sp"
      android:typeface="monospace" &gt;
  &lt;/TextView&gt;
  
  &lt;TextView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="top"
      android:gravity="center"
      android:text=""
      android:textSize="45sp"
      android:textStyle="bold" &gt;
  &lt;/TextView&gt;
  
  &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_gravity="bottom"
      android:background="#FFFFFF"
      android:orientation="vertical" &gt;
  
      &lt;View
          android:layout_width="1dp"
          android:layout_height="30dp" &gt;
      &lt;/View&gt;
  
      &lt;Button
          android:layout_width="250sp"
          android:layout_height="100sp"
          android:layout_gravity="center"
          android:text="New"
          android:textSize="20sp"
          android:typeface="monospace"
          android:id="@+id/button1" &gt;
      &lt;/Button&gt;
  
      &lt;View
          android:layout_width="1dp"
          android:layout_height="50dp" &gt;
      &lt;/View&gt;
  
      &lt;Button
          android:layout_width="250sp"
          android:layout_height="100sp"
          android:layout_gravity="center"
          android:text="Saved"
          android:textSize="20sp"
          android:typeface="monospace"
          android:id="@+id/savedB" &gt;
      &lt;/Button&gt;
    &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Any help is greatly appreciated! Thanks. </p>