added isAndroid function