check for android interface before calling functions of it