当前位置: 首页>>代码示例>>Java>>正文


Java UIUtils类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:9,代码来源:GarbageCleanActivity.java

示例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;
    }
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:36,代码来源:WeiboAuth.java

示例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);
}
 
开发者ID:ligongzai,项目名称:QianXun,代码行数:6,代码来源:WBAuthCodeActivity.java

示例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);
}
 
开发者ID:WildDogTeam,项目名称:demo-android-login,代码行数:6,代码来源:WeiboOAuthActivity.java

示例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);
}
 
开发者ID:guangoon,项目名称:SinaWeiboDemo,代码行数:6,代码来源:WBAuthCodeActivity.java


注:本文中的com.sina.weibo.sdk.utils.UIUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。