Bug on the threads interruption (see while(true)). Find a way to make the Activity to wait the service completion