Implementation of a simple phone call program for Android
Step 1: Interface Design
Step 2: overall implementation:
Phone call is the main function of mobile phones. The first program in Android is to implement the call function.
1. First, add the corresponding text informat
To obtain call records, use CallLog.
Key part of the java file:
Private ContentResolver cr;
Private Cursor cursor;
Private String LOG = "mobilecils ";
String str = "call history: \ n ";
Public void setContenResolver (){
Int I = 0;
SetCr (context. getContentResolver ());
SetCursor (getCr (). query (CallLog. CILS. CONTENT_URI, // use the system URI to obtain call
Android changes in the phone status will send the action to Android.intent.action.PHONE_STATE broadcast,When you make a call, a broadcast with action Android.intent.action.NEW_OUTGOING_CALL is sentAndroid in the music player to monitor the status of the phone, such as: playing music, call (power off) pause the music, h
Even with Xiaomi, when the mobile phone is locked by a keyboard, the screen can be lit by three numbers:
911
112
08
When I watch so many movies in the United States, I know that 911 is an emergency call number in the United States. but 112 does not know. after reading Netease's report "mobile phone emergency call
1, first of all, to use your Mac phone, you need to install the current OS X 10.10 system on the Mac, and your iPhone will be updated to the latest iOS8 system.
2. When we have the latest system on both the iphone and the Mac, then we need to log on to the ICloud service separately on the iphone and Mac. As shown in the following illustration, you can log in with the Apple ID on the IPhone in "set-icloud" .
3, then also n
1. such as iOS8 in the Iphone6 call reminder is as follows, only accept not rejected, but there is a "Remind Me" button
2. Click to remind me after we can choose 1 hours or other options.
3. Ok so will refuse to answer the phone, at this time the phone will automatically remind you have not received the call
This function is actually very simple we need the phone and SIM card support, but now the mobile phone and SIM support this function only need our simple settings oh.
Note: This function requires SIM card support, please check with the mobile phone card's network operator to open this business.1. We click on the icon "phone
This article describes how the system can match contacts in a phone book after receiving incoming calls. The analysis starts with the code that is related to this article from another article (based on Android6.0 's RIL Framework Layer module analysis).
Packages/service/***/call.java public void Handlecreateconnectionsuccess (Callidmapper idmapper, ParcelableConnect
Ion connection) {SetHandle (Connection.gethandle (), connection.gethandleprese
Front-end call phone camera photoThere are two common ways of implementing this:One is to capture the image in video by capturing the stream of video through the video control,Another is to use the Input[file] control to invoke the camera on the mobile side to achieve a picture.Both methods have pros and cons, the first can be implemented to the photo screen rewrite (such as the addition of a photo screen m
Last year, various H5 animation effects broke out in the circle of friends. These H5-based pages quickly formed a viral communication effect through the circle of friends. This article explains the "Shake sign" case, it helps us to analyze in detail how to call the mobile phone gravity sensing interface in HTML5 ....,.
In the past year, H5 marketing has been very popular. I believe that we are not familiar
There is a letter of free internet phone charges standard with the dialing location and the way there is direct contact, the specific letter charges are as follows.
Dial a phone location
(1) from abroad to call domestic
In 3G or Wi-Fi environment, the domestic number from abroad is free of charge, you can use the gift account in the
The HTML code is as follows:The JS code is as follows:
Attention:1. Mobile Phone call QQ, will not stay in when the Web page, but directly call the mobile phone QQ app, stay in the app;2. PC-side call QQ.exe application, in the desktop window will pop up the Browser
1, in the mobile phone we click "Settings" we click into the find "sound and vibration"
2, in the Open interface we find, voice and vibration of the "cell phone ring"
3, then after opening the choice of ringtones, we click on "My" open to enter
4, then we click on the phone with the ring, enter and then find "through other program selection
1, installed on the computer itunes and 91 assistants, open the top left corner of 91 assistant Select Click "Enter the recovery mode" mobile phone natural restart, restart the phone will appear to connect itunes;2, open in the computer's itunes, after the connection appears: Restore, select recovery, about 40 minutes recovery time.
3, another may be your location signal is not good, and then automatically
Original: Java call Fetion interface free SMS sent to the other phoneSource code: Http://www.zuidaima.com/share/1550463460084736.htmfetion Send Message limit (mobile users)1. Use Fetion to add a friend to the other side to send fetion (to achieve this condition fetion no charge)The weekendgreetings= in the 2.FetionConfig configuration file is to send another profile nameIf the weekendgreetings= weekend greeting is the weekend greeting the contents of
soft link to the header file directoryCd/opt/android-ndk/platforms/android-19/arch-arm/usr/includeLn-s/my/src/openssl-1.0.1k/include/openssl.7) Copy the following files from your phone (in/system/lib, Root oh) into the NDK's lib directory:For example, my phone is as follows:[my]# pwd/system/lib[my]# Ls-la libcrypto.so libssl.so-rw-r--r--root root 1249844 2013-02-09 03:36 libcrypto.so-rw-r--r--root root 224
HTML5 + Canvas + jQuery call the mobile phone photo function to upload images (2)
The previous article only talked about front-end operations. This article specifically involves Java background processing. The front-end submits Base64 encoded image data to the Java background through Ajax, and then receives and processes the data in Java, after Base64 Decoding of image data information, you can use a stream
HTML5 + Canvas + jQuery call the mobile phone photo function to upload images (2 ),
The previous article only talked about front-end operations. This article specifically involves Java background processing. The front-end submits Base64 encoded image data to the Java background through Ajax, and then receives and processes the data in Java, after Base64 Decoding of image data information, you can use a stre
Call CameraThrough the above code has been able to call the phone camera to take pictures, compress, upload the whole process.However, in the process of tossing and finding a way to call the camera. Attention, yes 摄像头 ! The camera is called using input. The difference is that the camera is only capturing images, and t
First, through contact1. Slide the screen from right to left (from left to right) to "contact".
2. Select "Contact".
3. Select the contact you want to call, you can call.
Second, through the Dial
1. Slide the screen from right to left (or left to right) until the "Application" is displayed.
2. Click "Application".
3. Select "Dial".
4. Enter the
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.