Realizing method of JavaScript extended object based on Android platform, and binding interface structure

A technology of an Android platform and an implementation method, which is applied in the direction of program control devices, etc., and can solve problems such as limited expansion functions, limited expansion functions, direct reading and assignment of no attribute data, etc.

Active Publication Date: 2011-10-05
CHINA UNITED NETWORK COMM GRP CO LTD
View PDF3 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The defect of the prior art is that the process of invoking the corresponding Java object according to the JavaScript extension object is realized through the JavaScript extension object binding interface of the Web application client
However, existing Java objects usually include two parts: process data and attribute data. The Android platform was originally designed only for mobile smart terminals such as mobile phones. The extension functions required for these application scenarios are limited, so only the JavaScript extension object binding interface The function of calling the process data of the Java object is designed, but the function of directly reading and assigning the attribute data is not designed; Direct reading and assignment, while the lack of functions in the existing JavaScript extended object binding interface limits the realization of extended functions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Realizing method of JavaScript extended object based on Android platform, and binding interface structure
  • Realizing method of JavaScript extended object based on Android platform, and binding interface structure
  • Realizing method of JavaScript extended object based on Android platform, and binding interface structure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0032] figure 2 It is a flowchart of Embodiment 1 of the method for implementing a JavaScript extension object based on an Android platform according to the present invention. As shown in the figure, the method includes the following steps:

[0033] Step 110, the browser engine sends a property reading request to the JavaScript ex...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a realizing method of a JavaScript extended object based on an Android platform, and a binding interface structure. The realizing method of the JavaScript extended object based on the Android platform comprises the following steps of: sending an attribute reading request to the binding interface of the JavaScript extended object of a Web application client by a browser engine according to the JavaScript extended object; calling a pre-set acquisition statement by the binding interface of the JavaScript extended object according to the attribute reading request and setting field name parameters of the acquisition statement to be an attribute name of attribute data to be acquired; and executing the acquisition statement and returning the attribute data which has the corresponding attribute name and is acquired from the Web application client back to the browser engine. According to the realizing method and the binding interface structure, the direct reading and value assignment of the attribute date of the Java object are realized so that the conditions for realizing more abundant extending function are created.

Description

technical field [0001] The invention relates to an Android platform-based JavaScript extension object implementation method and a binding interface structure, belonging to the technical field of intelligent terminals. Background technique [0002] The Android (Android) platform is an operating system platform of a smart terminal, which can be used in a smart phone or a set-top box. JavaScript is an object-based and event-driven client-side scripting language with relative security. JavaScript extension objects are object files written in the JavaScript language to extend new functionality for the browser. [0003] figure 1 It is a schematic diagram of the system structure of implementing a JavaScript extension object based on the Android platform in the prior art; as shown in the figure, the system mainly includes: a Web application client and a browser engine. JavaScript extension objects are added to the browser engine. Specifically, these JavaScript extension objects a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 姜琳仇剑书刘红旗
Owner CHINA UNITED NETWORK COMM GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products