andy02 andy02 - 11 months ago 71
Android Question

How to set OTP automatically on edittext read from the message

Server sends an OTP and it also shows on my android monitor(by using log.) but the problem I face it doesnt set on my edittext automatically, My App should be able to automatically read the OTP sent by the server. How can I achieve this? Any help or guidance in this regard would be highly appreciated.

Answer Source

check this site here is example how to get otp automatically

http://androiddhina.blogspot.in/2015/06/reading-incoming-message-automatically-to-verify-OTP.html

Also please don't forget to make static to your EditText from your Activity/Fragment