On BlackBerry I want to display an "Add contact" dialog with some fields populated.
I supposed the following code would work:
PHP Code:
BlackBerryContact contact = (BlackBerryContact) mContactList.createContact();
populateSomeFields (contact);
AddressBookArguments args = new AddressBookArguments(
AddressBookArguments.ARG_NEW, contact);
Invoke.invokeApplication(Invoke.APP_TYPE_ADDRESSBOOK, args);
but no way.
If I Invoke with ARG_NEW a completely EMPTY fields are displayed. If I Invoke with ARG_COMPOSE an IllegalArgumentException is thrown.
Is there any way I can display "Add contact" with some fields filled in?