I am trying to register a context menu in a skeleton app's OnCreate():

```
/** Called with the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Inflate our UI from its XML layout description.
    setContentView(R.layout.skeleton_activity);

    View v = findViewById(R.layout.skeleton_activity);
    registerForContextMenu(v);      

    // Find the text editor view inside the layout, because we
    // want to do various programmatic things with it.
    mEditor = (EditText) findViewById(R.id.editor);

    // Hook up button presses to the appropriate event handler.
    ((Button) findViewById(R.id.back)).setOnClickListener(mBackListener);
    ((Button) findViewById(R.id.clear)).setOnClickListener(mClearListener);

    mEditor.setText(getText(R.string.main_label));
}

```

The debugger tells me that findViewById(R.layout.skeleton\_activity) returns null.

@CommonsWare solution to a [similar post](https://stackoverflow.com/questions/3264610/findviewbyid-returns-null) is to Wait until onFinishInflate(). However, in the [sample project](https://github.com/commonsguy/cw-advandroid/blob/master/Animation/SlidingPanel/src/com/commonsware/android/anim/SlidingPanelDemo.java) he provides, it doesn't seem that he waits until onFinishInflate.

My questions:

1. Can registerForContextMenu() wait
until onFinishInflate()?
2. If so, how do I do so?