title: Launching another Activity creates a blank screen and crashes
body: <blockquote>
    <p>Update: Fixed, this was due to missing properties in views and my not knowing how to work the debugger :)</p>
  </blockquote>
  
  <p>I'm really new to Android. I've just finished the Notepad tutorial and am making something similar (most of the code is exactly the same). The sequence of events I'm going through:</p>
  
  <ol>
  <li>Debug app</li>
  <li>Click Menu, which has the correct items</li>
  <li>Click Insert, which opens a new Activity (GoalEdit)</li>
  <li>I hit a breakpoint on the first line of <code>GoalEdit.onCreate</code> and get these warnings:<br>
  a. (ActivityManager) Launch timeout has expired, giving up wake lock!<br>
  b. (ActivityManager) Activity idle timeout for HistoryRecord{...}</li>
  <li>I have a breakpoint at <code>setContentView</code> in <code>GoalEdit.onCreate</code> - after this is passed:<br>
  a. ActivityThread.perfo: Source not found.</li>
  </ol>
  
  <p>The relevant code is below:</p>
  
  <p><strong>GoalsList.java</strong></p>
  
  <pre><code>/**
   * Add a menu to this activity
   */
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      super.onCreateOptionsMenu(menu);
  
      menu.add(0, INSERT_ID, 0, R.string.menu_insert);
      return true;
  }
  
  /**
   * Catch the menuItemSelected event
   */
  @Override
  public boolean onMenuItemSelected(int featureId, MenuItem item) {
      switch (item.getItemId()) {
      case INSERT_ID:
          createGoal();
          return true;
      }
  
      return super.onMenuItemSelected(featureId, item);
  }
  
  /**
   * Open the Edit activity to create a new goal
   */
  private void createGoal() {
      Intent i = new Intent(this, GoalEdit.class);
      startActivityForResult(i, ACTIVITY_CREATE);
  }
  </code></pre>
  
  <p><strong>GoalEdit.java</strong></p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      mDbGoals = new GoalDbTable(this);
      mDbGoals.open();
  
      setContentView(R.layout.goal_edit);
  
      mName = (EditText) findViewById(R.id.name);
      Button finishBtn = (Button) findViewById(R.id.finish);
  
      mRowId = (savedInstanceState == null) ? null :
          (Long) savedInstanceState.getSerializable(GoalDbTable.KEY_ROWID);
      if (mRowId == null) {
          Bundle extras  = getIntent().getExtras();
          mRowId = (extras != null) ? extras.getLong(GoalDbTable.KEY_ROWID)
                                    : null;
      }
  
      populateFields();
  
      finishBtn.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              setResult(RESULT_OK);
              finish();
          }
      });
  }
  
  private void populateFields() {
      if (mRowId != null) {
          Cursor goal = mDbGoals.find(mRowId);
          startManagingCursor(goal);
  
          mName.setText(goal.getString(
                  goal.getColumnIndexOrThrow(GoalDbTable.KEY_NAME)));
      }
  }
  
  @Override
  protected void onResume() {
      super.onResume();
      populateFields();
  }
  </code></pre>
  
  <p>I feel like the error is that it can't find GoalEdit (although it obviously can). Are there any obvious fubar's in my code (or other things I should check)?</p>
  
  <p><strong>Edit:</strong> Figured out how to use the debugger a bit better, had to press resume a few more times to show an exception.</p>
  
  <p><strong>Exceptions</strong></p>
  
  <pre><code>ERROR/AndroidRuntime(741): 
    java.lang.RuntimeException: Unable to start activity 
    ComponentInfo{com.rossmasters.mygoals/com.rossmasters.mygoals.GoalEdit}: 
      java.lang.RuntimeException: 
        Binary XML file line #9: You must supply a layout_width attribute.
  </code></pre>
  
  <p>I'm not sure which file that is referring to however, I've added <code>layout_width's</code> to each item.</p>