core code of Zxing for android