本文整理汇总了Java中com.sina.weibo.sdk.utils.UIUtils类的典型用法代码示例。如果您正苦于以下问题:Java UIUtils类的具体用法?Java UIUtils怎么用?Java UIUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UIUtils类属于com.sina.weibo.sdk.utils包,在下文中一共展示了UIUtils类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: scanGarbageFile
import com.sina.weibo.sdk.utils.UIUtils; //导入依赖的package包/类
private void scanGarbageFile() {
if (this.mCleanService != null) {
LogInfo.log("wuxinrong", "执行扫描...");
performScan();
} else if (!bindTMSLiteService()) {
UIUtils.showToast((Context) this, getString(2131100938), 3000);
}
}
示例2: startDialog
import com.sina.weibo.sdk.utils.UIUtils; //导入依赖的package包/类
private void startDialog(WeiboAuthListener weiboauthlistener, int i)
{
if (weiboauthlistener == null)
{
return;
}
LinkedHashMap linkedhashmap = new LinkedHashMap();
linkedhashmap.put("client_id", mAuthInfo.mAppKey);
linkedhashmap.put("redirect_uri", mAuthInfo.mRedirectUrl);
linkedhashmap.put("scope", mAuthInfo.mScope);
linkedhashmap.put("response_type", "code");
linkedhashmap.put("display", "mobile");
if (1 == i)
{
linkedhashmap.put("packagename", mAuthInfo.mPackageName);
linkedhashmap.put("key_hash", mAuthInfo.mKeyHash);
}
String s = (new StringBuilder("https://open.weibo.cn/oauth2/authorize?")).append(Utility.packUrl(linkedhashmap)).toString();
if (!NetworkHelper.hasInternetPermission(mContext))
{
UIUtils.showAlert(mContext, "Error", "Application requires permission to access the Internet");
return;
}
if (NetworkHelper.isNetworkAvailable(mContext))
{
(new WeiboDialog(mContext, s, weiboauthlistener, this)).show();
return;
} else
{
String s1 = ResourceManager.getString(mContext, 2);
LogUtil.i("Weibo_web_login", (new StringBuilder("String: ")).append(s1).toString());
UIUtils.showToast(mContext, s1, 0);
return;
}
}
示例3: onWeiboException
import com.sina.weibo.sdk.utils.UIUtils; //导入依赖的package包/类
@Override
public void onWeiboException(WeiboException e) {
UIUtils.showToast(WBAuthCodeActivity.this,
"Auth exception : " + e.getMessage(), Toast.LENGTH_LONG);
}
示例4: onWeiboException
import com.sina.weibo.sdk.utils.UIUtils; //导入依赖的package包/类
@Override
public void onWeiboException(WeiboException e) {
UIUtils.showToast(WeiboOAuthActivity.this,
"Auth exception : " + e.getMessage(), Toast.LENGTH_LONG);
}
示例5: onWeiboException
import com.sina.weibo.sdk.utils.UIUtils; //导入依赖的package包/类
@Override
public void onWeiboException(WeiboException e) {
UIUtils.showToast(WBAuthCodeActivity.this,
"Auth exception : " + e.getMessage(), Toast.LENGTH_LONG);
}