added Android connection check