Itay Chen
Itay Chen

Reputation: 55

Open and pick a contact from a device contact app

I am building an invitation form in which the user can fill an email or use a button that will open a contact app in his device and will get the email of a chosen contact(if email exists). I wonder if this kind of button is possible to achieve in Codename One without listing all the user's contacts in my app.

Thanks!

Itay

Upvotes: 1

Views: 59

Answers (1)

Ivan Pronin
Ivan Pronin

Reputation: 1906

According to the official API, you may only use id to retrieve a certain contact using method getContactById(String id).

So, the answer is "No", you cannot get the contact by its email since you don't know the mapping id <> email

Upvotes: 1

Related Questions