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


Java StringUtil.get32UUID方法代码示例

本文整理汇总了Java中com.netease.nim.uikit.common.util.string.StringUtil.get32UUID方法的典型用法代码示例。如果您正苦于以下问题:Java StringUtil.get32UUID方法的具体用法?Java StringUtil.get32UUID怎么用?Java StringUtil.get32UUID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.netease.nim.uikit.common.util.string.StringUtil的用法示例。


在下文中一共展示了StringUtil.get32UUID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onPreviewImageActivityResult

import com.netease.nim.uikit.common.util.string.StringUtil; //导入方法依赖的package包/类
/**
 * 拍摄回调
 */
private void onPreviewImageActivityResult(int requestCode, Intent data) {
    if (data.getBooleanExtra(PreviewImageFromCameraActivity.RESULT_SEND, false)) {
        sendImageAfterPreviewPhotoActivityResult(data);
    } else if (data.getBooleanExtra(PreviewImageFromCameraActivity.RESULT_RETAKE, false)) {
        String filename = StringUtil.get32UUID() + JPG;
        String path = StorageUtil.getWritePath(filename, StorageType.TYPE_TEMP);

        if (requestCode == RequestCode.PREVIEW_IMAGE_FROM_CAMERA) {
            PickImageActivity.start(getActivity(), makeRequestCode(RequestCode.PICK_IMAGE), PickImageActivity.FROM_CAMERA, path);
        }
    }
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:16,代码来源:PickImageAction.java

示例2: onSelectedAccountsResult

import com.netease.nim.uikit.common.util.string.StringUtil; //导入方法依赖的package包/类
public void onSelectedAccountsResult(final ArrayList<String> accounts) {
    LogUtil.ui("start teamVideo " + getAccount() + " accounts = " + accounts);

    if (!checkTransactionValid()) {
        return;
    }

    final String roomName = StringUtil.get32UUID();
    LogUtil.ui("create room " + roomName);
    // 创建房间
    boolean webRTCCompat = PreferenceManager.getDefaultSharedPreferences(getActivity()).getBoolean(getActivity().getString(R.string.nrtc_setting_other_webrtc_compat_key), true);
    AVChatManager.getInstance().createRoom(roomName, null, webRTCCompat, new AVChatCallback<AVChatChannelInfo>() {
        @Override
        public void onSuccess(AVChatChannelInfo avChatChannelInfo) {
            LogUtil.ui("create room " + roomName + " success !");
            if (!checkTransactionValid()) {
                return;
            }
            onCreateRoomSuccess(roomName, accounts);
            transaction.setRoomName(roomName);

            String teamName = TeamDataCache.getInstance().getTeamName(transaction.getTeamID());

            TeamAVChatHelper.sharedInstance().setTeamAVChatting(true);
            TeamAVChatActivity.startActivity(getActivity(), false, transaction.getTeamID(), roomName, accounts, teamName);
            transaction = null;
        }

        @Override
        public void onFailed(int code) {
            if (!checkTransactionValid()) {
                return;
            }
            onCreateRoomFail();
        }

        @Override
        public void onException(Throwable exception) {
            if (!checkTransactionValid()) {
                return;
            }
            onCreateRoomFail();
        }
    });
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:46,代码来源:TeamAVChatAction.java

示例3: tempFile

import com.netease.nim.uikit.common.util.string.StringUtil; //导入方法依赖的package包/类
private String tempFile() {
    String filename = StringUtil.get32UUID() + JPG;
    return StorageUtil.getWritePath(filename, StorageType.TYPE_TEMP);
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:5,代码来源:PickImageAction.java


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