title: Android ContextMenu starts in the onCreate method?
body: <p>is it possible to start a context menu on the onCreate method? I know its probably bad design ethics but I have my resons!! I've tried the: </p>
  
  <pre><code>registerForContextMenu(this.getCurrentFocus());
  </code></pre>
  
  <p>But its not working.. So does anyone have any better ideas? </p>
  
  <p>Many thanks in advance! </p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      LinearLayout layout = new LinearLayout(this);
      layout.setLayoutParams(new
      LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
  
      //Button button = new Button(this);
      //button.setLayoutParams(new
      //LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
      //button.setText("my button");
  
      TextView text = new TextView(this);
      text.setLayoutParams(new
      LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
  
      layout.addView(text);
      setContentView(layout);
  
      registerForContextMenu(text);
      openContextMenu(layout);
  </code></pre>