add Android code; change to a simple code