Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF Mobile: creating contact on device only after user selects ALLOW button

TreeStrepek-JavaNetJun 23 2014 — edited Jul 1 2014

My app allows users to quickly and easily add contacts on their IOS phone.  I need help capturing the "DON'T ALLOW" button click.

Background:

When adding a contact on the users device phoneGap prompts the user "Allow theApp to Access Contacts?".  After this alert is shown the user must select either "Allow" or "Don't Allow".  Of course if the user selects "Allow" my code runs perfectly.

However, if the user selects "Don't Allow" I am not able to capture that selection and process accordingly. 

Here's the line of code that processes the newContact for that app user.

Contact newContact = device.createContact(contact);

     where "contact" has been preset with user data;

Would you offer your expert opinion on how to proceed please?

Many Thanks!

Tree Strepek

This post has been answered by dvohra21 on Jun 24 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2014
Added on Jun 23 2014
9 comments
3,298 views