Specify the owner information on a BlackBerry device

To specify the owner name and owner information on a BlackBerry® device, you can use the setDeviceOwnerInfo() method.
Before you begin: Retrieve the following variables:
  • deviceID integer for the ID of the BlackBerry device you want to specify the owner information for
  • displayName string for the owner of the BlackBerry device
  • displayInfo string for any additional information you want to display on the BlackBerry device
  1. Invoke setDeviceOwnerInfo().
    SetDeviceOwnerInfoResult setDeviceOwnerInfoResult=coreWebService.setDeviceOwnerInfo(deviceId, displayName, displayInfo);
  2. Check the result for errors and handle any errors.
    if (setDeviceOwnerInfoResult.getSetDeviceOwnerInfoReturnStatus().getCode() != SetDeviceOwnerInfoReturnStatusEnumType.SUCCESS) 
       // handle any errors

Was this information helpful? Send us your comments.