Fix bug 447031 - Refine Android service sample

Add qos and retained information to history when publish message and receive message.

Bug 447031

Change-Id: I6dc7aa824959d344bb6731ba53821b8eaef7783b
Signed-off-by: tzihan <zhtang@cn.ibm.com>