Java tutorial
//package com.java2s; import android.telephony.PhoneNumberUtils; public class Main { private static String format(String number) { return PhoneNumberUtils.formatNumber(number, "uk"); } }