Presence problem

Hi,

A gatlk user is online but when i am login to the gatlk via smack and trying to retreive rosters i got unavailable for that user.

does that logged in user send presence update if it’s already availbale?

Do i need to fire retreiveroster function after login to the gtalk? if before login to gatlk i call retreiveroster is it will fetch all the contacts as unavailable.

I have added presence and roster listener but that doesn’t solves my purpose.

Regards,

samba