your declaration:
private static final int REQUEST_ENABLE_BT = 1; Should be: private static final int REQUEST_ENABLE_BT = 0;