Image is not posted to twitter in android
<p>I used the below code to post image to twitter,</p>

<p>I am using twitter4j-core-2.2.5 jar file in my application, I really cant understand why it is not posting image to twitter.</p>

<p>IS it possible to post image to twitter?</p>

<pre><code>File f = new File("/mnt/sdcard/13615320329.jpg");

 mTwitter.uploadPic(f, String.valueOf(Html
                 .fromHtml(TwitterApp.MESSAGE)));


public void uploadPic(File file, String message)
            throws Exception {
        try {
            StatusUpdate status = new StatusUpdate(message);
            status.setMedia(file);
            mTwitter.updateStatus(status);
        } catch (TwitterException e) {
            Log.d("TAG", "Pic Upload error" + e.getExceptionCode());
            throw e;
        }
    }   
</code></pre>

<p>But it is posting only the message,is there anything wrong with Twitter api or did I need to change anything</p>

<p>please answer
Thanks      </p>
