Android connection test added and fixed bugs