Small library reused code for android