Simple implementation of Android third-party sharing

At present, there are two ways for third-party sharing:

1., it is necessary to integrate the official SDK package. After obtaining the official authorization, call the API to complete the sharing of WeChat, micro-blog and so on. Advantages: seamless integration, multiple functions disadvantages: integrate the official SDK package for development, and you need to apply for official authorization 2 Directly call up the activities of wechat and microblog for sharing. Advantages: it is very simple and does not require SDK and official authorization. Disadvantages: wechat and microblog clients need to be installed locally

Here I'd like to introduce the second sharing method, which is used in app Bao and Android camera.

Typical codes are as follows:

If you want your activity to support this calling method, you can simply add

Just.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>