title: Not stopping loop with super.oncreate() and extending MainActivity
body: <p>I extend a "Login" class from the MainActivity.</p>
  
  <p>MainActivity looks like this:</p>
  
  <pre><code> public class MainActivity extends FragmentActivity {
  /** Called when the activity is first created. */
  private static String TAG = "MainActivity";
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      //setContentView(R.layout.main);
  
      Intent login_activity = new Intent(this, Login.class);
      startActivity(login_activity);
      Log.d(TAG,"Login created");
  }
  }
  </code></pre>
  
  <p>In the login.class I am just calling the layout:</p>
  
  <pre><code>public class Login extends MainActivity {
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      //super.onCreate(savedInstanceState);
      setContentView(R.layout.login);
       }
  }
  </code></pre>
  
  <p>You can see, that I commented out the "super.oncreate" in the login class. It doesn't make sense to call the MainActivitys oncreate here again. But whith this outcommented super.oncreate I'll get some Exception:</p>
  
  <pre><code>12-31 11:37:47.688: E/AndroidRuntime(4206): FATAL EXCEPTION: main
  12-31 11:37:47.688: E/AndroidRuntime(4206): android.app.SuperNotCalledException: Activity {de.svennergr.htn/de.svennergr.htn.Login} did not call through to super.onCreate()
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2146)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at android.os.Handler.dispatchMessage(Handler.java:99)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at android.os.Looper.loop(Looper.java:137)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at android.app.ActivityThread.main(ActivityThread.java:5039)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at java.lang.reflect.Method.invokeNative(Native Method)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at java.lang.reflect.Method.invoke(Method.java:511)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
  12-31 11:37:47.688: E/AndroidRuntime(4206):     at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>When I do not comment super.oncreate, I'll get an not stopping loop creating lots of "Login" objects/activities.</p>
  
  <p>How do I solve this?</p>