tags:

views:

358

answers:

1

I know this is a simple one, but I'm not sure the name of the framework item that will help me. (I know Google could solve this one but my keyworks fail me)

I'm trying to gather some of the BlackBerry owner's details (phone number, first/last name, edit: email address) to autofill a "Create new account" screen.

I'm using DeviceInfo to return the DeviceId, but unsure how to retrieve owner contact details.

A: 

To get the phone number:

String phoneNum = net.rim.blackberry.api.phone.Phone.getDevicePhoneNumber(false);

To get the Owner's name:

String owner = net.rim.device.api.system.OwnerInfo.getOwnerName();
Michael Gaffney