Cross-process communication method and device based on Android platform

An Android platform, cross-process technology, applied in the computer field, can solve problems such as not easy to expand

Active Publication Date: 2017-03-29
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, since the native template of the Android system is fixed, if you want to uniformly modify all cross-process methods defined natively on Android (for example, add a new cache function uniformly, or add a uniformly new call speed measurement function), you need Modify the specific implementation logic of each cross-process method one by one. Obviously, the traditional cross-process method is not easy to expand

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
  • Cross-process communication method and device based on Android platform
  • Cross-process communication method and device based on Android platform
  • Cross-process communication method and device based on Android platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0027] In one embodiment, a terminal is provided, the internal structure of the terminal is as follows figure 1 As shown, it includes a processor, an internal memory, a non-volatile storage medium, a network interface, a display screen and an input device connected through a system bus. Wherein, the non-volatile storage medium of the terminal stores an operating system, and also includes a cross-process communication device based on the Android platform, and the cross-process communication device based on the Android platform is used to realize a cross-process communication based on the Android pla...

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 relates to a cross-process communication method and device based on an Android platform. The method comprises the following steps: a first unified method in a first unified access layer of a first process makes response to a calling instruction of an arbitrary original cross-process method sent by a business layer to generate a cross-process calling request, and sends the cross-process calling request to a second process corresponding to a target original cross-process method requested for calling; a second unified method in a second unified access layer of the second process obtains an identifier and an entry parameter of the target original cross-process method according to the request; the second unified method determines the corresponding target original cross-process method according to the identifier and the entry parameter of the target original cross-process method, obtains called data according to the target original cross-process method, and returns the called data to the first unified method; and the first unified method returns the called data to the business layer, and related processing operations of the called data according to the first unified method. The scalability and the efficiency of the cross-process method are improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a cross-process communication method and device based on an Android platform. Background technique [0002] For the Android system, when there are multiple processes in an application, due to the limitation of the operating system, the memory data between the processes are not interoperable. When processes need to access each other's data, cross-process communication is required, for example, by calling a cross-process method to perform cross-process data calls. [0003] However, when Android natively defines a cross-process method, it needs to be in AIDL (Android Interfacedefinition language, which is an interface description language, which is used to generate interprocess communication (IPC) between two processes on an Android device. code) file to declare the function, and then use the compiler to generate the corresponding code according to the fixed template of the funct...

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/54
CPCG06F9/545
Inventor 莫富文
Owner TENCENT TECH (SHENZHEN) 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