title: share intent via facebook for android jelly bean
body: <p>I want to share some image and text via Facebook from android jelly bean. it work's in all devices except android jelly bean. Anybody please help me how to resolve this issue.</p>
  
  <h2><strong>my code</strong></h2>
  
  <pre><code>  Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
          shareIntent.setType("text/plain");
          shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Content to share");
          PackageManager pm = v.getContext().getPackageManager();
          List&lt;ResolveInfo&gt; activityList = pm.queryIntentActivities(shareIntent, 0);
          for (final ResolveInfo app : activityList) {
              if ((app.activityInfo.name).contains("facebook")) {
                  final ActivityInfo activity = app.activityInfo;
                  final ComponentName name = new ComponentName(activity.applicationInfo.packageName, activity.name);
  
                  System.out.println("package name"+name);
                  shareIntent.addCategory(Intent.CATEGORY_LAUNCHER);
                  shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
                  shareIntent.setComponent(name);
                  v.getContext().startActivity(shareIntent);
                  break;
  </code></pre>
  
  <p>in this code i want to intent some text. But EXTRA_TEXT is not working.How to pass string or image in this EXTRA_TEXT.</p>