Re: Retrieve SIM contacts
[QUOTE=bhakki;750279]Hi,
I think this is problem with s40 series mobiles.
Because this problem only occured when i retrieving the contact as general format.
I dont know How to resolve this issue????
I got the contact.countValues(Contact.TEL) is 0 when i retrieving the general contacts in s40 mobiles.
So i cant get the telephone number.
Is there any way to get the general contact number from phone contacts in s40 series mobiles?[/QUOTE]
[url]http://library.forum.nokia.com/index.jsp?topic=/Java_Developers_Library/GUID-B3E3664D-4DD7-4633-BFAA-EAA59BE55914.html[/url]
On S40 see you can get both the Contact list from phone memory and Sim cards. I have tested this on Nokia 6500 slider and few other devices like 3110 etc.
Are you testing it on real device ? try on some other device --- also try SUN WTK PDAPDemo PIM example on your target devices and see what all it is able to read from PIM
Re: Retrieve SIM contacts
Yeah. I have tested on real device.
I tested this on nokia 2700 classic mobile.
I got countValues(Contact.TEL) is 0 on this mobile.
Re: Retrieve SIM contacts
I tested PDAPDemo on real time nokia 2700 classic mobile.
Here also i faced same problem.
In this application, general contact phone number could not be read.
Re: Retrieve SIM contacts
[QUOTE=bhakki;750454]I tested PDAPDemo on real time nokia 2700 classic mobile.
Here also i faced same problem.
In this application, general contact phone number could not be read.[/QUOTE]
In this case try contact.getFields(); and then read all fields returned by this, to find what is stored where.
Re: Retrieve SIM contacts
Ok. but i got contact.countValues(Contact.TEL) is 0.
So i cant get the telephone number.
Re: Retrieve SIM contacts
[QUOTE=bhakki;750485]Ok. but i got contact.countValues(Contact.TEL) is 0.
So i cant get the telephone number.[/QUOTE]
Check the phone no may be stored in any other field...
Re: Retrieve SIM contacts
Ya its stored as general format in phone memory.
I can able to read other format like mobile,fax,home,work.
Re: Retrieve SIM contacts
[QUOTE=bhakki;750498]Ya its stored as general format in phone memory.
I can able to read other format like mobile,fax,home,work.[/QUOTE]
good then read them and show which every are populated by the enduser.
Re: Retrieve SIM contacts
Ok.
But i need to read general format contact also.
There is no way to retrieve the general format contacts?
Or Is there any other way????
Re: Retrieve SIM contacts
[QUOTE=bhakki;750508]Ok.
But i need to read general format contact also.
There is no way to retrieve the general format contacts?
Or Is there any other way????[/QUOTE]
Do a simple test: Create a new Contact Item on device - enter the phone no. 10001000 in General format Contact with name XXX
Now read this with your code and get all Fields and values.... and see in which value/attribute of the Contact item you get back this phone no.
If you get back this no. from your Contact item in J2me --- use that field index in your code. If you don't get that no in any field from J2me then you can't do any thing.
Re: Retrieve SIM contacts
Hi,
[URL="http://wiki.forum.nokia.com/index.php/KIJ001300_-_Unable_to_read_General_number_of_a_native_Phonebook_contact_in_Series_40"]http://wiki.forum.nokia.com/index.php/KIJ001300_-_Unable_to_read_General_number_of_a_native_Phonebook_contact_in_Series_40[/URL]
I seen this forum.
There is no solution was available.
My problem also exactly same.
What i do for this issue?
Re: Retrieve SIM contacts
It looks to be real issue with S40 PIM, but as a last try -- do this:
Export the Contact items from Contact list to Vcard format and see if you get the general no in the created Vcards from Contact list.
Ref to FN Wiki article for help: [url]http://wiki.forum.nokia.com/index.php/CS001210_-_Exporting_phonebook_contact_in_vCard_format_in_Java_ME[/url]
Re: Retrieve SIM contacts
Hey guys,
I have a Nokia 3720 Classic. How can I retrieve the deleted contacts from my SIM card?
Re: Retrieve SIM contacts
[QUOTE=Adonis69;751730]Hey guys,
I have a Nokia 3720 Classic. How can I retrieve the deleted contacts from my SIM card?[/QUOTE]
AFAIK if the contacts are deleted from SIM card... we can't read then using j2me PIM API's.
Re: Retrieve SIM contacts
Hi,
I used vCard format.
I got the general format number as ENCODING=8BIT like TEL;PREF;VOICE;ENCODING=8BIT:10001000 .
How to get this number?