Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
sanditech
Posts: 11
Registered: ‎03-05-2013
My Device: bold

How to invoke contactbook for contact editing?

I wanted to invoke contactbook, for editing contact.
I refered following document

 

http://docs.blackberry.com/en/developers/deliverables/11935/Open_contact_using_organizer_data_565494...


Based on this I wrote following line of code

Invoke.invokeApplication(Invoke.APP_TYPE_ADDRESSBOOK, new AddressBookArguments(AddressBookArguments.ARG_VIEW,cn));

 

where cn is contact object (confirmed to be not null), however this doesnt work at expected. When execution reaches at that line then I get 

 

"DTMFEcho thread exit" in my logs and code does nothing. This dont get any exception as well, also UI is responsive.

 


For testing I replaced ARG_VIEW with ARG_COMPOSE and I get UI for adding new contact.
But I dont get UI for editing this contact? What could be wrong here? How can I debug this issue?
Any pointers would be helpful.

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to invoke contactbook for contact editing?

i think edit is not available
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
sanditech
Posts: 11
Registered: ‎03-05-2013
My Device: bold

Re: How to invoke contactbook for contact editing?

It would be fine if I could open contact at least.
I guess ARG_VIEW is for viewing purpose only.

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to invoke contactbook for contact editing?

if you have a contact object you could supply your own UI for editing it. Maybe you are not interested in all fields and can keep it simple.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter