title: syntax error if I don't import android.R (and syntax error if I do)
body: <p>OK, I have a question I'm too confused to ask properly but here's a go:</p>
  
  <p>Somewhere in the android documentation it states:</p>
  
  <p><em>Note: Eclipse sometimes likes to add an "import android.R" statement at the top of your files that use resources, especially when you ask eclipse to sort or otherwise manage imports. This will cause your make to break. Look out for these erroneous import statements and delete them.</em></p>
  
  <p>I've noticed this behavior before.  The first time was a very bad experience because I couldn't understand what was going on.  Anyway since then whenever I notice import android.R; I just delete it.</p>
  
  <p>My most recent project used the latest SDK including the Master - Detail Activity wizard (that creates fragments).  I noticed in my ListFragment source file import android.R; and then deleted it which broke it because it apparently needs android.R to use the built in layout "simple_list_item_activated_1" (http://developer.android.com/reference/android/R.layout.html#simple_list_item_activated_1) in onCreate.</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setListAdapter(new ArrayAdapter&lt;DummyContent.DummyItem&gt;(getActivity(),
              R.layout.simple_list_item_activated_1,
              R.id.text1,
              DummyContent.ITEMS));
  }
  </code></pre>
  
  <p>So I add it back and it's fine.  The problem is with android.R included I can't see any of my defined XML stuff.  In my case I'm trying to use a menu I created in onCreateOptionsMenu.</p>
  
  <pre><code>@Override
  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
      super.onCreateOptionsMenu(menu, inflater);
      //MenuInflater inflater = getMenuInflater();
      inflater.inflate(R.menu.menu_checklist_list, menu);
      R.layout.
  }
  </code></pre>
  
  <p>So my problem is if I don't import android.R then onCreate is broke if I do import android.R then onCreateOptionsMenu is broke.  Damned if I do, damned if I don't.  <em>cries</em></p>
  
  <p>:'(</p>