With Phone Gap method, developers can use Web technical which correspond to the W3C standard developing native mobile application. According to call the API of Phone Gap, Web applications can communicate with the SDK API of the mobile platform which using by the developers, and then, they can use the native functions of the mobile platform. Phone Gap provides a method to develop plugins and import plugins, this method makes developers develop their own plugins or import new plugins to meet their special demands. According to the contrast testing, the mobile applications using Phone Gap method have a better performance than the applications using Web View method. Phone Gap Technical Introduction Phone Gap is an open source framework currently developed and maintained by the United States Adobe company. Using Phone Gap can be used HTML, CSS, JavaScript and HTML5+CSS3 prepared by the APP Web to build a cross platform for mobile applications. The main prospects is by acting as a bridge between JavaScript and native code with phone gap, not only to web application project conveniently packaged for local applications, but also by other local characteristics of the phone gap plug-in called Android devices, such as camera, geographic information, local network settings, and developers can according to the specific hardware needs and business requirements to develop phone gap plug-ins for their own equipment. Technical Principle and Implementation Process of Phone gap Cross Platform Principle of Phone Gap. Using phone gap technology and developers by using CSS and HTML to design the UI and control the program logic; at the same time, use JavaScript to call the API and the corresponding Platform SDK to interact, to activate the phone's GPS, motion, gravity sensors and other functions. Phone Gap prepared using the program will be packaged and installed on the phone, when the application is loaded into the phone's browser control to resolve the implementation of [4]. Phone gap framework for developers to provide a series of API, the API can be invoked in the JavaScript code; in the actual development process, through these API calls, phone gap program can interact with the developers use the Mobile Platform SDK API, and the actual call of the platform of local functions. After the development is completed, the user uses the application, the developer uses HTML technology Web, CSS and JavaScript files will be in the form of "mirror image" is packaged and released to the user's mobile platform. In actual operation, the Web browser embedded in the platform is analyzed and implemented, so as to realize the function of a development, multi platform operation. Phone Gap currently supports almost all mobile applications, such as iOS, Android, Phone Windows, blackberry and WebOS, etc.. Phone Gap Adopt JavaScript Call Java Process. The Phone Gap technology discussed in this paper will take the Android platform as an example, and based on the Phone Gap 1.6, 2.3.6 Android version to explore and test. Below through a simple Hello World program description in the Android platform based on Phone Gap development of the application of the principle of operation. The specific development process will be introduced in the next section. 6th International Conference on Sensor Network and Computer Engineering (ICSNCE 2016) © 2016. The authors Published by Atlantis Press 520 The following JavaScript code to achieve through the Phone Gap call Android device on the vibration notification function, when the program is running, the user clicks on the main program of the "shock 2 seconds" button, the device will continue to vibrate for 2 seconds. And the realization of this function, only need to use the same as the preparation of Web applications, in the HTML page to add the following line of JavaScript code. And the introduction of phonegap.js and phonegap.jar two class library support. // vibrate for 2 seconds. Function vibrate () {navigator. notification. Vibrate (2000);} Consider the user to click on the "2 seconds" button on the main program; the JavaScript code is how to call the API Android. When the user clicks on the button, the Notification. prototype. vibrate method in the phonegap.js will receive the call, and then call the Phone Gap. exec method. As shown in the following code section: Notification.prototype.vibrate = function (mills) {Phone Gap. exec(null, null, "Notification", "vibrate", [mills]);}; Phone Gap. Exec method is called, it will call prompt (stringify JSON. (args), "+JSON." stringify gap: ([service, action, callback ID, true]) method to complete the communication between JavaScript and Java. At this point, the Web View component of the Android system will attempt to pop up a window. Using Web Chrome Client provided API Android can intercept this action Web View. Specific to the Phone Gap 1.6 is the inheritance of the com. Phone gap. Cordova Chrome Client on Js Prompt class in the Web Chrome Client method. Execution of plugin Manager. exec (service, action, callbackId, message, async,) methods in the on Js Prompt method. At this point, Plug Manager will be based on the received parameters, will be distributed to a specific command Plugin, that is, the plug-in. About Phone Gap plug-in, will be described in the next section. In this case, the received plugin is Notification; the received action is vibrate; the parameter is 2000 Ms. Thus, Phone Gap call this. vibrate in the Notification (args. get Long (0)) method, notify the device vibration 2000 Ms. In the notification class vibrate method does not return a value, but in other phone gap plugins, common success and error two basic return value, to return a JSON object form, in order to inform the user, program execution state. And this return value can be captured and output on the main program page. Therefore, the summary of the JavaScript Phone Gap call Java process, as shown below. Figure 1. The communication process between JavaScript and Phone Gap in Java Phone Gap Adopt Java Call JavaScript Process. Phone Gap to achieve a callback server, the server is responsible for the callback JavaScript code; the server has a JavaScript code queue, in the src/com/phone gap/CallbackServer.java file: /** * The list of JavaScript statements to be sent to JavaScript.