findViewByID(R.layout.skeleton_activity) returns null
<p>I am trying to register a context menu in a skeleton app's OnCreate():</p>

<pre><code>/** 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));
}
</code></pre>

<p>The debugger tells me that findViewById(R.layout.skeleton_activity) returns null.</p>

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

<p>My questions:</p>

<ol>
<li>Can registerForContextMenu() wait
until onFinishInflate()?</li>
<li>If so, how do I do so?</li>
</ol>
