第三方登录分享
1.导入黄油刀依赖
初始化控件
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/btn_notshare"
android:text="不带面板的分享"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/btn_share"
android:text="带面板的分享"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/btn_shareThread"
android:text="第三方分享"/>
<ImageView
android:layout_width="200dp"
android:layout_height="200dp"
android:src="@mipmap/ic_launcher_round"
android:id="@+id/image_icon"/>
2.下载社会化分享SDK
3.在清代文件中粘贴 粘贴完后会报错 需要导包
4.导包
5.添加权限
6.在Activity中复制权限配置
Android6.0权限配置
7.在Appliction的实例化类中 复制平台秘钥
8.复制分享 不带面板和带面板
9.设置回调监听
10.添加图片对象
11.第三方登录
创建友盟分享的封装对象
12.接口回调