Code example for UUID

Methods: toString

0
		String tmDevice, tmSerial, androidId;
		tmDevice = "" + tm.getDeviceId();
		tmSerial = "" + tm.getSimSerialNumber();
		androidId = "" + android.provider.Settings.Secure.getString(context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
 
		UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode());
		deviceId = "ANDROID"+deviceUuid.toString();
		tm = null;
		 
	} 
 
	public String getDeviceId(){
		return deviceId;
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE