Question: how otp works in android?
Answer: Activity generates a random 5 digit number and send it to mobile number through SMS gateway. On recieving sms, SMS body read by Broadcast Reciever and copy the code from SMS body to OTP EditText. If random code generated by activity and code sent via sms are same then user should get further access.