Alibabacloud.com offers a wide variety of articles about how to merge call on android, easily find your how to merge call on android information here online.
at each layer as ours.
What functions are provided and how to use these functions.
1. Application LayerAndroid will be released with the core application package. The package includes the home, e-mail client, and,
SMS/MMS Short Message programs, calendars, maps, browsers, and contact management programs. All applications are written in Java.
Call the APIS provided by the application framework. Of course, you can also use Java through JNI,
Using
This example for you to share the Android call interception method for your reference, the specific content as follows
Permissions
dial-up Broadcast -phonestatereceiver
Package com.example.administrator.endcall;
Import Android.content.BroadcastReceiver;
Import Android.content.Context;
Import android.content.Intent;
Import Android.telephony.PhoneStateListener;
Import Android.telepho
process. In fact, this startup process is to load and register it to the application framework layer step by step from the underlying Linux kernel layer in the android architecture diagram, and finally run our own applications on the application layer. So what is the relationship between different levels? How does an application call the underlying core service at the top? The next section analyzes the rel
Android: Call the system sharing function. android calls
Sample Code:
/*** Call the system sharing Function * Created by admin on 15-4-13. */public class extends Activity {@ Override protected void onCreate (Bundle savedInstanceState) {super. onCreate (savedInstanceState); setContentView (R. layout. pai_layout);} // s
This article implements the Android system camera call to take photos
The layout of the project is fairly simple, with only one button:
First open the list file under the Packages\apps\camera folder and find the following code:
The relevant code is as follows:
public class Mainactivity extends activity {
@Override
protected void onCreate (Bundle savedinstancestate) {
Application scenario: In the Android development process, it is sometimes necessary to call the phone's own device function, this article focuses on the camera function calls. Knowledge Points: Access to the phone's own device function (camera photo function), should ensure that the Androidmanifest.xml has been correctly stated in the use of the camera and other related feature
1. Camera Related permission
Android integrates the call and text messaging functions, which can be called only,
Main. xml
[Html] Android: layout_width = "fill_parent"Android: layout_height = "fill_parent">Android: id = "@ + id/textView"Android: layout_width
I recently contacted the Android platform JNI call and found that the network information has not provided a more detailed introduction from the principle to the specific implementation. Therefore, I have referenced some materials and added some experiences based on the project development:
Origin of JNIJNI is the abbreviation of Java Native Interface. It allows Java code to interact with code written in ot
We have learned how to call an activity in a single application. However, an important aspect in android development is to use intent to call the activity of other applications. In particular, your application can call many "built-in" applications in the system. The so-called "built-in" application refers to applicatio
Knowledge points:
Android does not open an API for ending a call. to end a call, you must use AIDL to communicate with the telephone management service and call the API in the service to end the call. The method is as follows:1> copy the following files from the
Android-bind a service to call a serviceThe Service can be started in two ways:1. StartedStarted Service is Started by using the startService (Intent intent) method in the Application. Once started, this type of Service will run endlessly, even if its Activity is Destroy. To stop a Service of this type, you can call stopSelf () in the Service or
setbackgroundresource () method to redraw the background of mmainframe.
2) The next incoming call will be followed by a large sticker used by the phone.---------Yes. This should be cleared at the end of the call. This is simple. Modify incallscreen. smali and find
.method private delayedCleanupAfterDisconnect()V
This method. Then find the return-void line of code, and insert the following code in several l
Android development path (3) --- simulate the implementation of phone calls
A ndroid development is A very interesting thing. Simulating A call is A very interesting thing. Your own virtual machine calls your own virtual machine. The following describes how to simulate a call.
First, create an Android Project Phone
You
Android study note 26. Cross-process call Service (AIDL Service) and androidaidlCross-process call Service (AIDL Service) I. AIDL Service1. What is AIDL Service?AIDL, that is, Android Interface Definition Language. android is used to define remote interfaces. the syntax of t
Interaction between Android and Javascript. Javascript needs to run in a browser or android webview component. Javascript must have a carrier HTML file.
Put it under the assets folder of the android project.
First, I will post the code first:
The content of the Main. xml layout file is as follows:
Android: layout_wid
modification is required for incallscreen. smali.---------Find:
.field private mMainFrame:Landroid/view/ViewGroup;
Changed:
.field public mMainFrame:Landroid/view/ViewGroup;
We need to access this member in callcard. smali, so it must be public ).
2) Modify callcard. smali for the updatedisplayforperson () method---------Find:
.method private updateDisplayForPerson(Lcom/android/internal/telephony/CallerInfo; ...
In this method, find the only showcach
In Android, The WebView control can be used to call the pages to be loaded and Android methods. We need to implement the addJavascriptInterface method in WebView so that html can call the android method, here I personally think it is a bit similar to DWR.
To make it easy to
Intent redirects to the dial-up interface, contact interface, SMS interface, and other interfaces in the system application.
Now, the functions under development need to jump directly to the dialing, contact, text message interface, and so on. After finding a lot of information, I sorted it out myself.
First, let's look at the dialing interface first. The Code is as follows:
Intent intent = new Intent ();
Intent. setAction ("android. intent. action. C
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.