title: Finish current activity and start another one after share intent
body: <p>I'm facing a problem in my Android application, I need to share text on twitter and finish the current activity and start a new one after share is done I tried startActivityForResult but it doesn't work any help please.</p>
  
  <pre><code>getActivity().getPackageManager().getPackageInfo("com.twitter.android", 0);
          Intent intent = new Intent(Intent.ACTION_SEND);
          intent.setClassName("com.twitter.android", "com.twitter.android.composer.ComposerActivity");
          intent.setType("text/plain");
          intent.putExtra(Intent.EXTRA_TEXT, url);
          intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
          startActivityForResult(intent,0);
  </code></pre>