Android Tutorials

Android Email validate

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
* Created by arifhasnat on 12/20/15.
*/
public class Utility {

private static Pattern pattern;
private static Matcher matcher;
//Email Pattern
private static final String EMAIL_PATTERN = "[a-zA-Z0-9._-]+@[a-z]+\\.+[a-z]+";

/**
* Validate Email with regular expression
*
* @param email
* @return true for Valid Email and false for Invalid Email
*/
public static boolean validate(String email) {
pattern = Pattern.compile(EMAIL_PATTERN);
matcher = pattern.matcher(email);
return matcher.matches();
}
}

and by this you can implement it :


String emailID = emailET.getText().toString();
if (!TextUtils.isEmpty(emailID) && Utility.validate(emailID)) {

// do some task here
}

Android Applications · My Works

International days Info

Some times its very helpful to know the updates of international days. And most of the time we forget today’s day history ,international status . We feel if there has any application that has all international days information. And that is like a calendar ! “International days Info ” is actually such like . I… Continue reading International days Info

Android Applications · My Works

Doctors BD

his app contains finding doctors,hospitals and ambulance services of Bangladesh according to place and categories that user demands.User can browse doctors by searching according to division and special field.All available doctors will be listed.Then user can see the details information such as specialty,contact number,address and so so.User can also call,email and see the Google map… Continue reading Doctors BD