分享光环(普通分享和热点网页分享)

This commit is contained in:
khy
2017-02-07 17:06:32 +08:00
parent 30bb750d94
commit 575ba33e43
27 changed files with 1790 additions and 72 deletions

View File

@ -43,6 +43,7 @@ public class WeiBoShareActivity extends Activity implements IWeiboHandler.Respon
private String shareNewsTitle; // shareNewsTitle不为空就是新闻分享否则是游戏分享
private boolean isPlugin;
private boolean ispopupWindow;
private IWeiboShareAPI mWeiboShareAPI;
@ -55,6 +56,7 @@ public class WeiBoShareActivity extends Activity implements IWeiboHandler.Respon
shareIcon = extras.getString("shareIcon");
shareNewsTitle = extras.getString("shareNewsTitle");
isPlugin = extras.getBoolean("isPlugin");
ispopupWindow = extras.getBoolean("ispopupWindow");
Utils.toast(this, "分享跳转中...");
@ -97,14 +99,18 @@ public class WeiBoShareActivity extends Activity implements IWeiboHandler.Respon
Bitmap bgBitmap = ShareUtils.getInstance(getApplication()).addBackGround(bitmap);
TextObject textObject = new TextObject();
if (shareNewsTitle != null){
textObject.text = shareNewsTitle + "@光环助手";
}else {
if (isPlugin){
textObject.text ="向你推荐:" + shareGameName + "(光环加速版)" + " @光环助手 ";
if (ispopupWindow) {
if (shareNewsTitle != null){
textObject.text = shareNewsTitle + "@光环助手";
}else {
textObject.text ="向你推荐:" + shareGameName + " @光环助手 " ;
if (isPlugin){
textObject.text ="向你推荐:" + shareGameName + "(光环加速版)" + " @光环助手 ";
}else {
textObject.text ="向你推荐:" + shareGameName + " @光环助手 " ;
}
}
} else {
textObject.text = "这个App可以下载各种热门卡牌手游的加速版绿色安全超级省心做日常效率提高3-5倍不用肝的感觉真好 @光环助手";
}
ImageObject imageObject = new ImageObject();