CN103631654A - Application switching control method and device and service acceptance terminal - Google Patents
Application switching control method and device and service acceptance terminal Download PDFInfo
- Publication number
- CN103631654A CN103631654A CN201210313560.3A CN201210313560A CN103631654A CN 103631654 A CN103631654 A CN 103631654A CN 201210313560 A CN201210313560 A CN 201210313560A CN 103631654 A CN103631654 A CN 103631654A
- Authority
- CN
- China
- Prior art keywords
- application
- business
- service
- registering
- main
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
本发明公开了一种应用切换控制方法、装置及业务受理终端,该应用切换控制方法包括:在业务受理终端运行过程中,确定当前需要处理的第一业务;确定所述至少两个应用中与所述第一业务对应的第一应用;通过当前处于前台运行的第一主应用调用所述第一应用,使得所述第一应用处于前台运行以执行所述第一业务;控制第一主应用切换到后台运行,并维持第一主应用的签到状态。本发明提高了多应用业务受理终端的应用切换速度和效率。
The invention discloses an application switching control method, device and service acceptance terminal. The application switching control method includes: determining the first service currently to be processed during the operation of the service acceptance terminal; The first application corresponding to the first service; calling the first application through the first main application currently running in the foreground, so that the first application is running in the foreground to execute the first service; controlling the first main application Switch to running in the background and maintain the check-in state of the first main application. The invention improves the application switching speed and efficiency of the multi-application service acceptance terminal.
Description
技术领域 technical field
本发明涉及应用切换控制,特别是一种应用切换控制方法、装置及业务受理终端。The present invention relates to application switching control, in particular to an application switching control method, device and service acceptance terminal.
背景技术 Background technique
目前金融受理终端的应用形态主要是以下的两种:单应用金融受理终端和多应用受理终端。At present, there are mainly two types of application forms of financial acceptance terminals: single-application financial acceptance terminals and multi-application acceptance terminals.
单应用金融受理终端中,一台金融受理终端只能受理一种卡片。In single-application financial acceptance terminals, one financial acceptance terminal can only accept one type of card.
很明显,单应用金融受理终端的应用范围有限,为了扩大应用范围,商家如需受理其他的卡片,则需要在柜台上增加一台受理终端,这将大大增加成本。Obviously, the application range of a single-application financial acceptance terminal is limited. In order to expand the application range, if a merchant needs to accept other cards, it needs to add an acceptance terminal on the counter, which will greatly increase the cost.
而多应用受理终端虽然支持2个以上的业务类型,但是每次切换时都需要操作员手动切换,以完成新应用的启动以及签到。Although the multi-application acceptance terminal supports more than two business types, the operator needs to manually switch each time to complete the startup and sign-in of the new application.
上述是以金融受理终端为例进行的说明,应当理解的是,其他多应用的受理终端,如移动业务办理终端同样也存在上述的问题。The foregoing description is made by taking the financial acceptance terminal as an example. It should be understood that other multi-application acceptance terminals, such as mobile service handling terminals, also have the above-mentioned problems.
发明内容 Contents of the invention
本发明实施例的目的在于提供一种应用切换控制方法、装置及业务受理终端,实现多应用业务受理终端的应用快速切换,提高切换效率。The purpose of the embodiments of the present invention is to provide an application switching control method, device and service acceptance terminal, so as to realize fast application switching of multi-application service acceptance terminals and improve switching efficiency.
为了实现上述目的,本发明实施例提供了一种应用切换控制方法,用于一业务受理终端,所述业务受理终端中安装有至少两个应用,每一个应用对应于各自能够处理的业务,所述应用切换控制方法包括一业务切换过程,所述业务切换过程包括:In order to achieve the above object, an embodiment of the present invention provides an application switching control method, which is used in a service acceptance terminal, where at least two applications are installed in the service acceptance terminal, and each application corresponds to a service that can be processed respectively. The application switching control method includes a service switching process, and the service switching process includes:
在业务受理终端运行过程中,确定当前需要处理的第一业务;During the operation of the business acceptance terminal, determine the first business currently to be processed;
确定所述至少两个应用中与所述第一业务对应的第一应用;determining a first application corresponding to the first service among the at least two applications;
通过当前处于前台运行的第一主应用调用所述第一应用,使得所述第一应用处于前台运行以执行所述第一业务;calling the first application through the first main application currently running in the foreground, so that the first application is running in the foreground to execute the first service;
控制所述第一主应用切换到后台运行,并维持所述第一主应用的签到状态。Controlling the switching of the first main application to run in the background, and maintaining the sign-in state of the first main application.
上述的应用切换控制方法,其中,还包括一签到处理过程,完成所述至少两个应用中的每一个应用在各自对应的业务平台的签到。The above-mentioned application switching control method further includes a sign-in processing process to complete the sign-in of each of the at least two applications on the corresponding service platform.
上述的应用切换控制方法,其中,所述签到处理过程在业务切换过程之前执行,包括:In the above application switching control method, wherein the sign-in process is executed before the service switching process, including:
在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;After the service acceptance terminal is started, start the default application among the at least two applications, so that the default application completes sign-in as the second main application and runs in the foreground;
通过所述第二主应用完成所述至少两个应用中除缺省应用之外的其他应用在各自对应的业务平台的签到。The sign-in of other applications in the at least two applications except the default application on their respective corresponding service platforms is completed through the second main application.
上述的应用切换控制方法,其中,所述签到处理过程在业务切换过程之前执行,包括:In the above application switching control method, wherein the sign-in process is executed before the service switching process, including:
在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;After the service acceptance terminal is started, start the default application among the at least two applications, so that the default application completes sign-in as the second main application and runs in the foreground;
控制所述至少两个应用中除缺省应用之外的其他应用处于后台运行状态,并完成签到。Control other applications in the at least two applications except the default application to be running in the background, and complete sign-in.
上述的应用切换控制方法,其中,所述签到处理过程包括:In the above application switching control method, wherein the sign-in process includes:
在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;After the service acceptance terminal is started, start the default application among the at least two applications, so that the default application completes sign-in as the second main application and runs in the foreground;
通过当前处于前台运行的第一主应用调用所述第一应用,使得所述第一应用处于前台运行以执行所述第一业务具体包括:Invoking the first application through the first main application currently running in the foreground, so that the first application is running in the foreground to execute the first service specifically includes:
在所述第一应用首次被调用时,通过所述第一主应用启动所述第一应用,使所述第一应用完成签到并处于前台运行,以执行所述第一业务;否则通过所述第一主应用调用处于后台运行的所述第一应用,将当前处于后台运行的第一应用切换到前台运行,以执行所述第一业务。When the first application is invoked for the first time, start the first application through the first main application, so that the first application completes sign-in and runs in the foreground to execute the first service; otherwise, through the The first main application invokes the first application running in the background, and switches the first application currently running in the background to run in the foreground, so as to execute the first service.
上述的应用切换控制方法,其中,还包括:The above application switching control method further includes:
在所述至少两个应用中的第二应用需要升级时,与受理终端应用平台交互下载所述第二应用对应的升级程序;When the second application of the at least two applications needs to be upgraded, interacting with the accepting terminal application platform to download an upgrade program corresponding to the second application;
执行所述升级程序以升级所述第二应用。Executing the upgrade program to upgrade the second application.
上述的应用切换控制方法,其中,所述至少两个应用共用的函数保存于运行于业务受理终端的软件平台中,供所述至少两个应用中的处于前台的应用调用以执行对应的业务。In the above application switching control method, the functions shared by the at least two applications are stored in the software platform running on the service acceptance terminal, and are called by the application in the foreground among the at least two applications to execute the corresponding service.
为了实现上述目的,本发明实施例还提供了一种应用切换控制装置,用于一业务受理终端,所述业务受理终端中安装有至少两个应用,每一个应用对应于各自能够处理的业务,所述应用切换控制装置包括一业务切换模块,所述业务切换模块包括:In order to achieve the above object, the embodiment of the present invention also provides an application switching control device, which is used in a service acceptance terminal, and at least two applications are installed in the service acceptance terminal, and each application corresponds to a service that can be processed respectively. The application switching control device includes a service switching module, and the service switching module includes:
业务确定单元,用于在业务受理终端运行过程中,确定当前需要处理的第一业务;A business determination unit, configured to determine the first business currently to be processed during the operation of the business acceptance terminal;
应用确定单元,用于确定所述至少两个应用中与所述第一业务对应的第一应用;an application determining unit, configured to determine a first application corresponding to the first service among the at least two applications;
调用处理单元,用于通过当前处于前台运行的第一主应用调用所述第一应用,使得所述第一应用处于前台运行以执行所述第一业务;a calling processing unit, configured to call the first application through the first main application currently running in the foreground, so that the first application is running in the foreground to execute the first service;
切换单元,用于控制所述第一主应用切换到后台运行,并维持所述第一主应用的签到状态。The switching unit is configured to control the switching of the first main application to run in the background, and maintain the sign-in state of the first main application.
上述的应用切换控制装置,其中,还包括一签到处理模块,用于完成所述至少两个应用中的每一个应用在各自对应的业务平台的签到。The above-mentioned application switching control device further includes a sign-in processing module, configured to complete the sign-in of each of the at least two applications on the corresponding service platform.
上述的应用切换控制装置,所述签到处理模块在业务切换模块之前执行,包括:In the above-mentioned application switching control device, the sign-in processing module is executed before the service switching module, including:
第一签到控制单元,用于在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;The first sign-in control unit is configured to start the default application of the at least two applications after the service acceptance terminal is started, so that the default application completes sign-in as the second main application and runs in the foreground;
第二签到控制单元,用于通过所述第二主应用完成所述至少两个应用中除缺省应用之外的其他应用在各自对应的业务平台的签到。The second sign-in control unit is configured to complete the sign-in of other applications in the at least two applications except the default application on the respective corresponding service platforms through the second main application.
上述的应用切换控制装置,所述签到处理模块在业务切换模块之前执行,包括:In the above-mentioned application switching control device, the sign-in processing module is executed before the service switching module, including:
第一签到控制单元,用于在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;The first sign-in control unit is configured to start the default application of the at least two applications after the service acceptance terminal is started, so that the default application completes sign-in as the second main application and runs in the foreground;
第三签到控制单元,用于控制所述至少两个应用中除缺省应用之外的其他应用处于后台运行状态,并完成签到。The third sign-in control unit is configured to control other applications in the at least two applications except the default application to run in the background and complete the sign-in.
上述的应用切换控制装置,所述签到处理模块在业务切换模块之前执行,包括:In the above-mentioned application switching control device, the sign-in processing module is executed before the service switching module, including:
第一签到控制单元,用于在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;The first sign-in control unit is configured to start the default application of the at least two applications after the service acceptance terminal is started, so that the default application completes sign-in as the second main application and runs in the foreground;
所述调用处理单元具体用于在所述第一应用首次被调用时,通过所述第一主应用启动所述第一应用,使所述第一应用完成签到并处于前台运行,以执行所述第一业务;否则通过所述第一主应用调用处于后台运行的所述第一应用,将当前处于后台运行的第一应用切换到前台运行,以执行所述第一业务。The call processing unit is specifically configured to start the first application through the first main application when the first application is called for the first time, so that the first application completes sign-in and runs in the foreground, so as to execute the The first service; otherwise, the first main application invokes the first application running in the background, and switches the first application currently running in the background to run in the foreground, so as to execute the first service.
上述的应用切换控制装置,还包括:The above application switching control device also includes:
下载单元,用于在所述至少两个应用中的第二应用需要升级时,与受理终端应用平台交互下载所述第二应用对应的升级程序;A downloading unit, configured to interact with the accepting terminal application platform to download an upgrade program corresponding to the second application when the second application of the at least two applications needs to be upgraded;
执行单元,用于执行所述升级程序以升级所述第二应用。An executing unit, configured to execute the upgrade program to upgrade the second application.
上述的应用切换控制装置,所述至少两个应用共用的函数保存于运行于业务受理终端的软件平台中,供所述至少两个应用中的处于前台的应用调用以执行对应的业务。In the above-mentioned application switching control device, the functions shared by the at least two applications are stored in the software platform running on the service acceptance terminal, and are called by the application in the foreground among the at least two applications to execute the corresponding service.
为了实现上述目的,本发明实施例还提供了一种业务受理终端,包括上述的应用切换控制装置。In order to achieve the above object, an embodiment of the present invention further provides a service acceptance terminal, including the above application switching control device.
本发明实施例具有如下的效果中的至少一个:Embodiments of the present invention have at least one of the following effects:
在本发明的具体实施例中,当确定当前需要处理的业务之后,就会确定与该业务对应的应用,并调用第一应用使之处于前台运行以执行所述第一业务;而对当前需要处理的业务所不需要使用的主应用(当前处于前台运行)切换到后台运行,并维持所述第一主应用的签到状态。In a specific embodiment of the present invention, after determining the business that currently needs to be processed, the application corresponding to the business will be determined, and the first application will be called to run in the foreground to execute the first business; The main application (currently running in the foreground) that is not needed for the processed business is switched to running in the background, and the sign-in state of the first main application is maintained.
由于第一主应用已经在后台运行,而没有退出,而且也处于签到状态,因此当往后一段时间出现与第一主应用对应的业务需要处理时,则只需要将该第一主应用切换到前台运行即可处理该业务,不再需要重新启动该第一主应用,也不需要重新签到,因此,大大提高了切换的速度以及效率。Since the first main application has been running in the background without exiting, and is also in the sign-in state, when a business corresponding to the first main application needs to be processed in a later period of time, it is only necessary to switch the first main application to The business can be processed by running in the foreground, and there is no need to restart the first main application, nor to log in again, so the switching speed and efficiency are greatly improved.
在本发明的具体实施例中,在应用更新时,直接下载对应的应用的升级程序,然后通过执行该更新程序完成应用的更新,因此提高了升级的速度和效率。In a specific embodiment of the present invention, when an application is updated, the upgrade program of the corresponding application is directly downloaded, and then the update program is executed to complete the update of the application, thus improving the speed and efficiency of the upgrade.
在本发明的具体实施例中,为至少两个应用中的多个应用共用的函数保存于运行于业务受理终端的软件平台中,供应用调用以执行对应的业务。这样,上层的应用就可以简化开发,只需要考虑业务逻辑而不需要考虑函数接口。In a specific embodiment of the present invention, the functions shared by multiple applications in the at least two applications are stored in the software platform running on the service acceptance terminal, and are called by the applications to execute corresponding services. In this way, the application of the upper layer can simplify the development, and only need to consider the business logic without considering the function interface.
附图说明 Description of drawings
图1表示本发明实施例的业务受理终端的层次结构示意图;FIG. 1 shows a schematic diagram of a hierarchical structure of a service acceptance terminal in an embodiment of the present invention;
图2表示本发明实施例的方法的流程示意图;Fig. 2 represents the schematic flow chart of the method of the embodiment of the present invention;
图3表示本发明实施例的以方式二签到时的业务处理流程示意图;FIG. 3 shows a schematic diagram of a business processing flow when signing in in
图4表示本发明实施例的业务受理终端、业务平台和应用管理平台的结构示意图;FIG. 4 shows a schematic structural diagram of a service acceptance terminal, a service platform and an application management platform according to an embodiment of the present invention;
图5表示本发明实施例的下载过程的流程示意图;Fig. 5 shows the schematic flow chart of the downloading process of the embodiment of the present invention;
图6表示本发明实施例的装置的结构示意图。Fig. 6 shows a schematic structural diagram of the device of the embodiment of the present invention.
具体实施方式 Detailed ways
本发明实施例的应用切换控制方法、装置及业务受理终端中,在需要切换时,直接将当前不再需要使用的业务对应的应用切换到后台运行,并维持其签到状态,当下次被调用切换到前台来执行业务时,由于其已经处于后台运行,且处于签到状态,因此既不需要重新启动,也不再需要签到,提高了应用切换的速度及效率。In the application switching control method, device, and service acceptance terminal of the embodiments of the present invention, when switching is required, the application corresponding to the business that is no longer needed at present is directly switched to run in the background, and its sign-in state is maintained. When you come to the foreground to perform business, because it is already running in the background and is in the sign-in state, there is no need to restart or sign-in, which improves the speed and efficiency of application switching.
在对本发明实施例的方法进行详细描述之前,先对本发明实施例的业务受理终端的结构进行简要说明,以便于更好地理解本发明实施例。Before describing the method in the embodiment of the present invention in detail, first briefly describe the structure of the service acceptance terminal in the embodiment of the present invention, so as to better understand the embodiment of the present invention.
如图1所示,本发明实施例的业务受理终端为4层结构,包括:As shown in Figure 1, the service acceptance terminal of the embodiment of the present invention is a 4-layer structure, including:
硬件平台,与已有的硬件平台完全相同,在此不作详细描述;The hardware platform is exactly the same as the existing hardware platform and will not be described in detail here;
软件平台,包括操作系统、硬件平台的驱动等;Software platform, including operating system, hardware platform drivers, etc.;
API(Application Programming Interface,应用程序编程接口)是一些预先定义的函数,其能够提供应用层的应用访问软件平台的接口,其根据具体的应用做相应的变化。API (Application Programming Interface, application programming interface) is some pre-defined functions, which can provide the interface of the application layer to access the software platform, and make corresponding changes according to the specific application.
应用层,在本发明的具体实施例中,应用层包括至少两个应用,统一分配有各自对应的ID。Application layer. In a specific embodiment of the present invention, the application layer includes at least two applications, which are uniformly allocated with corresponding IDs.
如对于金融受理终端而言,这些应用可以是银联卡刷卡应用、各类预付卡受理程序(资和信、百联卡、衫德卡...)等。对于不同的应用环境,这些应用各不相同,在此不一一列举。For example, for financial acceptance terminals, these applications can be UnionPay card swiping applications, various prepaid card acceptance programs (Zihexin, Bailian Card, Shande Card...), etc. For different application environments, these applications are different and will not be listed here.
由于每个应用有各自不同的库函数,但作为金融受理而言,也有部分库函数能为多个应用所共用,如EMV(VISA,MASTERCARD,EUROPAY国际卡组织制定的金融IC卡标准)的库函数,PBOC(由人民银行制定金融IC卡标准)的库函数等。Because each application has its own different library functions, but as far as financial acceptance is concerned, some library functions can be shared by multiple applications, such as the library of EMV (VISA, MASTERCARD, financial IC card standards formulated by EUROPAY International Card Organization) Functions, library functions of PBOC (financial IC card standard formulated by the People's Bank of China), etc.
在本发明的具体实施例中,为至少两个应用中的多个应用共用的函数保存于运行于业务受理终端的软件平台中,供应用调用以执行对应的业务。这样,上层的应用就可以简化开发,只需要考虑业务逻辑而不需要考虑函数接口。In a specific embodiment of the present invention, the functions shared by multiple applications in the at least two applications are stored in the software platform running on the service acceptance terminal, and are called by the applications to execute corresponding services. In this way, the application of the upper layer can simplify the development, and only need to consider the business logic without considering the function interface.
当然,每个应用各自使用自己使用到的库函数而不共享也可以,并不影响本发明实施例的实现。Of course, each application can use its own library functions without sharing them, and this does not affect the implementation of the embodiments of the present invention.
本发明实施例的应用切换控制方法用于一业务受理终端,所述业务受理终端中安装有至少两个应用,每一个应用对应于各自能够处理的业务,所述应用切换控制方法包括一业务切换过程,如图2所示,所述业务切换过程包括:The application switching control method of the embodiment of the present invention is used in a service acceptance terminal, and at least two applications are installed in the service acceptance terminal, and each application corresponds to a service that can be processed respectively. The application switching control method includes a service switching Process, as shown in Figure 2, the service switching process includes:
步骤201,在业务受理终端运行过程中,确定当前需要处理的第一业务;Step 201, during the operation of the service acceptance terminal, determine the first service currently to be processed;
步骤202,确定所述至少两个应用中与所述第一业务对应的第一应用;Step 202, determining a first application corresponding to the first service among the at least two applications;
步骤203,通过当前处于前台运行的第一主应用调用所述第一应用,使得所述第一应用处于前台运行以执行所述第一业务;Step 203, calling the first application through the first main application currently running in the foreground, so that the first application is running in the foreground to execute the first service;
步骤204,控制所述第一主应用切换到后台运行,并维持所述第一主应用的签到状态。Step 204, control the first main application to switch to run in the background, and maintain the sign-in state of the first main application.
在本发明的具体实施例中,当确定当前需要处理的业务之后,就会确定与该业务对应的应用,并调用第一应用使之处于前台运行以执行所述第一业务;而对当前需要处理的业务所不需要使用的主应用(当前处于前台运行)切换到后台运行,并维持所述第一主应用的签到状态。In a specific embodiment of the present invention, after determining the business that currently needs to be processed, the application corresponding to the business will be determined, and the first application will be called to run in the foreground to execute the first business; The main application (currently running in the foreground) that is not needed for the processed business is switched to running in the background, and the sign-in state of the first main application is maintained.
由于第一主应用已经在后台运行,而没有退出,而且也处于签到状态,因此当往后一段时间出现与第一主应用对应的业务需要处理时,则只需要将该第一主应用切换到前台运行即可处理该业务,不再需要重新启动该第一主应用,也不需要重新签到,因此,大大提高了切换的速度以及效率。Since the first main application has been running in the background without exiting, and is also in the sign-in state, when a business corresponding to the first main application needs to be processed in a later period of time, it is only necessary to switch the first main application to The business can be processed by running in the foreground, and there is no need to restart the first main application, nor to log in again, so the switching speed and efficiency are greatly improved.
在本发明的具体实施例中,有主应用的概念,该主应用不是一个固定的应用,而是谁处于前台谁就是主应用,而该主应用也具备调度其他应用的权利,这将在后面进行详细描述。In the specific embodiment of the present invention, there is the concept of the main application, the main application is not a fixed application, but whoever is in the foreground is the main application, and the main application also has the right to schedule other applications, which will be discussed later Describe in detail.
当然,在应用处理对应的业务时,都需要完成该应用在各自对应的业务平台的签到。Of course, when the application processes the corresponding business, it is necessary to complete the sign-in of the application on the corresponding service platform.
因此在本发明的具体实施例中,还包括一签到处理过程,完成所述至少两个应用中的每一个应用在各自对应的业务平台的签到。Therefore, in a specific embodiment of the present invention, a sign-in processing process is further included to complete the sign-in of each of the at least two applications on the respective corresponding service platforms.
本发明具体实施例的应用签到可以通过各种方式实现,分别说明如下。Application sign-in in specific embodiments of the present invention can be implemented in various ways, which are described as follows.
<签到处理方式一><Sign-in
在方式一中,通过缺省应用来完成所有应用的签到。In the first way, the sign-in of all applications is completed through the default application.
这种方式下,所述签到处理过程在业务切换过程之前执行,包括:In this way, the check-in process is executed before the service switching process, including:
在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;After the service acceptance terminal is started, start the default application among the at least two applications, so that the default application completes sign-in as the second main application and runs in the foreground;
通过所述第二主应用完成所述至少两个应用中除缺省应用之外的其他应用在各自对应的业务平台的签到。The sign-in of other applications in the at least two applications except the default application on their respective corresponding service platforms is completed through the second main application.
举例说明如下。Examples are as follows.
如图1所示,假定在业务受理终端中安装有1、2、3...n一共n个应用。假定应用#1为缺省应用。As shown in FIG. 1 , it is assumed that a total of
则方式一中,所述业务受理终端启动后,首先会启动应用#1,而应用#1启动后会向对应的业务平台进行签到。In the first way, after the service acceptance terminal is started, it will first start the
同时应用#1还会代替应用#2、3、...、n向对应的业务平台进行签到。At the same time,
假定在一段时间后,需要处理的业务对应于应用#3,此时只需要启动应用#3即可,而应用#3不再需要向对应的业务平台签到即可进行业务处理。Assume that after a period of time, the service that needs to be processed corresponds to
而应用#3第二次需要用到时,则直接从后台切换到前台运行即可进行业务处理,不再需要重新启动,也不需要签到。When the
当然,由应用#1代替其他应用到对应的业务平台进行注册,需要应用和业务平台之间预先协商好,具体如何协商并不在本发明实施例的讨论范围,在此不作详细描述。Of course, registering with the corresponding service platform by
<签到处理方式二><Sign-in
在方式二中,应用的签到由每个应用自己完成,但在业务受理终端启动之后统一完成。In the second way, the sign-in of the application is completed by each application itself, but it is completed uniformly after the business acceptance terminal is started.
这种方式下,所述签到处理过程在业务切换过程之前执行,包括:In this way, the check-in process is executed before the service switching process, including:
在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;After the service acceptance terminal is started, start the default application among the at least two applications, so that the default application completes sign-in as the second main application and runs in the foreground;
控制所述至少两个应用中除缺省应用之外的其他应用处于后台运行状态,并完成签到。Control other applications in the at least two applications except the default application to be running in the background, and complete sign-in.
举例说明如下。Examples are as follows.
结合图1和图3所示,假定在业务受理终端中安装有应用#1、2、3...n一共n个应用。假定应用#1为缺省应用。As shown in FIG. 1 and FIG. 3 , it is assumed that a total of n applications of
则方式二中,所述业务受理终端启动后,首先会启动应用#1(主应用),而应用#1启动后会向对应的业务平台进行签到。In
之后还会控制应用#2、3、...、n进入后台运行状态,由应用完成各自的签到,并一直处于后台运行。Afterwards, the
上述过程之后,受理终端会处于主应用的使用状态下,即应用#1处于前台,而其他应用处于后台执行。After the above process, the accepting terminal will be in the use state of the main application, that is, the
假定在一段时间后,需要处理的业务对应于应用#3,此时外不会请求切换到应用#3,此时应用#1会通过应用#3的ID调用应用#3,而自己从前台切换到后台运行,但保持自己的签到状态;Assume that after a period of time, the business that needs to be processed corresponds to
应用#3被调用后,从后台切换到前台运行,进入到应用#3的界面,与应用#3对应的业务平台连接,进行业务处理,而不再需要重新启动,也不需要签到。After the
<签到处理方式三><Sign-in
在方式三中,缺省应用在业务受理终端启动后完成签到并成为主应用,而其他应用则会在需要使用时才启动并完成签到。In
方式三中,所述签到处理过程包括:In
在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;After the service acceptance terminal is started, start the default application among the at least two applications, so that the default application completes sign-in as the second main application and runs in the foreground;
通过当前处于前台运行的第一主应用调用所述第一应用,使得所述第一应用处于前台运行以执行所述第一业务具体包括:Invoking the first application through the first main application currently running in the foreground, so that the first application is running in the foreground to execute the first service specifically includes:
在所述第一应用首次被调用时,通过所述第一主应用启动所述第一应用,使所述第一应用完成签到并处于前台运行,以执行所述第一业务;否则通过所述第一主应用调用处于后台运行的所述第一应用,将当前处于后台运行的第一应用切换到前台运行,以执行所述第一业务。When the first application is invoked for the first time, start the first application through the first main application, so that the first application completes sign-in and runs in the foreground to execute the first service; otherwise, through the The first main application invokes the first application running in the background, and switches the first application currently running in the background to run in the foreground, so as to execute the first service.
举例说明如下。Examples are as follows.
如图1所示,假定在业务受理终端中安装有应用#1、2、3...n一共n个应用。假定应用#1为缺省应用。As shown in FIG. 1 , it is assumed that a total of n applications of
则方式二中,所述业务受理终端启动后,在t1时刻,会启动应用#1,而应用#1启动后会向对应的业务平台进行签到。Then in
假定在t2时刻,需要处理的业务对应于应用#3,此时应用#3会被应用#1调用而启动,并有自己完成签到并处于前台运行,然后执行对应的业务;Assume that at time t2, the business that needs to be processed corresponds to
假定在tn时刻,需要处理的业务对应于应用#n,此时应用#n会被应用#n-1调用而启动,并有自己完成签到并处于前台运行,然后执行对应的业务;Assume that at time tn, the business that needs to be processed corresponds to application #n. At this time, application #n will be called by application #n-1 to start, and it will complete the sign-in and run in the foreground by itself, and then execute the corresponding business;
至此,所有的应用都已经启动,并且有其中一个应用处于前台运行,作为主应用,而其他n-1个应用处于后台运行,处于签到状态。So far, all applications have been started, and one of the applications is running in the foreground as the main application, while the other n-1 applications are running in the background and are in the check-in state.
此后,在tm时刻,假定需要处理的业务对应于应用#3,此时应用#3会被应用#1调用而切换到前台成为主应用,然后执行对应的业务。Thereafter, at time tm, it is assumed that the business to be processed corresponds to
以上3种签到方式仅仅是举例说明,其他签到方式也可以应用于本发明实施例,在此不一一说明。The above three sign-in methods are merely examples, and other sign-in methods can also be applied to the embodiment of the present invention, and will not be described here one by one.
但不管何种签到方式,在应用启动并签到之后,在不需要使用时,应用会切换到后台执行,保持其中一个应用作为主应用即可。But regardless of the sign-in method, after the app is started and signed in, the app will switch to the background for execution when not in use, and one of the apps can be kept as the main app.
而处于后台执行的应用在需要用到时只需要切换到前台执行即可,提高了切换的速度和效率。However, the applications executed in the background only need to be switched to the foreground for execution when needed, which improves the switching speed and efficiency.
现有的多应用业务受理终端中,在升级一个应用时,需要对整个程序进行下载更新,导致下载数据量大,更新效率低的问题。In the existing multi-application business acceptance terminal, when an application is upgraded, the entire program needs to be downloaded and updated, resulting in a large amount of downloaded data and low update efficiency.
而在本发明的具体实施例中,在应用更新时,直接下载对应的应用的升级程序,然后通过执行该更新程序完成应用的更新。However, in a specific embodiment of the present invention, when an application is updated, the upgrade program of the corresponding application is directly downloaded, and then the update program is executed to complete the update of the application.
上述的应用更新过程包括:The above application update process includes:
在所述至少两个应用中的第二应用需要升级时,与受理终端应用平台交互下载所述第二应用对应的升级程序;When the second application of the at least two applications needs to be upgraded, interacting with the accepting terminal application platform to download an upgrade program corresponding to the second application;
执行所述升级程序以升级所述第二应用。Executing the upgrade program to upgrade the second application.
结合图4所示的应用场景说明如下。The description is as follows in conjunction with the application scenario shown in FIG. 4 .
如图4所示,多个受理终端与一受理终端应用管理平台连接,而受理终端根据安装应用的不同会连接到不同的业务平台。As shown in FIG. 4 , multiple acceptance terminals are connected to an acceptance terminal application management platform, and acceptance terminals are connected to different service platforms according to different installed applications.
当其中一个受理终端中的一个应用需要升级时,受理终端会与受理终端应用平台交互下载所述第二应用对应的升级程序;然后执行所述升级程序以升级所述第二应用。相对于现有技术而言,受理终端只需要下载需要更新的应用对应的程序,而不在下载所有应用,降低了下载数据量,提高了更新效率。When an application in one of the acceptance terminals needs to be upgraded, the acceptance terminal interacts with the acceptance terminal application platform to download an upgrade program corresponding to the second application; and then executes the upgrade program to upgrade the second application. Compared with the prior art, the acceptance terminal only needs to download the programs corresponding to the applications that need to be updated, instead of downloading all the applications, which reduces the amount of downloaded data and improves the update efficiency.
下面对上述的更新过程详细说明如下。The above update process is described in detail below.
如图5所示,详细的下载过程包括:As shown in Figure 5, the detailed download process includes:
首先,受理终端会向受理终端应用平台发送请求建链消息,请求与受理终端应用平台建立链接。First, the acceptance terminal will send a link establishment request message to the acceptance terminal application platform, requesting to establish a link with the acceptance terminal application platform.
而受理终端应用平台接收到请求建链消息后,与受理终端交互建立链路,并向受理终端返回链路建立消息。After receiving the link establishment request message, the acceptance terminal application platform interacts with the acceptance terminal to establish a link, and returns a link establishment message to the acceptance terminal.
链路建立之后,受理终端和受理终端管理平台会逐次完成升级程序的下载,其交互次数取决于升级程序的大小。After the link is established, the acceptance terminal and the acceptance terminal management platform will complete the download of the upgrade program one by one, and the number of interactions depends on the size of the upgrade program.
经过多次交互下载完成之后,受理终端会通知受理终端管理平台下载完成,请求结束下载,受理终端管理平台会响应该消息,最后二者交互拆除建立的链路。After several interactive downloads are completed, the accepting terminal will notify the accepting terminal management platform that the download is complete, request to end the download, the accepting terminal management platform will respond to the message, and finally the two interact to remove the established link.
本发明实施例还提供了一种应用切换控制装置,用于一业务受理终端,所述业务受理终端中安装有至少两个应用,每一个应用对应于各自能够处理的业务,所述应用切换控制装置包括一业务切换模块,所述业务切换模块如图6所示,包括:The embodiment of the present invention also provides an application switching control device, which is used in a service acceptance terminal, where at least two applications are installed in the service acceptance terminal, and each application corresponds to a service that can be processed respectively, and the application switching control The device includes a service switching module, and the service switching module is shown in Figure 6, including:
业务确定单元,用于在业务受理终端运行过程中,确定当前需要处理的第一业务;A business determination unit, configured to determine the first business currently to be processed during the operation of the business acceptance terminal;
应用确定单元,用于确定所述至少两个应用中与所述第一业务对应的第一应用;an application determining unit, configured to determine a first application corresponding to the first service among the at least two applications;
调用处理单元,用于通过当前处于前台运行的第一主应用调用所述第一应用,使得所述第一应用处于前台运行以执行所述第一业务;a calling processing unit, configured to call the first application through the first main application currently running in the foreground, so that the first application is running in the foreground to execute the first service;
切换单元,用于控制所述第一主应用切换到后台运行,并维持所述第一主应用的签到状态。The switching unit is configured to control the switching of the first main application to run in the background, and maintain the sign-in state of the first main application.
本发明实施例的应用切换控制装置,还包括一签到处理模块,用于完成所述至少两个应用中的每一个应用在各自对应的业务平台的签到。The application switching control device in the embodiment of the present invention further includes a sign-in processing module, configured to complete the sign-in of each of the at least two applications on the corresponding service platform.
所述签到处理模块可以以多种方式实现。The sign-in processing module can be implemented in various ways.
实现方式一中,所述签到处理模块在业务切换模块之前执行,包括:In the first implementation, the sign-in processing module is executed before the service switching module, including:
第一签到控制单元,用于在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;The first sign-in control unit is configured to start the default application of the at least two applications after the service acceptance terminal is started, so that the default application completes sign-in as the second main application and runs in the foreground;
第二签到控制单元,用于通过所述第二主应用完成所述至少两个应用中除缺省应用之外的其他应用在各自对应的业务平台的签到。The second sign-in control unit is configured to complete the sign-in of other applications in the at least two applications except the default application on the respective corresponding service platforms through the second main application.
实现方式二中,所述签到处理模块在业务切换模块之前执行,包括:In the second implementation, the sign-in processing module is executed before the service switching module, including:
第一签到控制单元,用于在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;The first sign-in control unit is configured to start the default application of the at least two applications after the service acceptance terminal is started, so that the default application completes sign-in as the second main application and runs in the foreground;
第三签到控制单元,用于控制所述至少两个应用中除缺省应用之外的其他应用处于后台运行状态,并完成签到。The third sign-in control unit is configured to control other applications in the at least two applications except the default application to run in the background and complete the sign-in.
实现方式三中,所述签到处理模块在业务切换模块之前执行,包括:In the third implementation, the sign-in processing module is executed before the service switching module, including:
第一签到控制单元,用于在所述业务受理终端启动后,启动所述至少两个应用中的缺省应用,使所述缺省应用作为第二主应用完成签到并处于前台运行;The first sign-in control unit is configured to start the default application of the at least two applications after the service acceptance terminal is started, so that the default application completes sign-in as the second main application and runs in the foreground;
所述调用处理单元具体用于在所述第一应用首次被调用时,通过所述第一主应用启动所述第一应用,使所述第一应用完成签到并处于前台运行,以执行所述第一业务;否则通过所述第一主应用调用处于后台运行的所述第一应用,将当前处于后台运行的第一应用切换到前台运行,以执行所述第一业务。The call processing unit is specifically configured to start the first application through the first main application when the first application is called for the first time, so that the first application completes sign-in and runs in the foreground, so as to execute the The first service; otherwise, the first main application invokes the first application running in the background, and switches the first application currently running in the background to run in the foreground, so as to execute the first service.
本发明实施例还能够实现应用的单独升级,该应用切换控制装置还包括:The embodiment of the present invention can also realize the individual upgrade of the application, and the application switching control device also includes:
下载单元,用于在所述至少两个应用中的第二应用需要升级时,与受理终端应用平台交互下载所述第二应用对应的升级程序;A downloading unit, configured to interact with the accepting terminal application platform to download an upgrade program corresponding to the second application when the second application of the at least two applications needs to be upgraded;
执行单元,用于执行所述升级程序以升级所述第二应用。An executing unit, configured to execute the upgrade program to upgrade the second application.
为了方便调用,至少两个应用中的多个应用共用的函数保存于运行于业务受理终端的软件平台中,供应用调用以执行对应的业务。For the convenience of calling, the functions shared by multiple applications in at least two applications are stored in the software platform running on the service acceptance terminal, and are called by the applications to execute corresponding services.
本发明实施例还提供了一种业务受理终端,包括权利要求上述的应用切换控制装置。An embodiment of the present invention also provides a service acceptance terminal, including the application switching control device described in the claims.
以上所述仅是本发明的实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only the embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be regarded as Be the protection scope of the present invention.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210313560.3A CN103631654A (en) | 2012-08-29 | 2012-08-29 | Application switching control method and device and service acceptance terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210313560.3A CN103631654A (en) | 2012-08-29 | 2012-08-29 | Application switching control method and device and service acceptance terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103631654A true CN103631654A (en) | 2014-03-12 |
Family
ID=50212745
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210313560.3A Pending CN103631654A (en) | 2012-08-29 | 2012-08-29 | Application switching control method and device and service acceptance terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103631654A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106028150A (en) * | 2016-07-07 | 2016-10-12 | 四川长虹电器股份有限公司 | Multi-application switch management method for television of Linux system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650672A (en) * | 2009-08-19 | 2010-02-17 | 中兴通讯股份有限公司 | Switching method and device of display picture layers based on mobile phone terminal |
CN101788926A (en) * | 2009-12-28 | 2010-07-28 | 中兴通讯股份有限公司 | Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform |
CN101883184A (en) * | 2010-06-23 | 2010-11-10 | 中兴通讯股份有限公司 | Method for controlling application program display on mobile terminal and mobile terminal |
CN102298538A (en) * | 2010-04-07 | 2011-12-28 | 苹果公司 | Opportunistic Multitasking |
-
2012
- 2012-08-29 CN CN201210313560.3A patent/CN103631654A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650672A (en) * | 2009-08-19 | 2010-02-17 | 中兴通讯股份有限公司 | Switching method and device of display picture layers based on mobile phone terminal |
CN101788926A (en) * | 2009-12-28 | 2010-07-28 | 中兴通讯股份有限公司 | Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform |
CN102298538A (en) * | 2010-04-07 | 2011-12-28 | 苹果公司 | Opportunistic Multitasking |
CN101883184A (en) * | 2010-06-23 | 2010-11-10 | 中兴通讯股份有限公司 | Method for controlling application program display on mobile terminal and mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106028150A (en) * | 2016-07-07 | 2016-10-12 | 四川长虹电器股份有限公司 | Multi-application switch management method for television of Linux system |
CN106028150B (en) * | 2016-07-07 | 2019-02-15 | 四川长虹电器股份有限公司 | More application switching management methods of TV for linux system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101369428B1 (en) | Application management apparatus and method for mobile terminal for supporting different type guest operating system | |
US10768960B2 (en) | Method for affinity binding of interrupt of virtual network interface card, and computer device | |
CN110300328B (en) | Video playing control method and device and readable storage medium | |
US20110219373A1 (en) | Virtual machine management apparatus and virtualization method for virtualization-supporting terminal platform | |
CN109308241B (en) | Method and device for monitoring starting process of application program, terminal equipment and storage medium | |
CN107291456B (en) | Multi-screen display control method and system | |
WO2020063040A1 (en) | Processor core configuration method and apparatus, terminal, and storage medium | |
US10728169B1 (en) | Instance upgrade migration | |
CN111158756B (en) | Method and apparatus for processing information | |
CN103761088A (en) | Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment | |
CN111240800B (en) | Hardware acceleration equipment mounting method and cloud platform | |
CN110457109B (en) | Multi-window parallel method and device, terminal and storage medium | |
CN109716735B (en) | System and method for sharing application data between isolated applications executing on one or more application platforms | |
CN104980297A (en) | Virtual machine resource changing method and device, and virtualized network function device | |
CN113360893B (en) | Container-based intelligent contract execution method and device and storage medium | |
CN110750284B (en) | Application quick starting method, terminal and computer readable storage medium | |
CN102053871A (en) | Application program image display method and device | |
CN109388473A (en) | Android compatible layer implementation method and system based on mobile operating system | |
WO2022247698A1 (en) | Resource configuration method and apparatus, electronic device, and computer-readable storage medium | |
CN103443763A (en) | ISA bridging including support for call to overidding virtual functions | |
AU2019256257A1 (en) | Processor core scheduling method and apparatus, terminal, and storage medium | |
CN103645928A (en) | Software function module processing method and system | |
US10318343B2 (en) | Migration methods and apparatuses for migrating virtual machine including locally stored and shared data | |
CN109582453A (en) | The method, apparatus and electronic equipment of coordinated scheduling between multisystem | |
CN105701406A (en) | Method of Android platform for running traditional payment application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140312 |