No forget it. Could you change

Log.e(TAG, "Error orientation value.");

to

Log.e(TAG, "Invalid screen orientation.");