Warning should reflect the actual reason. and more over what is the need for a else statement ?? This test is only intended for android.