title: Android : can i attach picture when i tweet via native Twitter app
body: <p>This is my code </p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_SEND);
  intent.setClassName("com.twitter.android", "com.twitter.android.PostActivity");
  intent.putExtra(Intent.EXTRA_TEXT, message);
  startActivity(intent);
  </code></pre>
  
  <p>can i attach picture programmatically?</p>
  
  <p><img src="https://i.stack.imgur.com/s3CZ0.png" alt="enter image description here"></p>
  
  <p><strong><em>EDIT</em></strong></p>
  
  <p><strong>SOLUTION</strong></p>
  
  <p>1 more line additional</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_SEND);
  intent.setClassName("com.twitter.android", "com.twitter.android.PostActivity");
  intent.putExtra(Intent.EXTRA_TEXT, message);
  intent.putExtra(Intent.EXTRA_STREAM, Uri);      
  startActivity(intent);
  </code></pre>