title: Eclipse MyFirstApp Android (build.version.sdk.int)
body: <p>I have followed the <a href="http://developer.android.com/training/basics/firstapp/starting-activity.html" rel="nofollow">MyFirstApp tutorial</a> line by line, but I must have skipped something, because in my onCreate method in the DisplayMessageActivity file, I get an error that I can't figure out. Here is the code in question (I tried copying it from the android website into Eclipse, but that didn't change anything):</p>
  
  <pre><code>@SuppressLint("NewApi")
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_display_message);
      // Show the Up button in the action bar.
      // Make sure we're running on Honeycomb or higher to use ActionBar APIs
      if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.HONEYCOMB){
      getActionBar().setDisplayHomeAsUpEnabled(true);
  }
  }
  </code></pre>
  
  <p>The line <code>if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.HONEYCOMB){</code> gets an error that Eclipse says "Build cannot be resolved to a variable". I was not able to figure out what that meant after googling it. I would appreciate any help on MyFirstApp, Thank you.</p>