Presence notification with smack API

How to get online users(presence) without roster but I am getting roster entries with roster entries and that is fine. But i am interested to get online users(presence) as i told you above. And I hope it is available and i want to know that so if anyone know coding how to do that please help me and its urgent and i need to publish project today before 7PM. and thanks in advance.