IP Library Granted Patent US 11,868,785
Granted Patent B2
US 11,868,785 · App. 16/354,371 · Granted Jan 9, 2024

Application program page processing method and device

Inventors: Hao Hu (Shenzhen, CN); Haojun Hu (Shenzhen, CN); Qingjie Lin (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06F9/44505G06F9/44521G06F9/44578G06F9/542
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,868,785
App. No.
16/354,371
Granted
Jan 9, 2024
Kind
B2
Abstract

Aspects of the disclosure provide a method and an apparatus for information processing. For example, the apparatus includes a storage medium, processing circuitry and network interface circuitry. The storage medium stores a first application program, and other application programs that are downloaded via the network interface circuitry. The processing circuitry executes the first application program in an operating system to provide a running environment. Further, the processing circuitry executes a second application program in the running environment to start a logic process and a first view process corresponding to a first view page of the second application program. The logic process and the first view process respectively interface with the running environment. The logic process generates initial first page data, and the initial first page data is transferred from the logic process to the first view process. The first view page is rendered in the first view process.

Claims (87)

1. A method for information processing, comprising:

executing, by processing circuitry of a terminal device, a first application program in an operating system, the execution of the first application program providing a running environment for other application programs;

executing, by the processing circuitry, a second application program in the running environment that is provided by the execution of the first application program, the execution of the second application program starting a first process and a second process corresponding to the second application program;

forwarding, by the processing circuitry and via the running environment that is provided by the execution of the first application program, first page data from the first process of the second application program that generates the first page data to the second process of the second application program;

rendering, by the processing circuitry and in the second process, a first view page according to the first page data;

invoking, by the first process of the second application program, an application programming interface (API) provided by the operating system through an API provided by the first application program to generate updated page data;

forwarding, by the processing circuitry and via the running environment that is provided by the execution of the first application program, the updated page data for a portion of the first view page from the first process to the second process; and

re-rendering, by the processing circuitry and in the second process, the portion of the first view page according to the updated page data for the portion of the first view page.

2. The method of claim 1 , further comprising:

acquiring, by the processing circuitry and in the running environment that is provided by the execution of the first application program, global configuration codes of the second application program based on a program identifier of the second application program;

starting, by the processing circuitry and in the running environment that is provided by the execution of the first application program, the first process and the second process according to the global configuration codes of the second application program;

registering, by the processing circuitry and in the first process, first logic code of the first view page when the first process of the second application program starts;

acquiring, by the processing circuitry and in the first process, the first page data of the first view page, according to the first logic code, after completion of an initialization in the second process; and

sending, by the processing circuitry and via the running environment, the first page data of the first view page, from the first process to the second process corresponding to the first view page.

3. The method of claim 2 , further comprising:

starting, by the processing circuitry and in the running environment that is provided by the execution of the first application program, the first process according to a global logic code in the global configuration codes of the second application program; and

starting, by the processing circuitry and in the running environment that is provided by the execution of the first application program, the second process according to a global feature of the first view page that is defined by global page configuration codes in the global configuration codes of the second application program, the global page configuration codes defining global features for view pages of the second application program.

4. The method of claim 1 , further comprising:

acquiring, by the processing circuitry and in the second process, a public component from the running environment that is provided by the execution of the first application program, according to a page configuration file of the second application program, the public component being shared by different application programs that are executed in the running environment, wherein

the rendering includes rendering, by the processing circuitry and in the second process, the first view page according to the public component and the first page data of the first view page.

5. The method of claim 4 , further comprising:

acquiring, by the processing circuitry and in the second process, a selection event associated with the public component;

forwarding, by the processing circuitry and via the running environment that is provided by the execution of the first application program, the selection event from the second process to the first process; and

generating, by the processing circuitry and in the first process of the second application program via the API provided by the running environment of the first application program, the updated page data for the portion of the first view page in response to the selection event, according to first logic code of the first view page.

6. The method of claim 1 , further comprising:

acquiring, by the processing circuitry and in the first process, an event that triggers a switching from the first view page to a second view page;

acquiring, by the processing circuitry and in the first process, second page data of the second view page;

transferring, by the processing circuitry and via the running environment that is provided by the execution of the first application program, the second page data of the second view page from the first process to a third process corresponding to the second view page, the execution of the second application program in the running environment starting the third process after the second process starts; and

rendering, by the processing circuitry and in the third process, the second view page according to the second page data of the second view page.

7. The method of claim 6 , further comprising:

when the second view page is a new view page,

acquiring, by the processing circuitry and in the first process, the second page data according to first logic code of the first view page; and

loading, by the processing circuitry and in the first process, the second page data into a page stack that buffers view pages.

8. The method of claim 7 , further comprising:

when the second view page has been accessed previously,

acquiring, by the processing circuitry and in the first process, the second page data from the page stack, the page stack buffering the view pages that have been accessed previously.

9. The method of claim 1 , further comprising:

triggering, in the running environment, a state change of the first view page from a first state to a second state; and

performing, by the processing circuitry, an operation that is defined in first logic code of the first view page by a function associated with the second state.

10. An apparatus, comprising:

a storage medium storing a first application program; and

processing circuitry configured to:

execute the first application program in an operating system, the execution of the first application program providing a running environment for other application programs;

execute a second application program in the running environment that is provided by the execution of the first application program, the execution of the second application program starting a first process and a second process corresponding to the second application program;

forward, via the running environment that is provided by the execution of the first application program, first page data from the first process of the second application program that generates the first page data to the second process of the second application program;

render, in the second process, a first view page according to the first page data;

invoke, by the first process of the second application program, an application programming interface (API) provided by the operating system through an API provided by the first application program to generate updated page data;

forward, via the running environment that is provided by the execution of the first application program, the updated page data for a portion of the first view page from the first process to the second process; and

re-render, in the second process, the portion of the first view page according to the updated page data.

11. The apparatus of claim 10 , wherein the processing circuitry is further configured to:

acquire, in the running environment that is provided by the execution of the first application program, global configuration codes of the second application program based on a program identifier of the second application program;

start, in the running environment that is provided by the execution of the first application program, the first process and the second process according to the global configuration codes of the second application program;

register, in the first process, first logic code of the first view page when the first process of the second application program starts;

acquire, in the first process, the first page data of the first view page, according to the first logic code, after completion of an initialization in the second process; and

send, via the running environment, the first page data of the first view page, from the first process to the second process corresponding to the first view page.

12. The apparatus of claim 11 , wherein the processing circuitry is further configured to:

start, in the running environment that is provided by the execution of the first application program, the first process according to a global logic code in the global configuration codes of the second application program; and

start, in the running environment that is provided by the execution of the first application program, the second process according to a global feature of the first view page that is defined by global page configuration codes in the global configuration codes of the second application program, the global page configuration codes defining global features for view pages of the second application program.

13. The apparatus of claim 10 , wherein the processing circuitry is further configured to:

acquire, in the second process, a public component from the running environment that is provided by the execution of the first application program, according to a page configuration file of the second application program, the public component being shared by different application programs that are executed in the running environment that is provided by the execution of the first application program; and

render, in the second process, the first view page according to the public component and the first page data of the first view page.

14. The apparatus of claim 13 , wherein the processing circuitry is further configured to:

acquire, in the second process, a selection event associated with the public component;

forward, via the running environment that is provided by the execution of the first application program, the selection event from the second process to the process; and

generate, in the first process of the second application program via the API provided by the running environment of the first application program, the updated page data for the portion of the first view page in response to the selection event, according to first logic code of the first view page.

15. The apparatus of claim 10 , wherein the processing circuitry is further configured to:

acquire, in the first process, an event that triggers a switching from the first view page to a second view page;

acquire, in the first process, second page data of the second view page;

transfer, via the running environment that is provided by the execution of the first application program, the second page data of the second view page from the first process to a third process corresponding to the second view page, the execution of the second application program in the running environment starting the third process after the second process starts; and

render, in the third process, the second view page according to the second page data of the second view page.

16. The apparatus of claim 15 , wherein the processing circuitry is further configured to:

when the second view page is a new view page,

acquire, in the first process, the second page data according to first logic code of the first view page; and

load, in the first process, the second page data into a page stack that buffers view pages; and

when the second view page has been accessed previously,

acquire, in the first process, the second page data from the page stack, the page stack buffering the view pages that have been accessed previously.

17. The apparatus of claim 10 , wherein the processing circuitry is further configured to:

trigger, in the running environment, a state change of the first view page from a first state to a second state; and

perform an operation that is defined in first logic code of the first view page by a function associated with the second state.

18. A non-transitory computer readable medium storing computer-readable instructions therein which when executed by a computer cause the computer to perform:

executing a first application program in an operating system, the execution of the first application program providing a running environment for other application programs;

executing a second application program in the running environment that is provided by the execution of the first application program, the execution of the second application program starting a first process and a second process corresponding to the second application program;

forwarding, via a thread or a process of the first application program, first page data from the first process of the second application program that generates the first page data to the second process of the second application program;

rendering, in the second process, a first view page according to the first page data;

invoking, by the first process of the second application program, an application programming interface (API) provided by the operating system through an API provided by the first application program to generate updated page data;

forwarding, via the running environment that is provided by the execution of the first application program, the updated page data for a portion of the first view page from the first process to the second process; and

re-rendering, in the second process, the portion of the first view page according to the updated page data.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 15, 2019
From: HU, HAO; HU, HAOJUN; LIN, QINGJIE
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 048607/0106 →
Priority Claims (1)
CN 201611104220.4 · Dec 5, 2016 · national
Continuity (2)
Continuation PCTCN2017113066 · Nov 27, 2017
Related Publication 20190213019A1 · Jul 11, 2019
Cited By (1)
US 12,468,552