added Android platform check to transition code