I removed this check altogether...this method is called to respond to a network message, and onCreate is written to abort if there is no bluetooth, which means that at this point we can assume adapter is nonnull.