title: Android: Is there a way around SuperNotCalledException?
body: <p>I'm trying to override a class derived from Activity (called NativeActivity) so I can set my own content view created in Java while leaving the rest of its functionality in tact.  I must use NativeActivity, because it is the only way to get touchpad input on Xperia Play.  The method I need to override is the NativeActivity.onCreate() method, because that is where the content view that I don't want is being set.  The problem is, if I don't call super.onCreate() in my overridden onCreate() method, a SuperNotCalledException gets thrown.  This is coming from the Activity class.  But all the Activity.onCreate() method does is set a boolean:</p>
  
  <pre><code>        protected void onCreate(Bundle savedInstanceState) {
              mVisibleFromClient = !mWindow
                      .getWindowStyle()
                      .getBoolean(
                              com.android.internal.R.styleable.Window_windowNoDisplay,
                              false);
              mCalled = true;
          }
  </code></pre>
  
  <p>I can do that check in my own code, using the Activity.getWindow() method.  Unfortunately, the mCalled boolean is private, so I can't just set it to true in my own code.  I can't seem to figure out how to get around this requirement.  Any ideas?</p>