android demo moved the initialization to the application