title: How Pass String Value from One application to another application in android
body: <p><p>This is my app A and have a string value "Hello" . I want to send this string value to app B. 
   </p></p>
  
  <pre><code>String mystring = "Hello";
  Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.example.test");
  if (launchIntent != null) {
      launchIntent.putExtra("success", mystring);
      startActivity(launchIntent);
  }
  </code></pre>
  
  <p>This is my app B</p>
  
  <pre><code>Bundle b = getIntent().getExtras();
  if (b != null) {
      String myString = b.getString("success");
      Toast.makeText(MainActivity.this, "" + myString, Toast.LENGTH_SHORT).show();
  }
  </code></pre>
  
  <p>On the receiving "app B" <code>myString</code> is received as <code>null</code>.</p>