Add Contacts with Photos

117 views
Skip to first unread message

Cory

unread,
Nov 20, 2012, 5:01:53 PM11/20/12
to phon...@googlegroups.com
Hello,
I am on 2.0.0 ( Didnt upgrade because 2.2.0 is giving me more problems with contacts)
I work on android , IOS and blackberry  ,but for this issue Im testing on Android
Anyway , I have managed to save contacts , but I would now like to save photos.
I have the images in the page where you can save the contact , so i have the source/URL of the images.

However , when i try to save the contact I get errors saying the file cannot be found
I have tested it with google's logo and basically its the same with my image , just a different link.

11-20 16:54:37.770: E/ContactsAccessor(13432): /https:/www.google.com/images/srpr/logo3w.png: open failed: ENOENT (No such file or directory)
11-20 16:54:37.770: E/ContactsAccessor(13432): java.io.FileNotFoundException: /https:/www.google.com/images/srpr/logo3w.png: open failed: ENOENT (No such file or directory)

This is part of my code:

                        var photos = [];
                        var profilePic;
//profilePic=$("#pageProfile").find(".profileHeader img").attr("src");
var photo = new ContactField();
photo.value=profilePic;
photos[0]=photo;
contact.photos = photos;

And just incase you just say its my code , yes ive tried photos.push(photo) , and I have checked the source of my image , it is correct.
Somehow the error logs are not showing double black slashes for the URL , and YES i have even run a replace method to double the back slashes and its the same.
I have also tried 
var photo= new ContactField('url', imageURL,true);
...

I hope you guys can help
Thanks!

Simon MacDonald

unread,
Nov 21, 2012, 11:24:18 AM11/21/12
to phonegap
It's because the url starts with https. I will file a bug and fix it.

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
 
 

Cory

unread,
Dec 6, 2012, 12:45:10 PM12/6/12
to phon...@googlegroups.com
Ahhh Ok thanks for the reply!
Will I be able to get a hold of a hotfix for 2.0.0?

Thanks,
Cory

Simon MacDonald

unread,
Dec 6, 2012, 12:55:33 PM12/6/12
to phonegap
Nope, not unless you grab the 2.0.0 source, make the change and compile the jar. Luckily this is open source so you could do it if you'd like to.





Cory

unread,
Dec 7, 2012, 11:37:01 AM12/7/12
to phon...@googlegroups.com
Oh ok thank you.

Any idea how long will it take till a fix is out by the way?

Simon MacDonald

unread,
Dec 7, 2012, 4:37:41 PM12/7/12
to phonegap
2.3.0rc1 is already out so 2.3.0 is not far away.

Cory

unread,
Dec 10, 2012, 3:17:47 PM12/10/12
to phon...@googlegroups.com
Ok thanks!
I read a post on the contacts.find for email field causing issues. That was my issue i mentioned when I tested the upgrades from 2.0.0 to 2.1/2.2
Looking forward to 2.3.0!

Cory

David Omer

unread,
Dec 17, 2012, 7:31:10 PM12/17/12
to phon...@googlegroups.com
Simon, where can we get 2.3.0rc1?

Simon MacDonald

unread,
Dec 17, 2012, 8:00:33 PM12/17/12
to phon...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages