Use ShareSDK to share images,
To use ShareSDK for sharing, you must apply for an open platform account and use the declared application signature package.
Private void showShare (String url, String title, String picfile) {ShareSDK. initSDK (this); OnekeyShare oks = new OnekeyShare (); // disable sso authorization oks. disableSSOWhenAuthorize (); // The Notification icon and text during sharing // oks. setNotification (R. drawable. top_meitu_2, // getString (R. string. app_name); // title, Evernote, email, information, Renren and QQ space use oks. setTitle (title); // titleUrl is the network link of the title, and oks is only used in Renren's network and QQ space. setTitleUrl (url); // text is the shared text, which is required by all platforms. setText (title + url); // imagePath is the local path of the image. Platforms other than Linked-In support this parameter // oks. setImagePath (picfile); oks. setUrl (url); // The url only uses oks in (including friends and friends. setImageUrl (picfile); // comment is my comment on this article. It is only used in Renren and QQ space. // oks. setComment ("comment"); oks. setComment (title + url); // site is the name of the website that shares the content. oks is only used in the QQ space. setSite (getString (R. string. app_name); // siteUrl is the address of the website where the content is shared, and oks is only used in the QQ space. setSiteUrl (url); // start sharing GUIoks. show (this );}