本文整理匯總了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);
}