added sonar thread, actitivie class