title: A way to get image from A Tweet
body: <p>I am trying to extract image(media_url) from a tweet.
  The problem is: the only thing I have is the tweet which I get(from the share intent) when you want to share a tweet in Android Application.
  I don't see an API in which we invoke tweet and that returns us the image URL.
  Is there a way to fetch the image url from the tweet shared via Share button from Twitter Application?</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
  
        Intent intent = getIntent();
          String action = intent.getAction();
          String type = intent.getType();
  
          if (Intent.ACTION_SEND.equals(action) &amp;&amp; type != null) {    
              Bundle bundle = intent.getExtras();
              Set&lt;String&gt; keys = bundle.keySet();
              Log.v("SAURAV"," Size is ::" + keys.size()); 
              for (String string : keys) {
                  String image_url = intent.getStringExtra(string);
                  Log.v("SAURAV","image_url ::"+image_url);
              }
  
              if ("text/plain".equals(type)) {        
                  String sharedText = intent.getStringExtra(Intent.EXTRA_TEXT);
                  Toast.makeText(getApplicationContext(), ""+sharedText, Toast.LENGTH_LONG).show();
                  /*Log.d("Saurav","URL We get :"+image_url);*/
                  Log.d("Saurav","SharedText is:"+sharedText);
                  handleShare(intent);
  
              } else if (type.startsWith("image/")) {
                  Toast.makeText(getApplicationContext(), ""+type, Toast.LENGTH_LONG).show();
                              }
          }
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  </code></pre>