/** 收藏微博 */ private void favWeibo() { if (OAuthInfoManager.getInstance().isLogin(WeiboDetail.this)) { try { Sina.getInstance().getWeibo().createFavorite(Long.parseLong(mStatus.getId())); WeiboToast.show(this, "加入收藏"); } catch (WeiboException e) { e.printStackTrace(); WeiboToast.show(this, "收藏失败"); } } }
/** xujun 20121117: weibo delete */ private void delWeibo() { try { Sina.getInstance().getWeibo().destroyStatus(mStatus.getId()); Intent i = new Intent(); i.putExtra(DELFLAG, true); setResult(RESULT_OK, i); finish(); WeiboToast.show( getApplicationContext(), WeiboDetail.this.getString(R.string.weibo_del_success)); } catch (WeiboException e) { Log(e.getMessage()); WeiboToast.show(getApplicationContext(), WeiboDetail.this.getString(R.string.weibo_del_fail)); } }