title: Share text to Linkedin using Intent
body: <p>I am trying to share a text in LinkedIn using the Intent,and i searched a lot and used many codes,but not working..I saw many discussions also but cant find a proper answer for that.</p>
  
  <p>How can i open the LinkedIn to share something through a button click.
  I already used the following codes,</p>
  
  <pre><code>    if(Utils.doesPackageExist(getSherlockActivity(), "com.linkedin.android"))
  {           
      Intent shareIntent = new Intent(Intent.ACTION_SEND);
      shareIntent.setClassName("com.linkedin.android",
              "com.linkedin.android.home.UpdateStatusActivity"); 
      shareIntent.setType("text/*");
      shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareText);           
      startActivity(shareIntent);
  }
  else
  {
      Toast.makeText(getSherlockActivity(), "Please install the LinkedIn app to share your result", Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>then</p>
  
  <pre><code>Intent shareIntent = new Intent(Intent.ACTION_SEND);
  shareIntent.setClassName("com.linkedin.android",
          "com.linkedin.android.infra.deeplink.DeepLinkHelperActivity"); 
  shareIntent.setType("text/*");
  shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareText);           
  startActivity(shareIntent);
  </code></pre>
  
  <p>and some more,but not working.</p>
  
  <p>Thanks in advance.</p>