The following statement shows an error :
Presence p_tester = Presence(Presence.Type.available,"having lunch",1,
Presence.Mode.available);
The error higlighted by the IDE is :
cannot find symbol
symbol: method Presence(Type,String,int,Mode)
Why am I getting this error though I have imported the correct class
(org.jivesoftware.smack.packet.Presence)
?