[Java]View Plaincopyprint?
Get the intent in the middle of the image
Ivshowimage = (ImageView) Findviewbyid (r.id.call_log_detail_contact_img);
//Call phone number get avatar URI
Uri urinumber2contacts = URI
. Parse ("content://com.android.contacts/"
+ "data/phones/filter/" + strphonenumber);
Cursor cursorcantacts = sapplication.nowsapplication
. Getcontentresolver (). Query (urinumber2co
This paper introduces a very convenient tool to view SIM card information of mobile phone, and can easily view serial number information such as IMSI on the phone.1. This software can be found on the official website of the stone-cut simulator, found and installed in the Baidu Web-disk link below the stone-cut simulation organ network to find the "cut stone Simul
Android gets the mobile phone IMSI number
1. What is imsi?
The IMSI (International Mobile SubscriberIdentification Number) identifies different Mobile users. It is stored in SIM cards and can be used to distinguish valid information of Mobile users. The total length is no more than 15 characters, and 0 ~ 9. Among them,
First, the result of the operationSince the contacts are stored in a database on the phone, we can use a methodContext.getcontentresolver (). query (phone.content_uri,null, NULL, NULL, NULL);To get the address book, this method returns the data type of a cursor, using the MoveToNext () method to get all the phone number informationOf course, reading the
The Android platform offers four types of data storage: Shared Preferences, file storage, SQLite storage, and networked storage. which
1 Shared Preferences A lightweight key-value storage mechanism dedicated to storing key-value pairs of data, and can only store basic data types (boolean, int, long, float, and string), which are typically used to store application configuration information.
2 file storage operates on files through FileInputStream an
Because the user's contact phone number is an image when the second-hand house information is crawled on the page of 58 city, my horizontal relationship cannot be well identified, so it is easier to capture the android client, previously, it was good. Recently, I found that my mobile phone
Mobile phone numbers are not all available. Just a part of it can be got. This is because the mobile operator did not write the phone number data to the SIM card. SIM card has only a unique number, for network and device identification that is the IMSI number, the cell
to handle the event in this eventIn Android development, there's a lot of internal classes for efficiency reasons, and this is where it often happens.Adds a Click event to the button and handles the program in the event.
The code is as follows
Copy Code
Intent.setaction ("Android.intent.action.CALL");Intent.addcategory ("Android.intent.category.DEFAULT");Intent.setdata (Uri.parse ("Tel:" + strmobile));StartActivity (Intent
Recently in a project to determine whether the user input is a mobile phone number, in fact, this demand in Android is a very common needs such as registration or forget the password and so on may be used! Here's a simple record.Private String Regexphone = "^ (13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]) [0-9]{8}$";Take the value entered by the user in EditText
Verifying the phone number regular expressionNow the number is too much, everything has, then relax the requirements of the BaiA combination of 11-digit numbers starting with 1 /** * Verify mobile phone number * @param phonenumber Mobile
Android determines the operator of the mobile phone number
TextView TV = (TextView) findViewById (R. id. TV); TelephonyManager telManager = (TelephonyManager) getSystemService (Context. TELEPHONY_SERVICE); // get the IMSI code of the SIM card String imsi = telManager. getSubscriberId (); // MNC if (imsi! = Null) {if (imsi. startsWith ("46000") | imsi. startsWith
This part was learned yesterday, but because of the eye overload so dragged to the present, the future should be reasonable planning time.
At present, the number of the phone in the home query is mainly through two ways: 1 network query, 2. Match the local database of ownership.
I think the two kinds of combination is the best, in the local database can not match the network query, to greatly increase the
The following program implements the following three functions:
1. synchronous listening for changes in text input boxes. By default, the following three methods are inherited;2. Use regular expressions to determine whether the entered phone number is legal;3. After the activity is displayed for one second, the keyboard jumps out;
Package COM. my;
There is also a more concise method to determine the mob
Now start to deal with the logic of each navigation page, first look at the second navigation page
Here you need to implement the ability to bind the SIM card serial number, and note that the appropriate permissions are added: Uses-permission android:name= "Android.permission.READ_PHONE_STATE"
Private Settingitemview Siv_sim_bound;
@Override protected void OnCreate (Bundle savedinstancestate) {super.oncreate (savedinstancestate);
S
First show you the operating effect chart:
Because the address book is stored in a database on the phone, so we can use a method
Context.getcontentresolver (). Query (Phone.content_uri,
null, NULL, NULL, NULL);
To get the address book, this method returns the data type of a cursor, through the MoveToNext () method to obtain all the mobile phone number
Today, I am discussing how to use a mobile phone to work in the Organization. I suddenly think of the serial number of the mobile phone card. As long as the serial number of the mobile phone card is used, I can uniquely identify a mobile
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.