Code example for UUID

Methods: toString

0
	    final String tmDevice, tmSerial, androidId;
	    tmDevice = "" + tm.getDeviceId();
	    tmSerial = "" + tm.getSimSerialNumber();
	    androidId = "" + android.provider.Settings.Secure.getString(c.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
 
	    UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode());
	    String deviceId = deviceUuid.toString();
	     
	     CrossSafe_Mantenimiento.android_id = deviceId;
	     Log.d("IKER", "DeviceID: " + deviceId);
		 
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE