android code works, for both absolute path and assets relative path