What is codeing by spark sent message to smack?

I want to spark link smack , but spark send Presence to smack ,smack dont return value,why, help ,best code here,thank you.