How to get the native phone number on Android, and now Android provides an API to read the number that was cured on the early SIM card,
Copy Code code as follows:
Private String Getphonenumber () {
Telephonymanager Mtelephonymgr;
Mtelephonymgr = (Telephonymanager)
Tag: Code cat code Log Direct err map load ATIThere are many ways to get the package name and version number for other apps on your Android phone, which can be obtained directly from the APK package via AAPT or via code on your phone. Obviously, for the product or user to obtain this information, on the
The following is an example of a number, a telephone to tell EditText how to set the input type, other types can refer to the InputType class.
1) can only enter the number
The code is as follows
Copy Code
EditText et = (edittext) Findviewbyid (r.id.ettest);Et.setinputtype (Inputtype.type_class_number);
2) can only enter the phone
I recently started to learn about Android, mainly focusing on the secrets of Android Application Development. In chapter 3rd, example_03_02 is an example of reading the name and phone number of contacts in the address book. However, due to API 2.0, each contact can have multiple ph
on the conditions.If the server in the issued text message, does not include the phone number, the phone is unable to obtain the phone number. If the text contains a number, the phone
When you contact this tutorial, the method used to select a contact is to read the contact from the database, and then display it with listview. After selecting the contact, the mobile phone number is returned,
In this way, when you click to select a contact, it takes time to load and the displayed contacts do not seem to be full,
In short, it is not good. You do not have to process the interface by calling
China Telecom 2G segment, as well as China Telecom 3G (133, 153, 180, 181, 189), another card supports China Mobile or Chinese unicom 2G segment of the voice and SMS functions.Third-party operator 170th code segmentadd: China Unicom 4G 176, telecom 4G 177, Mobile 4G 178th segmentThe regular expression functions written according to these are as follows:Boolean Ismobileno (string mobiles) {2 string telregex = "13\\d{9}|14[57]\\d{8}|15[012356789]\\d{8}|18[ 01256789]\\D{8}|17[0678]\\D{8} "; False
Android AutoCompleteTextView supports mobile phone number formatting, with the history clearing operation, autocomplete clearing data
One of my friends has encountered this problem: AutoCompleteTextView Enables automatic filling. At the same time, you must have the mobile phone Formatting Function. The last row in the
This article original from Http://blog.csdn.net/voipmaker reprint annotated source.The latest version number TELEMCU added Android phone-side WEBRTC video conferencing capabilities, Android phone installed Chrome/firefox browser after loading TELEMCU Webrtcclientteleweb can
to query n + 1 times.
I saw a post in the garden saying that I could use
Uri. withAppendedPath (PhoneLookup. CONTENT_FILTER_URI ,"*")
After obtaining the information of all contacts, I did not test successfully on the Android 4.0 simulator and the Android simulator.
Various types of contact information are stored in the Data table. Therefore, you can query the Data table and limit its MIMETYPE to
Preface Welcome to share and recommend useful code segments ~~Statement You are welcome to repost, but please keep the original source of the article:CSDN:Http://www.csdn.net O Mo Li in the rainy season:Http://blog.csdn.net/luckkof
Body
Some SIM cards are not preset with the VoiceMail number at the factory, but the operator requires that the preset VM number be read from the mobile
, ResultCode, data);
}
Where the Getphonecontacts (URI) method, because the phone's contact and cell phone number are no longer in the same database, so we need to do separate processing
private string[] Getphonecontacts (Uri uri) {string[] contact=new string[2];
Get Contentresolver object Contentresolver cr = Getcontentresolver ();
Gets the cursor Cursor cursor=cr.query (uri,null,null,nul
In my daily text message program, you can click the select contact button to display the contact selection page. After you click Select contact, the mobile phone number of the contact is added to a text box. For the introduction and interface of this program, see my first Android program.You can directly use the built-in contacts of
This example shares the Android access to the mobile phone system version of information such as the method, for your reference, the specific contents are as follows:
The first type of code:
String Phoneinfo = "Product:" + Android.os.Build.PRODUCT;
Phoneinfo + = ", Cpu_abi:" + Android.os.Build.CPU_ABI;
Phoneinfo + = ", TAGS:" + Android.os.Build.TAGS; Phoneinfo = ", Version_codes. BASE: "+ Android.o
Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/47374415Some Android phones will have a number of commonly used features, such as ordering telephone, public telephone, air tickets, and so on, and so on, click on the corresponding number will automatically pop up the phone call interface.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.