本文整理汇总了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);
}
}
}
示例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();
}
});
}
示例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);
}