Hi,
On 20/04/2012 10:04, Langyue wrote:
> Hello,
> I read the favorate package and understand its design. get new
> questions for you.
> 1, where is the procedure to get presence of contacts ?
It's made by addBuddy here :
http://code.google.com/p/csipsimple/source/browse/trunk/CSipSimple/src/com/csipsimple/service/PresenceManager.java#102
It's transmitted to pjsip stack behind which subscribe correctly.
> 2, for the contacts status, do you want to save presence
> to Contacts database, then query and display to view, or fill to view
> directedly once changed.
Yes it already saves it to contact database and query it from contact
database as well.
See
http://code.google.com/p/csipsimple/source/browse/trunk/CSipSimple/src/com/csipsimple/service/PresenceManager.java#235
It's transmitted to backward compatible module ContactWrapper that saves
and allow to retrive from contact db (maybe in older version the backend
will be some local db instead of contact db).
> 3, I download the latest source codes, and start new project, all
> files is with same error message on the line import com.csipsimple.R;
> (the import can not be resolved) . That is very strange. I used the
> version Mar,29, it work rightly.
Try to clean the project. It's usually due to some bad compilation of
eclipse. Also check errors listed by eclipse it's always very useful to
have the first error log. The com.csipsimple.R is just a consequence of
the fact eclipse doesn't build android autogenerated resources.
Regards,
Régis