title: What is the difference between getIntent() and getting intent from savedInstanceState?
body: <p>Hi all I'm trying out the android passing of intents between 2 classes and I've realized there are 2 methods to passing intents , </p>
  
  <p>The first is using getIntent method here:</p>
  
  <pre><code>Bundle extras = getIntent().getExtras();
  mRowId = (extras != null) ? extras.getLong(DrugsDbAdapter.KEY_ROWID) : null;
  </code></pre>
  
  <p>And the second method is accessing the savedInstanceState:</p>
  
  <pre><code>mRowId = (savedInstanceState != null) savedInstanceState.getLong(DrugsDbAdapter.KEY_ROWID) : null;
  </code></pre>
  
  <p>In both methods I'm trying to access the RowId which I can then use to fetchData. Whats the difference between both methods ? Which one is better ?</p>