To sum up shareSDK, please note that sharesdk should be shared with various platforms.

Source: Internet
Author: User

To sum up shareSDK, please note that sharesdk should be shared with various platforms.
Note the following when sharing shareSDK with various platforms:

1.apk: whether the signature file is consistent with the key generated by using the signature tool on the platform

2. You can use the OnekeyShare class to set the content attributes for one-click Sharing.

3. to modify the shareSDK shared content interface, go to the EditPage. java class.

4. If you want to disable a platform in the shared items section, Enable = "false" is set in the shareSDK. xml file"

Note: if it is set to false, it indicates that the platform is removed from shareSDK, that is, it is unavailable. If you only need to disable the icon, you can configure the OnekeyShare parameter, use the addHiddenPlatform attribute of the object to hide the platform, such as oks. addHiddenPlatform (WechatMoments. NAME );


5. There are many differences between the old and new versions of shareSDK, such as 2.3.1 <----> 2.5.2

In 2.3.1, normal authorization may cause errors, but in 2.5.2 it may be caused by upgrades and shareSDK upgrades.


6. in shareSDK. set BypassApproval = "true" in xml, that is, BypassApproval is the flag that bypasses the review. If it is set to true, AppId will be ignored. Therefore, apps that do not pass the review can also perform sharing, however, only text and images can be shared. Other types cannot be shared. The default value is false. This field is not supported by favorites.

Note: If this attribute is set to true when shared to a circle of friends, the client is called. You must return the property before entering your application.

If this attribute is set to false, the client is not called and the circle of friends interface is displayed as a dialog.


7. For more information about callback parameters, see the shareSDK api documentation.

Http://www.mob.com/androidDoc? ADUIN = 798768844 & ADSESSION = 1417569700 & ADTAG = CLIENT. QQ.5353 _. 0 & ADPUBNO = 26381


8. For most of the FAQs, see the link:

Http://wiki.mob.com/android_%E5%B8%B8%E8%A7%81%E9%97% AE %E9%A2%98/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.