Previous time to the previous app added share function, share some experience with you.
There are three ways to share features:
1. Call the Android to bring the sharing interface, this is the simplest way, it is directly call the app's hair information function, the link is sent through the information way, so it is less effective sharing. It can only be sent to social apps that are already installed on your phone. The pit is that some apps are shielded from this feature, such as a circle of friends. Code is very simple, a search on the internet, I will not repeat.
2. Through the third-party SDK to share, domestic more commonly used to have friends and Mo. First of all to apply for development, and then download the SDK to call the corresponding interface on the line, the disadvantage is to support some apps (most of the domestic can), some apps need to go to the corresponding official website to apply for developer account.
3. Determine the app you want to share, then go to the appropriate website to apply for the developer account, download the appropriate SDK and then call the interface sharing, this way is best, but the development cycle is long.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
A little summary of the Android share feature