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().
    setDeviceOwnerInfo request = new setDeviceOwnerInfo();
    request.deviceId = deviceID;
    request.displayName = displayName;
    request.displayInfo = displayInfo;
    setDeviceOwnerInfoResponse response = coreWebService.setDeviceOwnerInfo(request);
    setDeviceOwnerInfoResult result = response.returnValue;
  2. Check the result for errors and handle any errors.
    if (result.setDeviceOwnerInfoReturnStatus.code != SetDeviceOwnerInfoReturnStatusEnumType.SUCCESS) 
       // handle any errors

Was this information helpful? Send us your comments.