Reusable code for the native Android platform