title: Passing values through bundle and get its value on another activity
body: <p>I am passing value through Bundle as you can see in my code.
  <br>
  Now, I want its value in another activity <code>onCreate()</code>. I tried it to get its value but it is showing nullpointerexception.
  <br>
  <br>
  Please help me solve the problem.</p>
  
  <pre><code>Bundle bundle = new Bundle();
  String url = "http://www.google.com";
  bundle.putString("url", url);
  Intent myIntent = new Intent(context, NotificationService.class);
  myIntent.putExtras(bundle);
  context.startService(myIntent);
  </code></pre>
  
  <p><br>
  <strong>Get Value code :</strong></p>
  
  <pre><code>if (!getIntent().getExtras().getString("url").contains(null)) {
          // Do something
  }
  </code></pre>