Patent ID: 9652223
Date: 2017-05-16
CPC Classifications: G06F

Claim:
1. A method for executing an integrated application program, comprising: instantiating an implementation class of a first application program in a first process, to obtain a context of the first application program, or instantiating an implementation class of a second application program in a second process, to obtain a context of the second application program, the context of the first application program comprising a first identifier corresponding to the first application program, and the context of the second application program comprising a second identifier corresponding to the second application program, wherein the implementation class of the second application program is inherited from the implementation class of the first application program; determining whether an identifier corresponding to a current process is the first identifier or the second identifier; and if the identifier corresponding to the current process is the first identifier, performing initialization operations according to the context of the first application program, or, if the identifier corresponding to the current process is the second identifier, performing initialization operations according to the context of the second application program; wherein a same piece of program code is used when instantiating the implementation class of the first application program in the first process and when instantiating the implementation class of the second application program in the second process; wherein the method further comprises: determining, according to an execution situation of the first application program, whether an icon of the first application program is displayed in a latest taskbar interface, or determining, according to an execution situation of the second application program, whether an icon of the second application program is displayed in a latest taskbar interface; and re-executing or further executing the first application program or the second application program according to an icon selected by a user from the icons of the first and second application programs.