WO2017076136A1 - Multi-task displaying processing method and apparatus of mobile terminal - Google Patents
Multi-task displaying processing method and apparatus of mobile terminal Download PDFInfo
- Publication number
- WO2017076136A1 WO2017076136A1 PCT/CN2016/100195 CN2016100195W WO2017076136A1 WO 2017076136 A1 WO2017076136 A1 WO 2017076136A1 CN 2016100195 W CN2016100195 W CN 2016100195W WO 2017076136 A1 WO2017076136 A1 WO 2017076136A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- message distribution
- distribution process
- browser
- event
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present invention relates to user interface (UI) interaction technology, and in particular, to a mobile terminal multi-tasking display processing method and apparatus.
- UI user interface
- the multitasking display method is to completely switch the display, that is, create and save a task stack in the background, the top of the stack is the currently executed task process; when there is a new task process
- the operating system will perform a stack operation on the new task process.
- the task process at the top of the stack is switched to the background, the new task process is placed on the top of the stack of the task stack, and the task at the top of the stack is in the foreground. display.
- This task switching display mode is too granular, and has the following disadvantages:
- the complete task process consumes too many resources during the switchover, such as memory resources, CPU resources, display resources, etc., thus causing the operating system to run slowly and not smoothly;
- the embodiments of the present invention provide a display processing method and apparatus for multi-tasking of a mobile terminal, which enable the mobile terminal to simultaneously display an interactive interface of multiple task processes to ensure that the user performs WEB browsing.
- the consistency of the display is a display processing method and apparatus for multi-tasking of a mobile terminal, which enable the mobile terminal to simultaneously display an interactive interface of multiple task processes to ensure that the user performs WEB browsing.
- An embodiment of the present invention provides a multi-tasking display processing method for a mobile terminal, including: acquiring inter-process communication (IPC) authority; setting a message distribution process in an operating system, and the message distribution process uses IPC mode and application process and browsing. The process is communicated; an event listener interface for monitoring messages sent by the message distribution process is separately set in the application process and the browser process;
- IPC inter-process communication
- the method further includes the browser process rendering the content to be displayed to a pre-generated floating window according to the received event message.
- the method further includes:
- the message distribution process maintains the mapping table
- the mapping table includes: an application process that establishes a connection with the message distribution process, and a correspondence between an identity of the browser process and a socket handle.
- the message distribution process communicates with the application process and the browser process through the IPC mode, including:
- the message distribution process maps the message to a socket handle corresponding to the browser process according to the mapping table;
- the message When the browser process sends a message to the message distribution process, the message includes an identity of the application process, and the message distribution process according to the identity of the application process, according to the mapping table The message is mapped to a socket handle corresponding to the identity of the application process.
- the method further includes:
- the event listening interface of the application process sends a message of the event to the message distribution process; and the event monitoring interface receives After the message of the message distribution process, the application process parses and executes;
- the event listening interface of the browser process processes the received message of the message distribution process, and returns the result to the The message distribution process.
- the method further includes:
- the browser process After receiving the event message of the message distribution process, the browser process extracts the content to be displayed from the event message before rendering the content to be displayed to the pre-generated floating window.
- the embodiment of the invention further provides a display processing device for multi-tasking of a mobile terminal, comprising:
- the permission obtaining unit is configured to obtain the IPC authority
- a setting unit configured to set a message distribution process in the operating system, where the message distribution process communicates with the application process and the browser process by using an IPC manner; and the application process and the browser process are respectively set to monitor the message distribution process.
- the display processing unit is configured to: the browser process renders the content to be displayed to the pre-generated floating window according to the received event message.
- the device further includes:
- mapping table maintenance unit configured to maintain the mapping table after the message distribution process is started, where the mapping table includes: an application process and a browser process that establish a connection with the message distribution process The correspondence between the identity and the socket handle.
- the apparatus further includes an execution unit configured to: after the application process sends a message to the message distribution process, the message distribution process maps the message to the browser according to the mapping table.
- the message When the browser process sends a message to the message distribution process, the message includes the identity of the application process, and the message distribution process is based on the identity of the application process, according to the mapping table. The message is mapped to a socket handle corresponding to the identity of the application process.
- the execution unit is further configured to: after the application process establishes a connection with the message distribution process, when the event occurs, the event listening interface of the application process sends the event message to the a message distribution process, after the event listening interface receives the message of the message distribution process, the application process parses and executes;
- the event listening interface of the browser process processes the received message of the message distribution process, and returns the result to the The message distribution process.
- the device further includes an information extracting unit configured to: after the browser process receives the event message of the message distribution process, before rendering the content to be displayed to the pre-generated floating window, The type of the event is extracted from the event message.
- the authority acquisition unit, the setting unit, the display processing unit, the mapping table maintenance unit, the execution unit, and the information extraction unit may use a central processing unit (CPU, Central Processing Unit) when performing processing. ), digital signal processor (DSP, Digital Singnal Processor) or programmable logic array (FPGA, Field-Programmable Gate Array) implementation.
- CPU Central Processing Unit
- DSP Digital Singnal Processor
- FPGA Field-Programmable Gate Array
- a display processing method and apparatus for multi-tasking of a mobile terminal acquires IPC authority; and sets a message distribution process in an operating system, and the message distribution process passes an IPC mode and an application (APP) process and a browser process.
- Communicating setting an event listening interface for listening to a message sent by the message distribution process in the application process and the browser process; the browser process rendering the content to be displayed to a pre-generated according to the received event message Floating window; in this way, the user can currently disconnect each other while not disconnecting the application currently being processed
- the networked page forms a floating window display for other applications, and performs selective operations on other applications through the floating window.
- the embodiment of the present invention uses a lightweight browser to render, which saves system resources. Occupation, because it does not need to disconnect the current application, it also improves the user's consistency in Internet browsing, and the WEB technology used also simplifies development and maintenance.
- FIG. 1 is a schematic flowchart of an implementation process of a multi-tasking display processing method for a mobile terminal according to an embodiment of the present disclosure
- FIG. 2 is a schematic view showing a display effect in the advantageous effects of the present invention.
- FIG. 3 is a schematic structural diagram of a multi-tasking display processing apparatus for a mobile terminal according to an embodiment of the present invention.
- the IPC authority is obtained first; the message distribution process is set in the operating system, and the message distribution process communicates with the APP process and the browser process through the IPC mode; and is set in the APP process and the browser process.
- the message distribution process is responsible for process registration and event information routing of the application process and the browser process; the message distribution process serves as a bridge for the APP process to communicate with the browser process, and passes the IPC between the APP process and the browser process.
- the communication mode is adopted, and the communication mode of the socket is adopted; the message sent by the message distribution process includes: an operation instruction sent by the message distribution process to the APP process, and an event message sent by the message distribution process to the browser process.
- the embodiment of the present invention is applicable to an operating system environment of IOS and Android.
- FIG. 1 The implementation flow of the multi-task display processing method of the mobile terminal provided by the embodiment is as shown in FIG. 1 , and the display processing method for the multi-task of the mobile terminal provided by the embodiment includes:
- Step 101 Obtain IPC authority
- Step 102 Set a message distribution process in the operating system, where the message distribution process communicates with the APP process and the browser process by using an IPC manner;
- a message distribution process is set in the operating system, and the message distribution process communicates with the APP process and the browser process through the IPC mode, including:
- the message distribution process maps the message to a socket handle corresponding to the browser process according to the mapping table;
- the message When the browser process sends a message to the message distribution process, the message includes an identity of the application process, and the message distribution process according to the identity of the application process, according to the mapping table The message is mapped to a socket handle corresponding to the identity of the application process.
- Step 103 Set an event listening interface for listening to a message sent by a message distribution process in the application process and the browser process respectively.
- the message sent by the message distribution process includes: an operation indication sent by the message distribution process to the APP process, and an event message sent by the message distribution process to the browser process; specifically:
- the event listening interface of the application process sends a message of the event to the message distribution process, and the event monitoring interface receives the event.
- the message of the message distribution process is parsed and executed by the application process;
- the event listening interface of the browser process processes the received message of the message distribution process, and returns the result to the The message distribution process.
- Step 104 The browser process renders content to be displayed according to the received event message. Go to the pre-generated floating window.
- the method further includes: after the message distribution process is started, the message distribution process maintains the mapping table;
- the mapping table includes: an application process that establishes a connection with the message distribution process, and a correspondence between an identity of the browser process and a socket handle.
- the browser process renders the content to be displayed to the pre-generated floating window according to the received event message, and the method further includes:
- the browser process After receiving the event message of the message distribution process, the browser process extracts the content to be displayed to the pre-generated floating window, and extracts the type of the event from the event message; here, the extracted event The type is related to the information displayed by the floating window and is used for subsequent floating window display.
- the present invention also provides a preferred embodiment of a multi-tasking display processing method for a mobile terminal.
- the final effect of the presentation is that the browser notifies the notification of the incoming call event of the voice call process as a layer (DIV) floating window.
- the form is displayed on the WEB interface, and the user can answer and reject through the floating window.
- the browsing of the WEB is not interrupted, and the user can continuously read the content of the WEB interface while answering the call.
- the implementation process is as follows:
- Step a1 after the mobile device is powered on, it is started before the browser process and the APP process are started.
- the message distribution process after the mobile device is powered on, it is started before the browser process and the APP process are started.
- Step a2 after the browser process starts, establish a connection with the message distribution process, and then send its unique identity and process type to the message distribution process for registration.
- Step a3 after the voice call process is started, establish a connection with the message distribution process, and then send its unique identity and process type to the message distribution process for registration.
- Step a4 when there is an incoming call, the voice call process encapsulates the incoming call event and the Hypertext Markup Language (HTML) interface that needs to be displayed by the browser into a message, and maps to the message distribution process, and the message distribution process maps the message to the browser process.
- HTML Hypertext Markup Language
- the message carries the unique identifier of the voice call process.
- step a5 after receiving the message, the browser process parses and adds a floating DIV window to the document of the current page, and renders the HTML interface of the message and the event content into the DIV window.
- step a6 the user operates the floating window, and the browser encapsulates the user's operation into a response message to the message distribution process, and the response message includes the identifier of the voice call process.
- step a7 the message distribution process maps the response information to the voice call process according to the voice call process identifier in the response detail.
- step a8 after the voice call process parses out the response message, the control operation is performed according to the content.
- a display processing method for multi-tasking of a mobile terminal is rendered to a pre-generated floating window, as shown in FIG. 2, so that the user can not disconnect the application currently being processed.
- the current Internet page forms a floating window display for other applications, and selectively operates other applications through the floating window;
- the embodiment of the present invention uses a lightweight browser to render, saving The occupation of system resources, because it does not need to disconnect the current application, therefore, also improves the consistency of the user in the Internet browsing, the use of WEB technology, also simplifies development and maintenance.
- the embodiment of the present invention further provides display processing of multi-tasking of a mobile terminal.
- the device as shown in FIG. 3, is a multi-tasking display processing device of the mobile terminal, and the device includes:
- the authority obtaining unit 301 is configured to obtain an IPC authority
- the setting unit 302 is configured to set a message distribution process in the operating system, where the message distribution process communicates with the application process and the browser process by using an IPC manner; and the application process and the browser process are respectively set to monitor the message distribution process.
- the message sent by the message distribution process includes: an operation indication sent by the message distribution process to the APP process, and an event message sent by the message distribution process to the browser process;
- the display processing unit 303 is configured to: the browser process renders the content to be displayed to a pre-generated floating window according to the received event message.
- the apparatus further includes: a mapping table maintenance unit configured to maintain the mapping table after the message distribution process is started; wherein the mapping table includes: establishing a connection with the message distribution process Correspondence between the application process and the identity of the browser process and the socket handle.
- the device further includes an execution unit, configured to: after the application process sends a message to the message distribution process, the message distribution process maps the message to the browser process according to the mapping table.
- an execution unit configured to: after the application process sends a message to the message distribution process, the message distribution process maps the message to the browser process according to the mapping table.
- the message When the browser process sends a message to the message distribution process, the message includes the identity of the application process, and the message distribution process is based on the identity of the application process, according to the mapping table. The message is mapped to a socket handle corresponding to the identity of the application process.
- the execution unit is further configured to: after the application process establishes a connection with the message distribution process, when the event occurs, the event listening interface of the application process sends the event message to the message distribution process. After the event listening interface receives the message of the message distribution process, the application process parses and executes;
- the event listening interface processes the received message of the message distribution process, and returns the result to the message distribution process after the processing is completed.
- the device further includes an information extracting unit configured to: after the browser process receives the event message of the message distribution process, before rendering the content to be displayed to the pre-generated floating window, extracting from the event message The type of the event.
- the display processing device for the multi-task of the mobile terminal provided by the embodiment of the present invention, after the authentication unit obtains the IPC authority, the setting unit sets a message distribution process in the operating system, and the message distribution process is performed by the IPC method and the application process and the browser process. Communicating; setting an event listening interface in the application process and the browser process, respectively, for monitoring an operation indication and an event message sent by the message distribution process; the floating window generating unit is configured to use, by the browser process, according to the received event message , rendering the content to be displayed to a pre-generated floating window.
- the authority acquisition unit 301, the setting unit 302, the display processing unit 303, the mapping table maintenance unit, the execution unit, and the information extraction unit may all be configured by a central processing unit (CPU) located in the terminal. , Microprocessor Unit (MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
- CPU central processing unit
- MPU Microprocessor Unit
- DSP Digital Signal Processor
- FPGA Field Programmable Gate Array
- the method and device for displaying a multi-task of a mobile terminal obtains an IPC authority; and sets a message distribution process in an operating system, and the message distribution process communicates with an application process and a browser process through an IPC manner; Setting an event listening interface for listening to a message sent by a message distribution process, respectively, in the application process and the browser process; the browser process renders the content to be displayed to a pre-generated floating window according to the received event message.
- the embodiment of the present invention uses a lightweight browser to render, which saves the occupation of system resources, and therefore does not need to disconnect the current application, therefore, It also improves the consistency of users in Internet browsing, and the WEB technology used also simplifies development and maintenance.
- a display processing method and apparatus for multi-tasking of a mobile terminal acquires IPC authority; and sets a message distribution process in an operating system, and the message distribution process passes an IPC mode and an application (APP) process and a browser process.
- Communicating setting an event listening interface for listening to a message sent by the message distribution process in the application process and the browser process; the browser process rendering the content to be displayed to a pre-generated according to the received event message Floating window; in this way, the user can form a floating window display for other applications on the current Internet page without disconnecting the currently being processed application, and selectively operate other applications through the floating window;
- the embodiment of the present invention uses a lightweight browser to render, which saves the occupation of system resources. Since the current application does not need to be disconnected, the consistency of the user during Internet browsing is also improved.
- the WEB technology used also simplifies development and maintenance.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Disclosed in embodiments of the present invention is a multi-task displaying processing method of a mobile terminal. The method comprises: obtain an interprocess communication (IPC) permission; set a message delivery process in an operating system, the message delivery process performing communication with an application process and a browser process in an IPC manner; separately set an event monitoring interface on the application process and the browser process for monitoring a message sent by the message delivery process; and the browser process renders, according to the received event message, content needing to be displayed to a pre-generated floating window. Also disclosed in the embodiments of the present invention is a multi-task displaying processing apparatus of a mobile terminal.
Description
本发明涉及用户界面(UI)交互技术,尤其涉及一种移动终端多任务的显示处理方法和装置。The present invention relates to user interface (UI) interaction technology, and in particular, to a mobile terminal multi-tasking display processing method and apparatus.
现在占市场主流的移动终端的操作平台,多为苹果公司移动终端的操作系统(IOS)、或谷歌公司移动终端的操作系统--安卓(Android)操作系统,在IOS和Android操作系统中,处理多个需要与用户进行交互的任务进程时,采取的多任务显示方法是完全切换显示,即:在后台建立并保存一个任务栈,栈顶为当前执行的任务进程;在有新的任务进程需要处理时,操作系统会对新的任务进程做入栈操作,之前位于栈顶的任务进程被切换到后台,新的任务进程被放置于所述任务栈的栈顶,栈顶的任务会在前台显示。上述处理过程中,只有位于任务栈顶部的任务才会被前台显示,有新的任务入栈,就需要进行任务切换显示,这种任务切换显示方式颗粒度太大,且还存在以下缺点:Nowadays, the operating platform of mobile terminals that are the mainstream of the market is mostly the operating system (IOS) of Apple's mobile terminal, or the operating system of Android mobile terminal, Android (Android) operating system, which is processed in IOS and Android operating systems. When multiple task processes that need to interact with the user, the multitasking display method is to completely switch the display, that is, create and save a task stack in the background, the top of the stack is the currently executed task process; when there is a new task process When processing, the operating system will perform a stack operation on the new task process. The task process at the top of the stack is switched to the background, the new task process is placed on the top of the stack of the task stack, and the task at the top of the stack is in the foreground. display. In the above process, only the task at the top of the task stack will be displayed by the foreground. If a new task is pushed onto the stack, the task switching display needs to be performed. This task switching display mode is too granular, and has the following disadvantages:
1、完整的任务进程在切换时消耗了过多的资源,例如:内存资源、中央处理器资源、显示资源等,因此,会导致操作系统运行缓慢,不够流畅;1. The complete task process consumes too many resources during the switchover, such as memory resources, CPU resources, display resources, etc., thus causing the operating system to run slowly and not smoothly;
2、用户大部分的时间都是在进行万维网(WEB)浏览,这种完整的重度切换模式会打断用户WEB浏览的连贯性,迫使用户在浏览WEB时进行频繁的切换,降低用户体验;2. Most of the user's time is in the World Wide Web (WEB) browsing. This complete heavy switching mode will interrupt the continuity of the user's WEB browsing, forcing the user to frequently switch when browsing the WEB, reducing the user experience;
3、对于大屏幕的移动终端,在整个屏幕上仅显示一个与用户进行交互的任务进程,显然没有充分的利用屏幕空间。
3. For a large-screen mobile terminal, only one task process that interacts with the user is displayed on the entire screen, and apparently, the screen space is not fully utilized.
发明内容Summary of the invention
鉴于此,为解决现有技术存在的问题,本发明实施例提供一种移动终端多任务的显示处理方法和装置,能使移动终端同时显示多个任务进程的交互界面,保证用户进行WEB浏览时显示的连贯性。In view of this, in order to solve the problems existing in the prior art, the embodiments of the present invention provide a display processing method and apparatus for multi-tasking of a mobile terminal, which enable the mobile terminal to simultaneously display an interactive interface of multiple task processes to ensure that the user performs WEB browsing. The consistency of the display.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种移动终端多任务的显示处理方法,包括:获取进程间通信(IPC)权限;在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与应用进程和浏览器进程进行通信;在所述应用进程和浏览器进程分别设置用于监听消息分发进程发来的消息的事件监听接口;An embodiment of the present invention provides a multi-tasking display processing method for a mobile terminal, including: acquiring inter-process communication (IPC) authority; setting a message distribution process in an operating system, and the message distribution process uses IPC mode and application process and browsing. The process is communicated; an event listener interface for monitoring messages sent by the message distribution process is separately set in the application process and the browser process;
所述方法还包括:所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口。The method further includes the browser process rendering the content to be displayed to a pre-generated floating window according to the received event message.
上述方案中,所述方法还包括:In the above solution, the method further includes:
所述消息分发进程启动后,所述消息分发进程对映射表进行维护;After the message distribution process is started, the message distribution process maintains the mapping table;
其中,所述映射表包括:与所述消息分发进程建立连接的应用进程和浏览器进程的身份标识与套接字(socket)句柄的对应关系。The mapping table includes: an application process that establishes a connection with the message distribution process, and a correspondence between an identity of the browser process and a socket handle.
上述方案中,所述消息分发进程通过IPC方式与应用进程和浏览器进程进行通信,包括:In the above solution, the message distribution process communicates with the application process and the browser process through the IPC mode, including:
所述应用进程将消息发送给所述消息分发进程后,所述消息分发进程根据所述映射表将所述消息映射到所述浏览器进程对应的socket句柄;After the application process sends a message to the message distribution process, the message distribution process maps the message to a socket handle corresponding to the browser process according to the mapping table;
所述浏览器进程将消息发送给所述消息分发进程时,所述消息中包括所述应用进程的身份标识,所述消息分发进程依据所述应用进程的身份标识,根据所述映射表将所述消息映射到所述应用进程的身份标识对应的socket句柄。When the browser process sends a message to the message distribution process, the message includes an identity of the application process, and the message distribution process according to the identity of the application process, according to the mapping table The message is mapped to a socket handle corresponding to the identity of the application process.
上述方案中,所述方法还包括:
In the above solution, the method further includes:
在所述应用进程与所述消息分发进程建立连接后,事件发生时,所述应用进程的所述事件监听接口发送所述事件的消息给所述消息分发进程;在所述事件监听接口接收到所述消息分发进程的消息后,所述应用进程解析并执行;After the application process establishes a connection with the message distribution process, when the event occurs, the event listening interface of the application process sends a message of the event to the message distribution process; and the event monitoring interface receives After the message of the message distribution process, the application process parses and executes;
在所述浏览器进程与所述消息分发进程建立连接后,所述浏览器进程的所述事件监听接口对接收到的所述消息分发进程的消息进行处理,处理完成后将结果反馈给所述消息分发进程。After the browser process establishes a connection with the message distribution process, the event listening interface of the browser process processes the received message of the message distribution process, and returns the result to the The message distribution process.
上述方案中,所述方法还包括:In the above solution, the method further includes:
所述浏览器进程接收到所述消息分发进程的事件消息之后,将需显示的内容渲染到预先生成的浮动窗口之前,从所述事件消息中提取所述事件的类型。After receiving the event message of the message distribution process, the browser process extracts the content to be displayed from the event message before rendering the content to be displayed to the pre-generated floating window.
本发明实施例还提供了一种移动终端多任务的显示处理装置,包括:The embodiment of the invention further provides a display processing device for multi-tasking of a mobile terminal, comprising:
权限获取单元,配置为获取IPC权限;The permission obtaining unit is configured to obtain the IPC authority;
设置单元,配置为在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与应用进程和浏览器进程进行通信;在所述应用进程和浏览器进程分别设置用于监听消息分发进程发来的消息的事件监听接口;a setting unit configured to set a message distribution process in the operating system, where the message distribution process communicates with the application process and the browser process by using an IPC manner; and the application process and the browser process are respectively set to monitor the message distribution process. The event listener interface of the incoming message;
显示处理单元,配置为所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口。The display processing unit is configured to: the browser process renders the content to be displayed to the pre-generated floating window according to the received event message.
上述方案中,所述装置还包括:In the above solution, the device further includes:
映射表维护单元,配置为所述消息分发进程启动后,所述消息分发进程对映射表进行维护;其中,所述映射表包括:与所述消息分发进程建立连接的应用进程和浏览器进程的身份标识与socket句柄的对应关系。a mapping table maintenance unit, configured to maintain the mapping table after the message distribution process is started, where the mapping table includes: an application process and a browser process that establish a connection with the message distribution process The correspondence between the identity and the socket handle.
上述方案中,所述装置还包括执行单元,配置为所述应用进程将消息发送给所述消息分发进程后,所述消息分发进程根据所述映射表,将所述消息映射到所述浏览器进程对应的socket句柄;
In the above solution, the apparatus further includes an execution unit configured to: after the application process sends a message to the message distribution process, the message distribution process maps the message to the browser according to the mapping table. The socket handle corresponding to the process;
所述浏览器进程将消息发送给所述消息分发进程时,所述消息中包括所述应用进程的身份标识,消息分发进程依据所述应用进程的身份标识,跟据所述映射表将所述消息映射到所述应用进程的身份标识对应的socket句柄。When the browser process sends a message to the message distribution process, the message includes the identity of the application process, and the message distribution process is based on the identity of the application process, according to the mapping table. The message is mapped to a socket handle corresponding to the identity of the application process.
上述方案中,所述执行单元,还配置为在所述应用进程与所述消息分发进程建立连接后,事件发生时,所述应用进程的所述事件监听接口发送所述事件的消息给所述消息分发进程,在所述事件监听接口接收到所述消息分发进程的消息后,所述应用进程解析并执行;In the above solution, the execution unit is further configured to: after the application process establishes a connection with the message distribution process, when the event occurs, the event listening interface of the application process sends the event message to the a message distribution process, after the event listening interface receives the message of the message distribution process, the application process parses and executes;
在所述浏览器进程与所述消息分发进程建立连接后,所述浏览器进程的所述事件监听接口对接收到的所述消息分发进程的消息进行处理,处理完成后将结果反馈给所述消息分发进程。After the browser process establishes a connection with the message distribution process, the event listening interface of the browser process processes the received message of the message distribution process, and returns the result to the The message distribution process.
上述方案中,所述装置还包括信息提取单元,配置为在所述浏览器进程接收到所述消息分发进程的事件消息之后,将需显示的内容渲染到预先生成的浮动窗口之前,从所述事件消息中提取所述事件的类型。In the above solution, the device further includes an information extracting unit configured to: after the browser process receives the event message of the message distribution process, before rendering the content to be displayed to the pre-generated floating window, The type of the event is extracted from the event message.
所述权限获取单元、所述设置单元、所述显示处理单元、所述映射表维护单元、所述执行单元、所述信息提取单元在执行处理时,可以采用中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Singnal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)实现。The authority acquisition unit, the setting unit, the display processing unit, the mapping table maintenance unit, the execution unit, and the information extraction unit may use a central processing unit (CPU, Central Processing Unit) when performing processing. ), digital signal processor (DSP, Digital Singnal Processor) or programmable logic array (FPGA, Field-Programmable Gate Array) implementation.
本发明实施例提供的一种移动终端多任务的显示处理方法和装置,获取IPC权限;在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与应用(APP)进程和浏览器进程进行通信;在所述应用进程和浏览器进程分别设置用于监听消息分发进程发来的消息的事件监听接口;所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口;如此,用户可以在不断开当前正在处理的应用程序的同时,在当前互
联网页面对其它应用程序形成浮动窗口显示,并通过浮动窗口对其它应用程序进行选择性操作;与现有的显示技术相比,本发明实施例采用轻量级浏览器渲染,节省了系统资源的占用,由于不需要再断开当前的应用程序,因此,也提高了用户在进行互联网浏览时的连贯性,使用的WEB技术,也简化了开发和维护。A display processing method and apparatus for multi-tasking of a mobile terminal provided by an embodiment of the present invention acquires IPC authority; and sets a message distribution process in an operating system, and the message distribution process passes an IPC mode and an application (APP) process and a browser process. Communicating; setting an event listening interface for listening to a message sent by the message distribution process in the application process and the browser process; the browser process rendering the content to be displayed to a pre-generated according to the received event message Floating window; in this way, the user can currently disconnect each other while not disconnecting the application currently being processed
The networked page forms a floating window display for other applications, and performs selective operations on other applications through the floating window. Compared with the existing display technology, the embodiment of the present invention uses a lightweight browser to render, which saves system resources. Occupation, because it does not need to disconnect the current application, it also improves the user's consistency in Internet browsing, and the WEB technology used also simplifies development and maintenance.
图1为本发明实施例提供的移动终端多任务的显示处理方法的实现流程示意图;FIG. 1 is a schematic flowchart of an implementation process of a multi-tasking display processing method for a mobile terminal according to an embodiment of the present disclosure;
图2为本发明有益效果中的显示效果示意图;2 is a schematic view showing a display effect in the advantageous effects of the present invention;
图3为本发明实施例提供的移动终端多任务显示处理装置的结构示意图。FIG. 3 is a schematic structural diagram of a multi-tasking display processing apparatus for a mobile terminal according to an embodiment of the present invention.
在本发明实施例中,先获取IPC权限;在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与APP进程和浏览器进程进行通信;在所述APP进程和浏览器进程设置用于监听消息分发进程发来的消息的事件监听接口;所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口。In the embodiment of the present invention, the IPC authority is obtained first; the message distribution process is set in the operating system, and the message distribution process communicates with the APP process and the browser process through the IPC mode; and is set in the APP process and the browser process. An event listening interface for monitoring messages sent by the message distribution process; the browser process renders the content to be displayed to a pre-generated floating window according to the received event message.
这里,所述消息分发进程负责应用进程和浏览器进程的进程注册及事件信息路由;所述消息分发进程作为APP进程与浏览器进程沟通的桥梁,与APP进程以及浏览器进程之间通过IPC的方式进行通讯,并采用socket的通讯模式;所述消息分发进程发来的消息包括:消息分发进程向APP进程发送的操作指示、消息分发进程向浏览器进程发送的事件消息。Here, the message distribution process is responsible for process registration and event information routing of the application process and the browser process; the message distribution process serves as a bridge for the APP process to communicate with the browser process, and passes the IPC between the APP process and the browser process. The communication mode is adopted, and the communication mode of the socket is adopted; the message sent by the message distribution process includes: an operation instruction sent by the message distribution process to the APP process, and an event message sent by the message distribution process to the browser process.
其中,本发明实施例适用于IOS和Android的操作系统环境。The embodiment of the present invention is applicable to an operating system environment of IOS and Android.
下面结合附图和实施例对本发明作进一步的详细说明,图1为本发明
实施例提供的移动终端多任务的显示处理方法的实现流程示意图,如图1所示,本实施例提供的一种移动终端多任务的显示处理方法,包括:The present invention will be further described in detail below with reference to the accompanying drawings and embodiments, FIG.
The implementation flow of the multi-task display processing method of the mobile terminal provided by the embodiment is as shown in FIG. 1 , and the display processing method for the multi-task of the mobile terminal provided by the embodiment includes:
步骤101,获取IPC权限;Step 101: Obtain IPC authority;
步骤102,在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与APP进程和浏览器进程进行通信;Step 102: Set a message distribution process in the operating system, where the message distribution process communicates with the APP process and the browser process by using an IPC manner;
这里,在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与APP进程和浏览器进程进行通信,包括:Here, a message distribution process is set in the operating system, and the message distribution process communicates with the APP process and the browser process through the IPC mode, including:
所述应用进程将消息发送给所述消息分发进程后,所述消息分发进程根据所述映射表,将所述消息映射到所述浏览器进程对应的socket句柄;After the application process sends a message to the message distribution process, the message distribution process maps the message to a socket handle corresponding to the browser process according to the mapping table;
所述浏览器进程将消息发送给所述消息分发进程时,所述消息中包括所述应用进程的身份标识,所述消息分发进程依据所述应用进程的身份标识,跟据所述映射表将所述消息映射到所述应用进程的身份标识对应的socket句柄。When the browser process sends a message to the message distribution process, the message includes an identity of the application process, and the message distribution process according to the identity of the application process, according to the mapping table The message is mapped to a socket handle corresponding to the identity of the application process.
步骤103,在所述应用进程和浏览器进程分别设置用于监听消息分发进程发来的消息的事件监听接口;Step 103: Set an event listening interface for listening to a message sent by a message distribution process in the application process and the browser process respectively.
这里,所述消息分发进程发来的消息包括:消息分发进程向APP进程发送的操作指示、消息分发进程向浏览器进程发送的事件消息;具体的:Here, the message sent by the message distribution process includes: an operation indication sent by the message distribution process to the APP process, and an event message sent by the message distribution process to the browser process; specifically:
在所述应用进程与所述消息分发进程建立连接后,事件发生时,所述应用进程的所述事件监听接口发送所述事件的消息给所述消息分发进程,所述事件监听接口在接收到所述消息分发进程的消息后,由所述应用进程解析并执行;After the application process establishes a connection with the message distribution process, when the event occurs, the event listening interface of the application process sends a message of the event to the message distribution process, and the event monitoring interface receives the event. After the message of the message distribution process is parsed and executed by the application process;
在所述浏览器进程与所述消息分发进程建立连接后,所述浏览器进程的所述事件监听接口对接收到的所述消息分发进程的消息进行处理,处理完成后将结果反馈给所述消息分发进程。After the browser process establishes a connection with the message distribution process, the event listening interface of the browser process processes the received message of the message distribution process, and returns the result to the The message distribution process.
步骤104,所述浏览器进程根据收到的事件消息,将需显示的内容渲染
到预先生成的浮动窗口。Step 104: The browser process renders content to be displayed according to the received event message.
Go to the pre-generated floating window.
这里,所述方法还包括:所述消息分发进程启动后,所述消息分发进程对映射表进行维护;Here, the method further includes: after the message distribution process is started, the message distribution process maintains the mapping table;
其中,所述映射表包括:与所述消息分发进程建立连接的应用进程和浏览器进程的身份标识与socket句柄的对应关系。The mapping table includes: an application process that establishes a connection with the message distribution process, and a correspondence between an identity of the browser process and a socket handle.
具体应用进程和浏览器进程的身份标识与socket句柄的对应关系可如表1所示。The correspondence between the specific application process and the identity of the browser process and the socket handle can be as shown in Table 1.
标识Identification | socket句柄Socket handle |
浏览器Browser | 句柄1Handle 1 |
APP进程1APP process 1 | 句柄2Handle 2 |
APP进程2APP process 2 | 句柄3Handle 3 |
表1Table 1
这里,所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口,所述方法还包括:Here, the browser process renders the content to be displayed to the pre-generated floating window according to the received event message, and the method further includes:
所述浏览器进程接收到所述消息分发进程的事件消息之后,将需显示的内容渲染到预先生成的浮动窗口之前,从所述事件消息中提取所述事件的类型;这里,所提取的事件类型与浮动窗口显示的相关信息有关,用于后续的浮动窗口显示。After receiving the event message of the message distribution process, the browser process extracts the content to be displayed to the pre-generated floating window, and extracts the type of the event from the event message; here, the extracted event The type is related to the information displayed by the floating window and is used for subsequent floating window display.
本发明还提供了一种移动终端多任务的显示处理方法的较佳实施例,在图2中,呈现的最终效果,浏览器将语音通话进程的来电事件的通知以图层(DIV)浮动窗口的形式显示在WEB界面上,用户可以通过所述的浮动窗口进行接听以及拒绝,同时,WEB的浏览没有被中断,用户在接听电话的同时不间断的进行WEB界面内容的阅读。The present invention also provides a preferred embodiment of a multi-tasking display processing method for a mobile terminal. In FIG. 2, the final effect of the presentation is that the browser notifies the notification of the incoming call event of the voice call process as a layer (DIV) floating window. The form is displayed on the WEB interface, and the user can answer and reject through the floating window. At the same time, the browsing of the WEB is not interrupted, and the user can continuously read the content of the WEB interface while answering the call.
现以语音通话进程作为APP进程为例,具体阐述实施流程如下:Taking the voice call process as an APP process as an example, the implementation process is as follows:
步骤a1,移动设备开机后启动在浏览器进程与APP进程启动之前,启
动消息分发进程。Step a1, after the mobile device is powered on, it is started before the browser process and the APP process are started.
The message distribution process.
步骤a2,浏览器进程启动后,与消息分发进程建立连接,然后将自身的唯一身份标识以及进程类型发送给消息分发进程进行注册。Step a2, after the browser process starts, establish a connection with the message distribution process, and then send its unique identity and process type to the message distribution process for registration.
步骤a3,语音通话进程启动后,与消息分发进程建立连接,然后将自身的唯一身份标识以及进程类型发送给消息分发进程进行注册。Step a3, after the voice call process is started, establish a connection with the message distribution process, and then send its unique identity and process type to the message distribution process for registration.
步骤a4,当有来电时,语音通话进程将来电事件以及需要浏览器显示的超文本标记语言(HTML)界面封装成消息后,映射到消息分发进程,消息分发进程将此消息映射给浏览器进程,消息中携带了语音通话进程的唯一标识。Step a4, when there is an incoming call, the voice call process encapsulates the incoming call event and the Hypertext Markup Language (HTML) interface that needs to be displayed by the browser into a message, and maps to the message distribution process, and the message distribution process maps the message to the browser process. The message carries the unique identifier of the voice call process.
步骤a5,浏览器进程接到此消息后,进行解析,并在当前页面的文档(document)上增加一个浮动的DIV窗口,将此消息的HTML界面以及事件内容渲染到DIV窗口中。In step a5, after receiving the message, the browser process parses and adds a floating DIV window to the document of the current page, and renders the HTML interface of the message and the event content into the DIV window.
步骤a6,用户操作此浮动窗口,浏览器会将用户的操作封装成响应消息传递给消息分发进程,响应消息中包含了语音通话进程的标识。In step a6, the user operates the floating window, and the browser encapsulates the user's operation into a response message to the message distribution process, and the response message includes the identifier of the voice call process.
步骤a7,消息分发进程根据响应详细中的语音通话进程标识,将响应信息映射到语音通话进程。In step a7, the message distribution process maps the response information to the voice call process according to the voice call process identifier in the response detail.
步骤a8,语音通话进程解析出响应消息后,根据内容进行控制操作。In step a8, after the voice call process parses out the response message, the control operation is performed according to the content.
本发明实施例提供的一种移动终端多任务的显示处理方法,将需显示的内容渲染到预先生成的浮动窗口,如图2所示,如此,用户可以在不断开当前正在处理的应用程序的同时,在当前互联网页面对其它应用程序形成浮动窗口显示,并通过浮动窗口对其它应用程序进行选择性操作;与现有的显示技术相比,本发明实施例采用轻量级浏览器渲染,节省了系统资源的占用,由于不需要再断开当前的应用程序,因此,也提高了用户在进行互联网浏览时的连贯性,使用的WEB技术,也简化了开发和维护。A display processing method for multi-tasking of a mobile terminal according to an embodiment of the present invention, the content to be displayed is rendered to a pre-generated floating window, as shown in FIG. 2, so that the user can not disconnect the application currently being processed. At the same time, the current Internet page forms a floating window display for other applications, and selectively operates other applications through the floating window; compared with the existing display technology, the embodiment of the present invention uses a lightweight browser to render, saving The occupation of system resources, because it does not need to disconnect the current application, therefore, also improves the consistency of the user in the Internet browsing, the use of WEB technology, also simplifies development and maintenance.
为实现上述方法,本发明实施例还提供了移动终端多任务的显示处理
装置,如图3所示,该移动终端多任务的显示处理装置,所述装置包括:In order to implement the foregoing method, the embodiment of the present invention further provides display processing of multi-tasking of a mobile terminal.
The device, as shown in FIG. 3, is a multi-tasking display processing device of the mobile terminal, and the device includes:
权限获取单元301,配置为获取IPC权限;The authority obtaining unit 301 is configured to obtain an IPC authority;
设置单元302,配置为在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与应用进程和浏览器进程进行通信;在所述应用进程和浏览器进程分别设置用于监听消息分发进程发来的消息的事件监听接口;The setting unit 302 is configured to set a message distribution process in the operating system, where the message distribution process communicates with the application process and the browser process by using an IPC manner; and the application process and the browser process are respectively set to monitor the message distribution process. The event listener interface of the sent message;
其中,所述消息分发进程发来的消息包括:消息分发进程向APP进程发送的操作指示、消息分发进程向浏览器进程发送的事件消息;The message sent by the message distribution process includes: an operation indication sent by the message distribution process to the APP process, and an event message sent by the message distribution process to the browser process;
显示处理单元303,配置为所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口。The display processing unit 303 is configured to: the browser process renders the content to be displayed to a pre-generated floating window according to the received event message.
这里,所述装置还包括:映射表维护单元,配置为所述消息分发进程启动后,所述消息分发进程对映射表进行维护;其中,所述映射表包括:与所述消息分发进程建立连接的应用进程和浏览器进程的身份标识与socket句柄的对应关系。Here, the apparatus further includes: a mapping table maintenance unit configured to maintain the mapping table after the message distribution process is started; wherein the mapping table includes: establishing a connection with the message distribution process Correspondence between the application process and the identity of the browser process and the socket handle.
所述装置还包括执行单元,具体配置为所述应用进程将消息发送给所述消息分发进程后,所述消息分发进程根据所述映射表,将所述消息映射到所述浏览器进程对应的socket句柄;The device further includes an execution unit, configured to: after the application process sends a message to the message distribution process, the message distribution process maps the message to the browser process according to the mapping table. Socket handle
所述浏览器进程将消息发送给所述消息分发进程时,所述消息中包括所述应用进程的身份标识,消息分发进程依据所述应用进程的身份标识,跟据所述映射表将所述消息映射到所述应用进程的身份标识对应的socket句柄。When the browser process sends a message to the message distribution process, the message includes the identity of the application process, and the message distribution process is based on the identity of the application process, according to the mapping table. The message is mapped to a socket handle corresponding to the identity of the application process.
所述执行单元,还配置为在所述应用进程与所述消息分发进程建立连接后,事件发生时,所述应用进程的所述事件监听接口发送所述事件的消息给所述消息分发进程,在所述事件监听接口接收到所述消息分发进程的消息后,所述应用进程解析并执行;The execution unit is further configured to: after the application process establishes a connection with the message distribution process, when the event occurs, the event listening interface of the application process sends the event message to the message distribution process. After the event listening interface receives the message of the message distribution process, the application process parses and executes;
在所述浏览器进程与所述消息分发进程建立连接后,所述浏览器进程
的所述事件监听接口对接收到的所述消息分发进程的消息进行处理,处理完成后将结果反馈给所述消息分发进程。After the browser process establishes a connection with the message distribution process, the browser process
The event listening interface processes the received message of the message distribution process, and returns the result to the message distribution process after the processing is completed.
所述装置还包括信息提取单元,配置为在所述浏览器进程接收到所述消息分发进程的事件消息之后,将需显示的内容渲染到预先生成的浮动窗口之前,从所述事件消息中提取所述事件的类型。The device further includes an information extracting unit configured to: after the browser process receives the event message of the message distribution process, before rendering the content to be displayed to the pre-generated floating window, extracting from the event message The type of the event.
本发明实施例提供的移动终端多任务的显示处理装置,鉴权单元获取IPC权限后,设置单元在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与应用进程和浏览器进程进行通信;在所述应用进程和浏览器进程分别设置事件监听接口,分别用于监听消息分发进程发来的操作指示和事件消息;浮动窗口生成单元用于所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口。The display processing device for the multi-task of the mobile terminal provided by the embodiment of the present invention, after the authentication unit obtains the IPC authority, the setting unit sets a message distribution process in the operating system, and the message distribution process is performed by the IPC method and the application process and the browser process. Communicating; setting an event listening interface in the application process and the browser process, respectively, for monitoring an operation indication and an event message sent by the message distribution process; the floating window generating unit is configured to use, by the browser process, according to the received event message , rendering the content to be displayed to a pre-generated floating window.
另外,在实际应用中,所述权限获取单元301、设置单元302、显示处理单元303、映射表维护单元、执行单元、信息提取单元均可由位于终端中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In addition, in an actual application, the authority acquisition unit 301, the setting unit 302, the display processing unit 303, the mapping table maintenance unit, the execution unit, and the information extraction unit may all be configured by a central processing unit (CPU) located in the terminal. , Microprocessor Unit (MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
本发明实施例提供的一种移动终端多任务的显示处理方法和装置,获取IPC权限;在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与应用进程和浏览器进程进行通信;在所述应用进程和浏览器进程分别设置用于监听消息分发进程发来的消息的事件监听接口;所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口;如此,用户可以在不断开当前正在处理的应用程序的同时,在当前互联网页面对其它应用程序形成浮动窗口显示,并通过浮动窗口对其它应用程序进行选择性操作;与现有的显示技术相比,本发明实施例采用轻量级浏览器渲染,节省了系统资源的占用,由于不需要再断开当前的应用程序,因此,
也提高了用户在进行互联网浏览时的连贯性,使用的WEB技术,也简化了开发和维护。The method and device for displaying a multi-task of a mobile terminal according to an embodiment of the present invention obtains an IPC authority; and sets a message distribution process in an operating system, and the message distribution process communicates with an application process and a browser process through an IPC manner; Setting an event listening interface for listening to a message sent by a message distribution process, respectively, in the application process and the browser process; the browser process renders the content to be displayed to a pre-generated floating window according to the received event message. In this way, the user can form a floating window display for other applications on the current Internet page without disconnecting the currently being processed application, and selectively operate other applications through the floating window; compared with the existing display technology In contrast, the embodiment of the present invention uses a lightweight browser to render, which saves the occupation of system resources, and therefore does not need to disconnect the current application, therefore,
It also improves the consistency of users in Internet browsing, and the WEB technology used also simplifies development and maintenance.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.
本发明实施例提供的一种移动终端多任务的显示处理方法和装置,获取IPC权限;在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与应用(APP)进程和浏览器进程进行通信;在所述应用进程和浏览器进程分别设置用于监听消息分发进程发来的消息的事件监听接口;所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口;如此,用户可以在不断开当前正在处理的应用程序的同时,在当前互联网页面对其它应用程序形成浮动窗口显示,并通过浮动窗口对其它应用程序进行选择性操作;与现有的显示技术相比,本发明实施例采用轻量级浏览器渲染,节省了系统资源的占用,由于不需要再断开当前的应用程序,因此,也提高了用户在进行互联网浏览时的连贯性,使用的WEB技术,也简化了开发和维护。
A display processing method and apparatus for multi-tasking of a mobile terminal provided by an embodiment of the present invention acquires IPC authority; and sets a message distribution process in an operating system, and the message distribution process passes an IPC mode and an application (APP) process and a browser process. Communicating; setting an event listening interface for listening to a message sent by the message distribution process in the application process and the browser process; the browser process rendering the content to be displayed to a pre-generated according to the received event message Floating window; in this way, the user can form a floating window display for other applications on the current Internet page without disconnecting the currently being processed application, and selectively operate other applications through the floating window; Compared with the display technology, the embodiment of the present invention uses a lightweight browser to render, which saves the occupation of system resources. Since the current application does not need to be disconnected, the consistency of the user during Internet browsing is also improved. The WEB technology used also simplifies development and maintenance.
Claims (10)
- 一种移动终端多任务的显示处理方法,所述方法包括:获取进程间通信IPC权限;在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与应用进程和浏览器进程进行通信;在所述应用进程和浏览器进程分别设置用于监听消息分发进程发来的消息的事件监听接口;A method for displaying a multi-task of a mobile terminal, the method comprising: acquiring an inter-process communication IPC authority; setting a message distribution process in an operating system, wherein the message distribution process communicates with an application process and a browser process by using an IPC method; Setting an event listening interface for listening to a message sent by the message distribution process in the application process and the browser process respectively;所述方法还包括:所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口。The method further includes the browser process rendering the content to be displayed to a pre-generated floating window according to the received event message.
- 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:所述消息分发进程启动后,所述消息分发进程对映射表进行维护;After the message distribution process is started, the message distribution process maintains the mapping table;其中,所述映射表包括:与所述消息分发进程建立连接的应用进程和浏览器进程的身份标识与套接字socket句柄的对应关系。The mapping table includes: an application process that establishes a connection with the message distribution process, and a correspondence between an identity of the browser process and a socket handle.
- 根据权利要求2所述的方法,其中,所述消息分发进程通过IPC方式与应用进程和浏览器进程进行通信,包括:The method of claim 2, wherein the message distribution process communicates with the application process and the browser process by means of IPC, including:所述应用进程将消息发送给所述消息分发进程后,所述消息分发进程根据所述映射表将所述消息映射到所述浏览器进程对应的socket句柄;After the application process sends a message to the message distribution process, the message distribution process maps the message to a socket handle corresponding to the browser process according to the mapping table;所述浏览器进程将消息发送给所述消息分发进程时,所述消息中包括所述应用进程的身份标识,所述消息分发进程依据所述应用进程的身份标识,根据所述映射表将所述消息映射到所述应用进程的身份标识对应的socket句柄。When the browser process sends a message to the message distribution process, the message includes an identity of the application process, and the message distribution process according to the identity of the application process, according to the mapping table The message is mapped to a socket handle corresponding to the identity of the application process.
- 根据权利要求3所述的方法,其中,所述方法还包括:The method of claim 3, wherein the method further comprises:在所述应用进程与所述消息分发进程建立连接后,事件发生时,所述应用进程的所述事件监听接口发送所述事件的消息给所述消息分发进程;在所述事件监听接口接收到所述消息分发进程的消息后,所述应用进程解析并执行;After the application process establishes a connection with the message distribution process, when the event occurs, the event listening interface of the application process sends a message of the event to the message distribution process; and the event monitoring interface receives After the message of the message distribution process, the application process parses and executes;在所述浏览器进程与所述消息分发进程建立连接后,所述浏览器进程 的所述事件监听接口对接收到的所述消息分发进程的消息进行处理,处理完成后将结果反馈给所述消息分发进程。After the browser process establishes a connection with the message distribution process, the browser process The event listening interface processes the received message of the message distribution process, and returns the result to the message distribution process after the processing is completed.
- 根据权利要求1至4任一项所述的方法,其中,所述方法还包括:The method of any of claims 1 to 4, wherein the method further comprises:所述浏览器进程接收到所述消息分发进程的事件消息之后,将需显示的内容渲染到预先生成的浮动窗口之前,从所述事件消息中提取所述事件的类型。After receiving the event message of the message distribution process, the browser process extracts the content to be displayed from the event message before rendering the content to be displayed to the pre-generated floating window.
- 一种移动终端多任务的显示处理装置,所述装置包括:A display processing device for multi-tasking of a mobile terminal, the device comprising:权限获取单元,配置为获取IPC权限;The permission obtaining unit is configured to obtain the IPC authority;设置单元,配置为在操作系统中设置消息分发进程,所述消息分发进程通过IPC方式与应用进程和浏览器进程进行通信;在所述应用进程和浏览器进程分别设置用于监听消息分发进程发来的消息的事件监听接口;a setting unit configured to set a message distribution process in the operating system, where the message distribution process communicates with the application process and the browser process by using an IPC manner; and the application process and the browser process are respectively set to monitor the message distribution process. The event listener interface of the incoming message;显示处理单元,配置为所述浏览器进程根据收到的事件消息,将需显示的内容渲染到预先生成的浮动窗口。The display processing unit is configured to: the browser process renders the content to be displayed to the pre-generated floating window according to the received event message.
- 根据权利要求6所述的装置,其中,所述装置还包括:The apparatus of claim 6 wherein said apparatus further comprises:映射表维护单元,配置为所述消息分发进程启动后,所述消息分发进程对映射表进行维护;其中,所述映射表包括:与所述消息分发进程建立连接的应用进程和浏览器进程的身份标识与socket句柄的对应关系。a mapping table maintenance unit, configured to maintain the mapping table after the message distribution process is started, where the mapping table includes: an application process and a browser process that establish a connection with the message distribution process The correspondence between the identity and the socket handle.
- 根据权利要求7所述的装置,其中,所述装置还包括执行单元,配置为所述应用进程将消息发送给所述消息分发进程后,所述消息分发进程根据所述映射表,将所述消息映射到所述浏览器进程对应的socket句柄;The apparatus of claim 7, wherein the apparatus further comprises an execution unit configured to: after the application process sends a message to the message distribution process, the message distribution process according to the mapping table The message is mapped to a socket handle corresponding to the browser process;所述浏览器进程将消息发送给所述消息分发进程时,所述消息中包括所述应用进程的身份标识,消息分发进程依据所述应用进程的身份标识,跟据所述映射表将所述消息映射到所述应用进程的身份标识对应的socket句柄。When the browser process sends a message to the message distribution process, the message includes the identity of the application process, and the message distribution process is based on the identity of the application process, according to the mapping table. The message is mapped to a socket handle corresponding to the identity of the application process.
- 根据权利要求8所述的装置,其中,所述执行单元,还配置为在所 述应用进程与所述消息分发进程建立连接后,事件发生时,所述应用进程的所述事件监听接口发送所述事件的消息给所述消息分发进程,在所述事件监听接口接收到所述消息分发进程的消息后,所述应用进程解析并执行;The apparatus of claim 8, wherein the execution unit is further configured to be After the application process establishes a connection with the message distribution process, when the event occurs, the event listening interface of the application process sends a message of the event to the message distribution process, and the event monitoring interface receives the After the message of the message distribution process, the application process parses and executes;在所述浏览器进程与所述消息分发进程建立连接后,所述浏览器进程的所述事件监听接口对接收到的所述消息分发进程的消息进行处理,处理完成后将结果反馈给所述消息分发进程。After the browser process establishes a connection with the message distribution process, the event listening interface of the browser process processes the received message of the message distribution process, and returns the result to the The message distribution process.
- 根据权利要求6至9任一项所述的装置,其中,所述装置还包括信息提取单元,配置为在所述浏览器进程接收到所述消息分发进程的事件消息之后,将需显示的内容渲染到预先生成的浮动窗口之前,从所述事件消息中提取所述事件的类型。 The apparatus according to any one of claims 6 to 9, wherein the apparatus further comprises an information extracting unit configured to display the content to be displayed after the browser process receives the event message of the message distribution process The type of the event is extracted from the event message before rendering to a pre-generated floating window.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510737614.2 | 2015-11-03 | ||
CN201510737614.2A CN106648570A (en) | 2015-11-03 | 2015-11-03 | Multi-task display processing method and device for mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017076136A1 true WO2017076136A1 (en) | 2017-05-11 |
Family
ID=58661557
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/100195 WO2017076136A1 (en) | 2015-11-03 | 2016-09-26 | Multi-task displaying processing method and apparatus of mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106648570A (en) |
WO (1) | WO2017076136A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737491B (en) * | 2018-07-20 | 2024-04-05 | 北京字节跳动网络技术有限公司 | Notification display method, device, equipment and computer readable storage medium |
CN111694674B (en) * | 2019-03-13 | 2023-08-08 | 北京字节跳动网络技术有限公司 | Message distribution processing method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102970421A (en) * | 2012-11-09 | 2013-03-13 | 广东欧珀移动通信有限公司 | Method and system for controlling information display for mobile terminal |
CN103455380A (en) * | 2012-06-05 | 2013-12-18 | 上海斐讯数据通信技术有限公司 | Multi-process communication system and establishment and communication method thereof |
CN104580670A (en) * | 2013-10-23 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Method for processing notification message of mobile terminal and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104618560B (en) * | 2013-11-05 | 2020-02-14 | 中兴通讯股份有限公司 | Incoming call prompt processing method and device for mobile terminal |
-
2015
- 2015-11-03 CN CN201510737614.2A patent/CN106648570A/en not_active Withdrawn
-
2016
- 2016-09-26 WO PCT/CN2016/100195 patent/WO2017076136A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103455380A (en) * | 2012-06-05 | 2013-12-18 | 上海斐讯数据通信技术有限公司 | Multi-process communication system and establishment and communication method thereof |
CN102970421A (en) * | 2012-11-09 | 2013-03-13 | 广东欧珀移动通信有限公司 | Method and system for controlling information display for mobile terminal |
CN104580670A (en) * | 2013-10-23 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Method for processing notification message of mobile terminal and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106648570A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10805380B2 (en) | Data transmission method and device | |
WO2021143182A1 (en) | Game processing method and apparatus, electronic device, and computer-readable storage medium | |
US9801146B2 (en) | Terminal and synchronization control method among terminals | |
AU2014403138B2 (en) | Terminal, server, and terminal control method | |
US10019220B2 (en) | Control method and apparatus thereof | |
WO2015184770A1 (en) | Information processing method, system and terminal | |
CN104935497A (en) | Communication session method and device | |
TW201830219A (en) | Instant messaging message prompting method, and instant messaging client | |
CN102646031A (en) | Method for controlling large screen to display contents by mobile terminal | |
WO2016061968A1 (en) | Voice control method and device | |
CN104035683A (en) | Split-screen multitask interaction method for communication terminal | |
CN104639423A (en) | Information interaction method, information interaction device and terminals | |
CN105515937B (en) | Instant messaging method, terminal, server and system | |
CN106178499B (en) | NFC-based mobile terminal game operation control implementation method and system | |
WO2017076136A1 (en) | Multi-task displaying processing method and apparatus of mobile terminal | |
CN104122979A (en) | Method and device for control over large screen through voice | |
CN104778051A (en) | Skin change method and system commonly used in iOS (Internet Operating System) and Android system | |
CN113691602A (en) | Service processing method, system, device, equipment and medium based on cloud mobile phone | |
CN105446680A (en) | Screen mirroring and extension methods and systems and terminal device | |
EP4242826A1 (en) | Enhanced screen sharing method and system and electronic device | |
CN110474948B (en) | Interaction method between network devices | |
CN110445625B (en) | Large-screen broadcast control method and system | |
EP4340376A3 (en) | Image processing method and apparatus and terminal device | |
CN105491223B (en) | Information processing method, related equipment and system | |
BR112017007607B1 (en) | INTERFACE AND DEVICE SHARING METHOD ENDS |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16861404 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16861404 Country of ref document: EP Kind code of ref document: A1 |