Updated code to 4.0 API syntax in "Device information and abilities"