title: Passing current Intent as extra to another Activity
body: <p>I have a problem with my Login screen. When it's started, I check for network connection, and if it's disabled, I want to show NoNetworkActivity. And the same for every other screen: when Activity is launched, I check network connection and navigate to NoNetworkActivity is needed. When navigating, I want to save the Intent which launched this previous activity and finish it to disable the Back button redirection when on NoNetworkActivity. So, when connection is restored, I want to launch that intent and get actual state of the app before this error:</p>
  
  <p><strong>LoginActivity</strong></p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_login);
      if (!App.getInstance().isNetworkConnected()) {
          Intent noNetwork = new Intent(this, NoNetworkActivity.class);
          noNetwork.putExtra(NoNetworkActivity.EXTRA_FAILED_INTENT, getIntent());
          startActivity(noNetwork);
          finish();
      }
      ...
  </code></pre>
  
  <p><strong>NoNetworkActivity</strong></p>
  
  <pre><code>private void checkNetworkConnection() {
      mCheckButton.setVisibility(View.INVISIBLE);
      mProgressBar.setVisibility(View.VISIBLE);
      if (App.getInstance().isNetworkConnected()) {
          Intent failedIntent = getIntent().getParcelableExtra(EXTRA_FAILED_INTENT);
          startActivity(failedIntent);
          finish();
      } else {
          mCheckButton.setVisibility(View.VISIBLE);
          mProgressBar.setVisibility(View.INVISIBLE);
          App.toast("Connection failed");
      }
  }
  </code></pre>
  
  <p>And it's getting strange: startActivity(failedIntent) does NOTHING. I've tried to remove finish() from next line, and NoNetworkActivity just stays on top without anything happening.</p>
  
  <p>And one more thing. You can suggest passing Activity actual class names instead of intents, but I realy need Intent. That's because I'm using a lot of starting actions for every activity and a bunch of extras.</p>
  
  <p>Thanks in advance for any help. Cheers!</p>