Hello Devs,
Please can you look at the below mail. I am constantly getting
contact.save()(already existing contact) method test failure.
If I apply the patch as mentioned in JIRA
https://issues.apache.org/jira/browse/CB-5308 pickContacts API fails.
But without the patch conact.save()(already existing contact) method always
fails.
I observed that the query to retrieve the contact which already exists
RAWCONTACTS_ID is used
This is implemented in onActivityResult() in ContactManager.java
if (requestCode == CONTACT_PICKER_RESULT) {
if (resultCode == Activity.RESULT_OK) {
String contactId = intent.getData().getLastPathSegment();
// to populate contact data we require Raw Contact ID
// so we do look up for contact raw id first
Cursor c =
this.cordova.getActivity().getContentResolver().query(RawContacts.CONTENT_URI,
new String[] {RawContacts._ID},
RawContacts.CONTACT_ID + " = " + contactId, null, null);
The patch suggested in https://issues.apache.org/jira/browse/CB-5308 also
suggests the same.
Can you please suggest if the patch is valid or not and if the JIRA will be
taken up to resolve?
Thanks and Regards
Pavan Joshi
-----Original Message-----
From: Joshi, Pavankumar [mailto:[email protected]]
Sent: Monday, 27 October 2014 1:51 PM
To: [email protected]
Subject: FW: mobilespec 3.6.3 contact test case failing and JIRA raised
Hello Devs
Can you please look into the issue and let us know what is the solution for the
problem mentioned.
Thanks and Regards
Pavan Joshi
-----Original Message-----
From: Joshi, Pavankumar [mailto:[email protected]]
Sent: Thursday, 16 October 2014 10:07 AM
To: [email protected]
Subject: mobilespec 3.6.3 contact test case failing and JIRA raised
Hello devs,
Currently I am testing mobilespec 3.6.3 on Android 4.4.3 device and found that
a test casecontacts.spec.21 fails. When I looked into the issue there was a JIRA
https://issues.apache.org/jira/browse/CB-5308 raised for the similar issue.
When I incorporated the changes suggested by Toda Shingo in the JIRA the test
case is working fine.
The error Is Contact.save() call failure callback even if contact data is
successfully saved on device. The JIRA is unassigned and unresolved.
Please can you have a look at the JIRA and let us know if there is a problem
with contacts plugin.
Regards
Pavan Joshi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]