add android API and test code