Alibabacloud.com offers a wide variety of articles about android permission read phone state, easily find your android permission read phone state information here online.
This article summarizes the methods of reading and writing the files in memory of the Android phone. Share to everyone for your reference. The specific analysis is as follows:
How to read and write the file data in the phone's memory?
The context provides a way to open the file I/O stream in the application's Data folder as follows:
FileInputStream open
(). Getcontentresolver (); arraylist5. Delete Contact:public void Testdelete () throws exception{ String name = "Bruce Lee"; By name, id uri uri = uri.parse ("content://com.android.contacts/raw_contacts"); Contentresolver resolver = This.getcontext (). Getcontentresolver (); cursor cursor = resolver.query (URI, new string[]{data._id}, "Display_name=?", New String[]{name}, NULL); if (Cursor.movetofirst ()) { int id = cursor.getint (0); Delete the c
1) read imsi, IMEI, and mobile phone number:
TelephonyManager tm = (TelephonyManager)
this
.getSystemService(Context.TELEPHONY_SERVICE);
String deviceid = tm.getDeviceId();
String tel = tm.getLine1Number();
String imei =tm.getSimSerialNumber();
String imsi =tm.getSubscriberId();
NOTE:
Not all mobile phone numbers can be obtained. Only some of them can be obt
This article describes the Android programming to read mobile phone contacts, dial-up, send SMS and long by menu operation method. Share to everyone for your reference, specific as follows:
1.Andrid Project Chart ↓ main operation diagram in red box in the file.
2. First layout code is as follows
A, main.xml program to run the main interface, mainly using Lis
First, Address Book introduction
The Address Book is an application of the Android phone, it is a contentprovider application, other applications can access the Address book, the contact person's crud operations.
Second, the Address book database structure introduction
First, we can find the Contacts2.db file in File Explorer view, which is the file in the Address Book.
Then, we open with SQLite, analyze
Preface
When reading the address book of the Android system, the contacts are generally read first and then their numbers are read in a nested loop. If the number of contacts in the address book is small, the speed is acceptable, but the number of people in the address book is 1 to 2, I am afraid it will be slow. If the hardware is almost worse, the experience wi
Primary school English third-year book point read the software. According to the 2014 Beijing Teaching Reform edition textbooks, pronunciation standards. Realize the point reading function. Where to read where and where not to point! Written by Beijing Institute of Educational Sciences, published by Beijing Press. isbn:9787200108781 apk installation package Download: Click here for http://pan.baidu.com/s/1j
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.