In my Android app, how can I do real validation of mobile number?
Like:-
If(MobileNumber.isExists()) return true; else return false;
Note:- No fake validation is required.
Can anyone do this, I am waiting for the right answer.
In my Android app, how can I do real validation of mobile number?
Like:-
If(MobileNumber.isExists()) return true; else return false;
Note:- No fake validation is required.
Can anyone do this, I am waiting for the right answer.
when you say real validation do you mean a phone number that already exists? Or a phone number that would be an appropriate value? I am unsure how to check if a phone number is in circulation but you could do a check to see if it is an appropriate length.
String mobileNumber;
int countryMobileLength;
if(mobileNumber.length() == countryMobileLength) {
return true;
} else {
return false;
}