No exception will be thrown in case of any error by this call. ShowChallengeAsync downloads and shows CAPTCHA image asynchronously. ReCaptcha.showChallengeAsync("your-public-key", onShowChallengeListener) In your activity/fragment/view containing, you need display a CAPTCHA image for the user to response: ReCaptcha reCaptcha = (ReCaptcha)findViewById(R.id.recaptcha) It is important to use android:scaleType="centerInside" to ensure the entire CAPTCHA image can be displayed.Īlternatively, you can create an instance of at runtime: ReCaptcha reCaptcha = new ReCaptcha(context) To show CAPTCHA image, you need to add a element to your layout XML: /> Quick Startįirst you have to sign up for your API keys.Ĭompile ':reCAPTCHA:+' The reCAPTCHA Android Library provides a simple way to show a CAPTCHA as an ImageView in your Android app, helping you stop bots from abusing it. There is a library for android using google recaptcha
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |