integrated code with android side