title: Creating new blank activity using Android Studio
body: <p>I'm a new hand learning Android using Android Studio. While I follow the official tutorial <a href="http://developer.android.com/intl/zh-tw/training/basics/firstapp/starting-activity.html#CreateActivity" rel="nofollow">Getting Started</a> provided by Google, I encountered a problem: When I trying to create a new blank activity, the default code in <code>DisplayMessageActivity()</code> is different from the sample. To be specific, there's just function <code>onCreate()</code>, but no <code>OptionsItemSelected()</code> and <code>class PlaceholderFragment</code> there.</p>
  
  <p>I've tried to copy the code list below from the <a href="http://developer.android.com/intl/zh-tw/training/basics/firstapp/starting-activity.html#CreateActivity" rel="nofollow">Getting Started</a>, </p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  // Get the message from the intent
  
  Intent intent = getIntent();
  String message = intent.getStringExtra(MyActivity.EXTRA_MESSAGE);
  
  // Create the text view
  TextView textView = new TextView(this);
  textView.setTextSize(40);
  textView.setText(message);
  
  // Set the text view as the activity layout
  setContentView(textView);
  }
  </code></pre>
  
  <p>however I still can't get the same activity (layout) of second activity: <code>DisplayMessageActivity</code>. 
  There's just text but no top bar (consist of App's name, return button, etc.).</p>
  
  <p>M.-J. Chiou    </p>