Android code for G3Chat