當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。