Simple method of adding wechat sharing to Android Applications

1、 Apply for your appid http://open.weixin.qq.com/

Friendly tip: it is recommended to use the MD5 value of the last step of eclipse packaging software to apply for appid

2、 Download the libammsdk.jar package from the official website http://open.weixin.qq.com/download/?lang=zh_ CN

3、 Copy libammsdk.jar to the LIBS directory of the project

4、 Write code in the activity to be shared

5、 Create a new wxapi directory under the corresponding directory of your package name, and add a wxentryactivity class under the wxapi directory. This class inherits from the activity and implements the iwxapieventhandler interface

6、 Configuration manifest file androidmanifest.xml

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
分享
二维码
< <上一篇
下一篇>>