title: Android tutorial "Create the second activity" doesn't work with Android Studio, or
body: <p>what am I doing wrong... ;-)</p>
  
  <p>In the tutorial, I'm supposed to "Create the second activity", the screenshot of the tutorial shows how to do it in Eclipse, but I'm using AS. Anyway, I've added a new blank activity from within Android Studio and the generated DisplayMessageActivity.java file looks identical with the one in the tutorial.</p>
  
  <p>Then the tutorial says to add the following code in the onCreate method:</p>
  
  <pre><code>if (savedInstanceState == null) {
          getSupportFragmentManager().beginTransaction()
                  .add(R.id.container, new PlaceholderFragment()).commit();
  }
  </code></pre>
  
  <p>Q1: here the word 'container' in R.id.container is marked in red in AS; that is, can not resolve symbol 'container'. The tutorial doesn't say anything about it and I haven't got a clue how to declare it. What is it?</p>
  
  <p>Further down in the DisplayMessageActivity I'm supposed to add:</p>
  
  <pre><code>public static class PlaceholderFragment extends Fragment {
      public PlaceholderFragment() {}
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          View rootView = inflater.inflate(R.layout.fragment_display_message, container, false);
          return rootView;
      }
  }
  </code></pre>
  
  <p>Q2: What on earth is R.layout.fragment_display_message? All I've got is R.layout.activity_display_message.</p>
  
  <p>Any advice is appreciated, thank you!</p>