如何从android在linkedin上共享图像

如何从android在linkedin上共享图像,android,linkedin,Android,Linkedin,我已经成功集成了文本中的链接共享,现在我想用文本共享图像,图像可能来自SD卡或图像URL。我如何才能做到这一点,请提供一些解决方案 这里是我如何分享文本中的链接 share.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { String share = et.getText().toString(); if (null != shar

我已经成功集成了文本中的链接共享,现在我想用文本共享图像,图像可能来自SD卡或图像URL。我如何才能做到这一点,请提供一些解决方案

这里是我如何分享文本中的链接

share.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View v) {
        String share = et.getText().toString();
        if (null != share && !share.equalsIgnoreCase("")) {

            OAuthConsumer consumer = new CommonsHttpOAuthConsumer(Config.LINKEDIN_CONSUMER_KEY, Config.LINKEDIN_CONSUMER_SECRET);
            consumer.setTokenWithSecret(accessToken.getToken(), accessToken.getTokenSecret());

            DefaultHttpClient httpclient = new DefaultHttpClient();
            HttpPost post = new HttpPost("https://api.linkedin.com/v1/people/~/shares");
            try {
                consumer.sign(post);
            } catch (OAuthMessageSignerException e) {
                e.printStackTrace();
            } catch (OAuthExpectationFailedException e) {
                e.printStackTrace();
            } catch (OAuthCommunicationException e) {
                e.printStackTrace();
            } // here need the consumer for sign in for post the share
            post.setHeader("content-type", "text/XML");
            String myEntity = "<share><comment>"+ share +"</comment><visibility><code>anyone</code></visibility></share>";
            try {
                post.setEntity(new StringEntity(myEntity));
                org.apache.http.HttpResponse response = httpclient.execute(post);
                Toast.makeText(LinkedInSampleActivity.this,
                        "Shared sucessfully", Toast.LENGTH_SHORT).show();
            } catch (UnsupportedEncodingException e) {
                e.printStackTrace();
            } catch (ClientProtocolException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }else {
            Toast.makeText(LinkedInSampleActivity.this,
                    "Please enter the text to share",
                    Toast.LENGTH_SHORT).show();
        }
    }
});
}


目前Linkedin不允许发布图像。而不是图像后链接

您好,谢谢您的回复,这意味着我们无法在LInkedIn上共享图片?是的,请您投票支持我的回答。??还有一个疑问,我们能否回复邮件?您可以提供一些示例,我想回复特定的邮件,像推特回复我不知道你想要什么。你想在linkedin上发布消息吗?不,我已经在linkedin上发布了一些消息,现在我想为该消息键入回复。有可能吗
currently socialauth has not provided any facility for posting image on linkedin.