Changed UsingOnlyGPS functions loop

Our device tries to connect with gps provider 10 times. When device will
connect using gps provider loop will stopped,other ways loop try connect
in 10 times.