Email validation and Mobile number validation in Android

Email validation and Mobile number validation in Android

Email and Mobile numbers are very important parts of Android users. In this tutorial we will learn about how to Email validation and Mobile number validation in Android using regular expression. Email Validation public boolean isValidEmail(String email) { String expression = “^[\\w\\.-]+@([\\w\\-]+\\.)+[A-Z]{2,4}$”; CharSequence inputEmail = email; Pattern pattern = Pattern.compile(expression,…

Continue reading

Button in Android

Round corner button circular button oval button android

The buttons are important widget in Android and by default it has a rectangular shape. In this tutorial we learn about how to create round corner button, oval button and capsule shape of  button. First of all create a xml file  in a drawable folder and call it as a…

Continue reading