WO2015176422A1 - Android system-based application management method and device thereof - Google Patents

Android system-based application management method and device thereof Download PDF

Info

Publication number
WO2015176422A1
WO2015176422A1 PCT/CN2014/086440 CN2014086440W WO2015176422A1 WO 2015176422 A1 WO2015176422 A1 WO 2015176422A1 CN 2014086440 W CN2014086440 W CN 2014086440W WO 2015176422 A1 WO2015176422 A1 WO 2015176422A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
window
instance
sub
application instance
Prior art date
Application number
PCT/CN2014/086440
Other languages
French (fr)
Chinese (zh)
Inventor
刘小锐
徐明良
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Priority to CN201410220241.7 priority Critical
Priority to CN201410220241.7A priority patent/CN104090746B/en
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015176422A1 publication Critical patent/WO2015176422A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs

Abstract

An Android system-based application management method and a device thereof. The method comprises the following steps: an application startup command of a user is received in a child window; a discrete system resource is allocated to a to-be-started application instance in the corresponding child window on the basis of the application startup command; and, by utilizing the discrete system resource, an application instance corresponding to the application startup command is started up and run in a screen area corresponding to the child window. The device comprises a module corresponding to the method and allows for implementation of a requirement of the user for using simultaneously multiple instances of one terminal application.

Description

一种基于安卓系统的应用管理方法及其装置Application management method based on Android system and device thereof 技术领域Technical field
本发明涉及通信领域,尤其涉及一种基于安卓系统的应用方法及其装置。The present invention relates to the field of communications, and in particular, to an application method based on an Android system and an apparatus therefor.
背景技术Background technique
随着装载有安卓(Android)系统的智能终端的普及,以及移动互联网时代的到来,手机终端和平板电脑越来越成为个人的信息中心和娱乐中心。就安卓智能终端的发展趋势来看,大屏幕、高分辨率、强劲的处理能力和存储能力的PC化终端越来越成为更多人群的喜爱,这方面以大屏手机和平板电脑为代表。With the popularity of smart terminals loaded with Android (Android) systems and the advent of the mobile Internet era, mobile terminals and tablets are increasingly becoming personal information centers and entertainment centers. As far as the development trend of Android smart terminals is concerned, PC-based terminals with large screen, high resolution, strong processing power and storage capacity are becoming more and more popular among people. This aspect is represented by large-screen mobile phones and tablet computers.
就目前手机的硬件配置水平而言,处理能力和计算能力已经和个人PC不相上下,但是安卓系统提供的应用程序管理方法,从本质上说还是单任务机制,无法做到多个应用程序或者说多个任务窗口在手机屏幕上同时显示并同时运行。然而从安卓智能终端的应用场景来看,用户越来越多地希望能够在安卓系统终端上运行一个应用的多个实例,例如:As far as the current hardware configuration level of the mobile phone is concerned, the processing power and computing power are comparable to those of the personal PC, but the application management method provided by the Android system is essentially a single task mechanism, and cannot be used for multiple applications or Say that multiple task windows are displayed simultaneously on the phone screen and run simultaneously. However, from the application scenario of the Android smart terminal, users are increasingly hoping to run multiple instances of an application on the Android system terminal, for example:
需要同时调用两个计算器应用,对比两次计算的结果差异;需要同时调用两个图库应用,方便用户同时查看两张图片,进行比对;需要同时登录同一个应用的两个帐号,比如QQ,微博,微信等应用,方便两个帐号同时在线进行信息查看和收发;需要同时调用两个文件管理器应用,进行不同文件夹下的文件对比和使用;需要同时调用两个短信应用,方便用户把一条短信中的信息提取到另外一条正在编辑的短信中。You need to call two calculator applications at the same time, compare the difference between the two calculations; you need to call two gallery applications at the same time, so that users can view two images at the same time for comparison; you need to log in to the same application's two accounts at the same time, such as QQ. , Weibo, WeChat and other applications, convenient for two accounts to view and send information online at the same time; need to call two file manager applications at the same time, compare and use files under different folders; need to call two SMS applications at the same time, convenient The user extracts the information in one text message to another text message being edited.
安卓系统现有的这种应用程序管理方法,不仅难以满足用户在大屏幕终端上的应用程序操作需求,而且对于目前终端越来越高的处理能力来说也是一种浪费,因为目前安卓的这种单任务机制无法充分利用手机终端的处理能力。 The existing application management method of Android system is not only difficult to meet the application operation requirements of the user on the large-screen terminal, but also a waste of the higher processing capacity of the current terminal, because the current Android A single-tasking mechanism cannot fully utilize the processing power of mobile terminals.
发明内容Summary of the invention
有鉴于此,本发明提出一种基于安卓系统的应用管理方法及其装置,能够允许安卓终端屏幕上多个任务窗口同时显示并同时运行。In view of this, the present invention provides an Android-based application management method and apparatus thereof, which can allow multiple task windows on an Android terminal screen to be simultaneously displayed and run simultaneously.
基于上述目的,本发明所提供的基于安卓系统的应用管理方法,包括如下步骤:Based on the above objective, the Android system-based application management method provided by the present invention includes the following steps:
在子窗口内接收用户的应用启动指令;Receiving an application start instruction of the user in the child window;
依据所述应用启动指令,为相应子窗口内待启动的应用实例分配独立的系统资源;Assigning independent system resources to the application instance to be started in the corresponding sub-window according to the application startup instruction;
利用所述独立的系统资源在所述子窗口对应的屏幕区域内启动并运行所述应用启动指令对应的应用实例。And using the independent system resource to start and run an application instance corresponding to the application startup instruction in a screen area corresponding to the sub-window.
可选的,在子窗口内接收用户的应用启动指令之前,还包括:Optionally, before receiving the user's application start command in the sub-window, the method further includes:
对应于子窗口,生成独立运行应用实例所需的管理机制;Corresponding to the child window, generating the management mechanism required to run the application instance independently;
所述管理机制包括应用程序层和应用程序框架层的管理机制。The management mechanism includes a management mechanism of an application layer and an application framework layer.
可选的,利用所述独立的资源启动并运行所述应用启动指令对应的应用实例的步骤包括:通过应用管理服务Activity Manager Service维护所述相应子窗口内所启动的应用实例的生命周期,并通过窗口管理服务Window Managerr Service独立管控所述相应子窗口内所启动的应用实例的窗口消息队列。Optionally, the step of using the independent resource to start and run the application instance corresponding to the application startup instruction includes: maintaining, by using an application management service Activity Manager Service, a life cycle of the application instance initiated in the corresponding sub-window, and The window message queue of the application instance launched in the corresponding sub-window is independently controlled by the window management service Window Managerr Service.
可选的,所述系统资源包括系统内存和系统缓存。Optionally, the system resources include system memory and system cache.
可选的,依据所述应用启动指令,为相应子窗口内所启动的应用实例分配对应的系统资源之前,还包括:Optionally, before the allocating corresponding system resources to the application instance that is started in the corresponding sub-window according to the application startup instruction, the method further includes:
判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例;当且仅当判断结果为否时,执行所述应用启动指令,为相应子窗口内所启动的应用实例分配对应的系统资源的步骤。Determining whether the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device; if and only if the determination result is no, executing the application startup instruction, and assigning corresponding to the application instance initiated in the corresponding sub-window The steps of the system resources.
可选的,判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例的步骤包括:Optionally, the step of determining whether the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device includes:
查询所述应用启动指令所对应的应用包名;Querying an application package name corresponding to the application startup instruction;
判断所述应用包名是在预设的名单中,则输出判断结果指示所述应用启 动指令所对应的应用实例是独占硬件设备的应用实例。Determining that the application package name is in a preset list, and outputting a determination result indicating that the application is started The application example corresponding to the instruction is an application instance of the exclusive hardware device.
可选的,判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例的步骤包括:Optionally, the step of determining whether the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device includes:
判断所述应用启动指令所对应的应用包名启动时底层库的状态满足设定的独占状态;则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。And determining that the state of the underlying library meets the set exclusive state when the application package name corresponding to the application startup instruction is started; and outputting the determination result that the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device.
可选的,接收用户的应用启动指令之前,还包括如下步骤:Optionally, before receiving the application start command of the user, the method further includes the following steps:
将至少一个子窗口映射到与其对应虚拟设备上;Mapping at least one child window to its corresponding virtual device;
所述虚拟设备维护至少一个能够为在该虚拟设备上运行的前台任务提供执行环境的虚拟设备环境。The virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
本发明提供一种基于安卓系统的应用管理装置,包括:The invention provides an application management device based on an Android system, comprising:
启动指令接收模块:设置为在子窗口内接收用户的应用启动指令;The startup instruction receiving module is configured to receive an application start instruction of the user in the sub-window;
资源分配模块:设置为依据所述应用启动指令,为相应子窗口内待启动的应用实例分配独立的系统资源;a resource allocation module: configured to allocate independent system resources for an application instance to be started in a corresponding sub-window according to the application startup instruction;
应用实例启动模块:设置为利用所述独立的系统资源在所述子窗口对应的屏幕区域内启动并运行所述应用启动指令对应的应用实例。An application instance startup module is configured to start and run an application instance corresponding to the application startup instruction in a screen area corresponding to the sub-window by using the independent system resource.
可选的,所述装置还包括:Optionally, the device further includes:
管理虚拟模块:设置为对应于子窗口,生成独立运行应用实例所需的管理机制;Management virtual module: set to correspond to the child window, generate the management mechanism required to run the application instance independently;
所述管理机制包括应用程序层和应用程序框架层的管理机制。The management mechanism includes a management mechanism of an application layer and an application framework layer.
可选的,所述应用实例启动模块还包括:Optionally, the application instance startup module further includes:
生命周期管理单元:设置为通过应用管理服务Activity Manager Service维护所述相应子窗口内所启动的应用实例的生命周期;a lifecycle management unit: configured to maintain a lifecycle of an application instance launched in the corresponding sub-window through an application management service Activity Manager Service;
消息队列管控单元:设置为通过窗口管理服务Window Managerr Service独立管控所述相应子窗口内所启动的应用实例的窗口消息队列。Message Queue Control Unit: Set to independently control the window message queue of the application instance launched in the corresponding sub-window through the window management service Window Managerr Service.
可选的,所述系统资源包括系统内存和系统缓存。Optionally, the system resources include system memory and system cache.
可选的,所述装置还包括:Optionally, the device further includes:
判断模块:设置为判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例; a judging module: configured to determine whether an application instance corresponding to the application startup instruction is an application instance of an exclusive hardware device;
当且仅当判断模块输出的判断结果指示所述应用启动指令所对应的应用实例不是独占硬件设备的应用实例时,所述应用启动模块启动所述应用启动指令所对应的应用实例。The application startup module starts an application instance corresponding to the application startup instruction, if and only if the determination result output by the determination module indicates that the application instance corresponding to the application startup instruction is not an application instance of the exclusive hardware device.
可选的,所述判断模块包括:Optionally, the determining module includes:
包名查询单元:设置为查询所述应用启动指令所对应的应用包名;a package name query unit: configured to query an application package name corresponding to the application startup instruction;
包名判断单元:设置为判断所述应用包名是在预设的名单中,则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。The package name judging unit is configured to determine that the application package name is in the preset list, and outputting the determination result that the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device.
可选的,所述判断模块包括:Optionally, the determining module includes:
底层库判断单元:设置为判断所述应用启动指令所对应的应用包名启动时底层库的状态满足设定的独占状态;则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。The bottom library determining unit is configured to determine that the state of the underlying library meets the set exclusive state when the application package name corresponding to the application startup instruction is started; and the outputting the determination result indicates that the application instance corresponding to the application startup instruction is an exclusive hardware Application examples of the device.
可选的,还包括:Optionally, it also includes:
子窗口映射模块:设置为将子窗口映射到与其对应的虚拟设备上;Sub-window mapping module: set to map the sub-window to its corresponding virtual device;
所述虚拟设备维护至少一个能够为在该虚拟设备上运行的前台任务提供执行环境的虚拟设备环境。The virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
本发明实施例提供的基于安卓系统的应用管理方法及其装置,在终端屏幕的子窗口中利用独立分配的资源,在对应的屏幕区域中启动并运行用户的应用启动指令所对应的应用实例,可实现一个安卓系统的应用在安卓终端上以个多实例同时运行,当用户需要进行同时调用两个图库应用、同时登陆一个应用的两个账号、同时调用两个文件管理器应用、同时调用两个短信应用等操作时,本发明实施例提供的方法允许用户在同一个安卓系统终端上启动并调用同一个应用的两个或两个以上的实例,满足了用户的需求,提高了安卓终端屏幕以及处理器处理能力的利用率。The Android system-based application management method and device thereof provided by the embodiment of the present invention use an independently allocated resource in a sub-window of the terminal screen to start and run an application instance corresponding to the user's application startup instruction in the corresponding screen area. An Android system application can be run simultaneously on a Android terminal with multiple instances. When the user needs to simultaneously call two gallery applications, simultaneously log in two accounts of one application, simultaneously call two file manager applications, and simultaneously call two. When the short message application or the like is operated, the method provided by the embodiment of the present invention allows the user to start and call two or more instances of the same application on the same Android system terminal, satisfying the user's needs, and improving the screen of the Android terminal. And the utilization of processor processing power.
附图概述BRIEF abstract
图1为本发明实施例的基于安卓系统的应用管理方法流程示意图;1 is a schematic flowchart of an application management method based on an Android system according to an embodiment of the present invention;
图2A-2B为本发明一种实施例的安卓系统终端呈现多实例时的界面示意 图;2A-2B are schematic diagrams of an interface when an Android system terminal presents multiple instances according to an embodiment of the present invention; Figure
图3为本发明一种实施例的基于安卓系统的应用管理方法流程示意图;FIG. 3 is a schematic flowchart of an application management method based on an Android system according to an embodiment of the present invention; FIG.
图4为本发明实施例的基于安卓系统的应用管理装置结构示意图。FIG. 4 is a schematic structural diagram of an application management apparatus based on an Android system according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
为了给出有效的实现方案,本发明实施例提供了以下实施例,以下结合说明书附图对本发明的实施例进行说明。In order to provide an effective implementation, the following embodiments are provided in the embodiments of the present invention. The embodiments of the present invention are described below in conjunction with the accompanying drawings.
首先,本发明提供一种基于安卓系统的应用管理方法,包括如下步骤:First, the present invention provides an application management method based on an Android system, including the following steps:
在子窗口内接收用户的应用启动指令;Receiving an application start instruction of the user in the child window;
依据所述应用启动指令,为相应子窗口内启动的应用实例分配独立的系统资源;Allocating independent system resources for the application instance initiated in the corresponding sub-window according to the application startup instruction;
利用所述独立的系统资源,在所述子窗口对应的屏幕区域内启动并运行所述应用启动指令对应的应用实例。Using the independent system resources, an application instance corresponding to the application startup instruction is started and executed in a screen area corresponding to the sub-window.
本发明提供的基于安卓系统的应用管理方法,在终端屏幕的子窗口中利用独立分配的资源,在对应的屏幕区域中启动并运行用户的应用启动指令所对应的应用实例,可实现一个安卓系统的应用在安卓终端上以个多实例同时运行,当用户需要进行同时调用两个图库应用、同时登陆一个应用的两个账号、同时调用两个文件管理器应用、同时调用两个短信应用等操作时,本发明提供的方法允许用户在同一个安卓系统终端上启动并调用同一个应用的两个或两个以上的实例,满足了用户的需求,提高了安卓终端屏幕以及处理器处理能力的利用率。The Android system-based application management method provided by the present invention utilizes independently allocated resources in a sub-window of the terminal screen, and starts and runs an application instance corresponding to the user's application startup instruction in the corresponding screen area, and can implement an Android system. The application runs simultaneously on the Android terminal with multiple instances. When the user needs to call two gallery applications at the same time, log in two accounts of one application at the same time, call two file manager applications at the same time, and call two SMS applications at the same time. The method provided by the present invention allows a user to start and call two or more instances of the same application on the same Android system terminal, satisfying the user's needs, and improving the utilization of the Android terminal screen and the processor processing capability. rate.
在一些实施例中,所述基于安卓系统的应用管理方法包括如图1所示的步骤:In some embodiments, the Android system-based application management method includes the steps shown in FIG. 1:
步骤101:在子窗口内接收用户的应用启动指令。Step 101: Receive an application start instruction of the user in the sub-window.
作为一个实施例,所述子窗口包括可以在安卓终端部分屏幕区域显示的窗口。它可以是与其它窗口之间具有子父关系的子窗口,也可以是与其它任意窗口之间都不存在子父关系的子窗口。As an embodiment, the sub-window includes a window that can be displayed in a portion of the screen area of the Android terminal. It can be a child window with a child parent relationship with other windows, or a child window with no child parent relationship with any other window.
作为一个实施例,安卓系统终端上至少存在两个子窗口,且每个子窗口 所运行的应用实例为同一个安卓应用的应用实例。As an embodiment, there are at least two child windows on the Android system terminal, and each child window The running application instance is an application instance of the same Android application.
步骤102:依据所述应用启动指令,为相应子窗口内待启动的应用实例分配独立的系统资源。Step 102: Allocate independent system resources for the application instance to be started in the corresponding sub-window according to the application startup instruction.
所述独立系统资源的分配,可通过框架层的资源管理服务(Resource Managerr Service)为所述应用实例申请独立的系统资源,从而可以保证同一个应用的多个实例在进行系统资源调度时不互相干涉。The allocation of the independent system resources may be applied to the application instance by using a resource management service (Resource Managerr Service) of the framework layer, so that multiple instances of the same application can be guaranteed not to each other when performing system resource scheduling. put one's oar in.
步骤103:利用所述独立的系统资源,在所述子窗口对应的屏幕区域内启动并运行所述应用启动指令对应的应用实例。Step 103: Start and run an application instance corresponding to the application startup instruction in a screen area corresponding to the sub-window by using the independent system resource.
在一些实施例中,利用所述独立资源,在子窗口对应的屏幕区域内启动相应的应用实例,并对所述相应的应用实例进行维护,单独管控所述相应的应用实例的创建(Create)、暂停(Pause)、Resume(恢复)、退出(Quit)、销毁(Destroy)等状态,使得某一子窗口对应的屏幕区域内的应用实例生命周期变化时,不会对其它子窗口对应的屏幕区域内的应用实例生命周期状态造成影响。In some embodiments, the independent application is used to initiate a corresponding application instance in a screen area corresponding to the child window, and the corresponding application instance is maintained, and the creation of the corresponding application instance is separately controlled (Create). , Pause, Resume, Quit, Destroy, etc., so that when the application instance life cycle in the screen area corresponding to a sub-window changes, the screen corresponding to other sub-windows will not be displayed. The impact of the application instance lifecycle state within the zone.
在一些实施例中,当终端屏幕存在多个子窗口时,这些子窗口可以是安卓终端屏幕划分所形成的子窗口,如图2A所示的安卓终端屏幕201,包括屏幕201横向分割所形成的两个子窗口,即图中所示的第一子窗口和第二子窗口,在所述第一子窗口中,运行第一实例;在所述第二子窗口中,运行第二实例;每个子窗口对应于安卓终端屏幕的部分区域。在如图2B所示的安卓终端屏幕202上,第一子窗口和第二子窗口为屏幕202纵向分割所形成的子窗口。所述第一实例和第二实例可以是同一个安卓应用的实例,也可以是不同安卓应用的实例。In some embodiments, when there are multiple sub-windows in the terminal screen, the sub-windows may be sub-windows formed by the screen division of the Android terminal, such as the Android terminal screen 201 shown in FIG. 2A, including two formed by the horizontal division of the screen 201. a child window, that is, a first child window and a second child window shown in the figure, in the first child window, running a first instance; in the second child window, running a second instance; each child window Corresponds to a partial area of the Android terminal screen. On the Android terminal screen 202 as shown in FIG. 2B, the first sub-window and the second sub-window are sub-windows formed by the vertical division of the screen 202. The first instance and the second instance may be instances of the same Android application, or may be instances of different Android applications.
在其他实施例中,安卓系统终端上还可设置两个以上的子窗口,所有子窗口之间不相互重叠,每个子窗口对应于安卓屏幕上部分区域。In other embodiments, more than two sub-windows may be disposed on the Android system terminal, and all the sub-windows do not overlap each other, and each sub-window corresponds to a partial area on the Android screen.
在一些实施例中,依据所述应用启动指令,依据所述应用启动指令,为相应子窗口内启动的应用实例分配独立的系统资源之前,还包括:In some embodiments, according to the application startup instruction, before assigning independent system resources to the application instance launched in the corresponding sub-window according to the application startup instruction, the method further includes:
对应于每个应用实例,生成其运行所需的管理机制;Corresponding to each application instance, generating the management mechanism required for its operation;
所述管理机制包括应用程序层和应用程序框架层的管理机制。The management mechanism includes a management mechanism of an application layer and an application framework layer.
在上述实施例中,对应于一个应用实例,虚拟生成其运行所需的管理机 制,使得每个实例均对应一套管理机制,从而可实现多个实例之间生命周期的相互独立。In the above embodiment, corresponding to an application instance, virtual generation of the management machine required for its operation System, so that each instance corresponds to a set of management mechanisms, so that the life cycle of multiple instances can be independent of each other.
在一些实施例中,所述应用程序层的管理机制至少包括:In some embodiments, the management mechanism of the application layer includes at least:
在一些实施例中,具体的,所述应用程序框架层的管理机制至少包括应用程序框架层的显示管理服务Display Managerr Service、窗口管理服务Window Managerr Service、应用管理服务Activity Managerr Service、传感服务Sensor Service、输入管理服务Input Managerr Service、输入法服务Input Method Service、音频策略Audio Policy。In some embodiments, specifically, the management mechanism of the application framework layer includes at least a display management service of the application framework layer, a display manager service, a window management service, a window manager service, an application management service, an activity manager, and a sensor service. Service, Input Management Service Input Managerr Service, Input Method Service, Audio Policy Audio Policy.
在上述实施例中,安卓系统应用的每一个子窗口均具有独立的管理机制,各自维护相应实例的生命周期、资源调度、输入输出、存储控制等,将一台安卓系统终端虚拟为多台安卓系统终端,允许安卓系统应用在各自的窗口同时运行。In the above embodiment, each sub-window of the Android system application has an independent management mechanism, and each maintains the life cycle, resource scheduling, input and output, storage control, etc. of the corresponding instance, and virtualizes one Android system terminal into multiple Android devices. The system terminal allows Android applications to run simultaneously in their respective windows.
在一些实施例中,利用所述独立的资源启动并运行所述应用启动指令对应的应用实例的步骤具体包括:通过应用管理服务维护所述相应子窗口内所启动的应用实例的生命周期,并通过窗口管理服务Window Managerr Service独立管控所述相应子窗口内所启动的应用实例的窗口消息队列。In some embodiments, the step of using the independent resource to start and run the application instance corresponding to the application startup instruction specifically includes: maintaining, by using an application management service, a life cycle of the application instance initiated in the corresponding sub-window, and The window message queue of the application instance launched in the corresponding sub-window is independently controlled by the window management service Window Managerr Service.
具体的,可通过应用管理服务维护相应的子窗口内所启动的应用实例的生命周期。使得所有实例的生命周期相互独立,在一个实例状态发生变化时,不会引起另外一个实例的状态变化。Specifically, the application management service can maintain the life cycle of the application instance initiated in the corresponding sub-window. Make the lifecycle of all instances independent of each other, and when one instance state changes, it will not cause the state change of another instance.
具体的,可通过窗口管理服务将相应实例呈现的子窗口进行单独维护,对每一个子窗口维护一个窗口消息队列,所有窗口消息队列之间保持独立,从而保证一个实例对应的子窗口状态变化不会影响到其它实例对应的子窗口。Specifically, the window management service can separately maintain the child window presented by the corresponding instance, and maintain a window message queue for each child window, and all the window message queues remain independent, thereby ensuring that the state of the child window corresponding to an instance does not change. Will affect the child window corresponding to other instances.
在一些实施例中,依据所述应用启动指令,为相应子窗口内所启动的应用实例分配对应的资源之前,还包括:判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例;当且仅当判断结果为否时,执行所述应用启动指令,为相应子窗口内所启动的应用实例分配对应的系统资源的步骤。In some embodiments, before the allocating the corresponding resource to the application instance that is started in the corresponding sub-window according to the application startup instruction, the method further includes: determining whether the application instance corresponding to the application startup instruction is an exclusive hardware device application An example; if, and only if the determination result is no, executing the application startup instruction to allocate a corresponding system resource for the application instance launched in the corresponding sub-window.
具体的,当确定所述启动指令所对应的应用实例为上述独占硬件设备的 应用的实例时,可在安卓终端一个子窗口中启动所述应用的实例,并通过资源锁保护冻结其余子窗口,保证所述独占硬件设备的应用仅在一个子窗口中呈现,维护系统运行的稳定性。Specifically, when determining that the application instance corresponding to the startup instruction is the foregoing exclusive hardware device When the instance of the application is used, an instance of the application may be started in a sub-window of the Android terminal, and the remaining sub-windows are frozen by the resource lock protection, so that the application of the exclusive hardware device is only presented in one sub-window, and the maintenance system is running. stability.
具体的,在另一些实施例中,当确定所述启动指令所对应的应用实例为独占硬件设备的应用的实例时,可在应用实例启动过程中初始化底层硬件设备库时进行打断,使得该启动指令所对应的应用的实例无法在安卓系统终端呈现多实例。Specifically, in another embodiment, when it is determined that the application instance corresponding to the startup instruction is an instance of an application that is exclusive to the hardware device, the bottom hardware device library may be interrupted during the application instance startup process, so that the An instance of the application corresponding to the startup command cannot render multiple instances in the Android terminal.
由于安卓系统终端的某些应用启动时需要独占硬件资源,若多个实例同时呈现则会引起硬件资源的抢占,如照相机应用、摄像机应用、手电筒应用等,最好应避免这种应用的多个实例同时启动运行。因此,在上述实施例中,首先判断待启动的实例是不是独占硬件设备资源的应用实例。Since some applications of the Android system terminal need to be exclusive hardware resources when starting, if multiple instances are simultaneously presented, hardware resources will be preempted, such as camera applications, camera applications, flashlight applications, etc., it is best to avoid multiple applications of this kind. The instance starts running at the same time. Therefore, in the foregoing embodiment, it is first determined whether the instance to be started is an application instance that exclusively reserves hardware device resources.
在一些实施例中,判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例的步骤具体包括:In some embodiments, the step of determining whether the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device specifically includes:
查询所述应用启动指令所对应的应用包名;Querying an application package name corresponding to the application startup instruction;
判断所述应用包名是否在预设的名单中,若是,则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。Determining whether the application package name is in a preset list, and if yes, outputting a determination result indicating that the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device.
上述实施例中,预设的名单,可以包含独占硬件设备的安卓系统终端内置应用的启动包名。In the foregoing embodiment, the preset list may include a startup package name of an Android system terminal built-in application of the exclusive hardware device.
在一些实施例中,判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例的步骤具体包括:In some embodiments, the step of determining whether the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device specifically includes:
判断所述应用启动指令所对应的应用包名启动时底层库的状态是否满足设定的独占状态;若是,则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。Determining whether the state of the underlying library when the application package name corresponding to the application startup instruction is started meets the set exclusive state; if yes, outputting the determination result indicating that the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device .
对于用户在安卓系统终端安装的第三方应用,由于不可预知应用包名,因此在上述实施例中使用底层库过滤的方式,当用户试图启动所述第三方应用时,通过查询底层库状态判断该第三方应用是否为独占硬件设备的应用。For the third-party application installed by the user in the Android system terminal, because the application package name is unpredictable, in the above embodiment, the underlying library filtering method is used. When the user attempts to start the third-party application, the state of the underlying library is determined by querying the underlying library state. Whether the third-party application is an exclusive hardware device application.
在一些实施例中,接收用户的应用启动指令之前,还包括如下步骤:In some embodiments, before receiving the user's application startup instruction, the method further includes the following steps:
将子窗口映射到与其对应虚拟设备上;Map the child window to its corresponding virtual device;
所述虚拟设备维护至少一个能够为在该虚拟设备上运行的前台任务提供 执行环境的虚拟设备环境。The virtual device maintains at least one capable of providing a foreground task running on the virtual device The virtual device environment of the execution environment.
在上述实施例中,将子窗口映射到与其对应的虚拟设备上,使得安卓系统终端上能够多个任务同时运行,最大限度地发挥了硬件资源的作用,提高了硬件资源的使用效率。In the above embodiment, the sub-window is mapped to the corresponding virtual device, so that multiple tasks can be simultaneously run on the Android system terminal, the function of the hardware resource is maximized, and the use efficiency of the hardware resource is improved.
在一些实施例中,假设在安卓终端设置两个子窗口,在每个子窗口中分别运行安卓系统应用的实例,则本发明提供的基于安卓系统的应用管理方法包括如图3所示的步骤:In some embodiments, the Android system-based application management method provided by the present invention includes the steps shown in FIG. 3, assuming that two sub-windows are set in the Android terminal and an instance of the Android system application is respectively run in each sub-window:
步骤301:将两个子窗口分别映射到与其对应虚拟设备上。Step 301: Map the two sub-windows to their corresponding virtual devices.
步骤302:对应于每个子窗口,生成独立运行应用实例所需的管理机制。Step 302: Corresponding to each sub-window, generating a management mechanism required to independently run the application instance.
步骤303:在一个子窗口内接收用户的应用启动指令。Step 303: Receive an application start instruction of the user in a sub-window.
步骤304:判断上一步骤中接收的应用启动指令所对应的应用实例是否是独占硬件设备的应用实例,若否,进入步骤305。Step 304: Determine whether the application instance corresponding to the application startup instruction received in the previous step is an application instance of the exclusive hardware device. If no, go to step 305.
步骤305:依据所述应用启动指令,为所述一个子窗口内待启动的应用实例分配独立的系统资源。Step 305: Allocate independent system resources for the application instance to be started in the one sub-window according to the application startup instruction.
步骤306:利用所述独立的系统资源在所述子窗口对应的屏幕区域内启动并运行所述应用启动指令对应的应用实例。Step 306: Start and run an application instance corresponding to the application startup instruction in a screen area corresponding to the sub-window by using the independent system resource.
步骤307:在另一个子窗口内接收用户的应用启动指令。Step 307: Receive an application start instruction of the user in another child window.
步骤308:判断上一步骤中接收的应用启动指令所对应的应用实例是否是独占硬件设备的应用实例,若否,进入步骤309。Step 308: Determine whether the application instance corresponding to the application startup instruction received in the previous step is an application instance of the exclusive hardware device, and if no, go to step 309.
步骤309:依据所述应用启动指令,为相应子窗口内待启动的应用实例分配独立的系统资源。Step 309: Allocate independent system resources for the application instance to be started in the corresponding sub-window according to the application startup instruction.
步骤310:利用所述独立的系统资源在所述另一个子窗口对应的屏幕区域内启动并运行所述应用启动指令对应的应用实例。Step 310: Start and run an application instance corresponding to the application startup instruction in a screen area corresponding to the another sub-window by using the independent system resource.
在其它实施例中,安卓系统终端所设置的子窗口可以是三个或更多个。In other embodiments, the sub-windows set by the Android system terminal may be three or more.
从上面所述可以看出,本发明提供的基于安卓系统的应用管理方法,为子窗口内待启动的应用实例分配独立的系统资源,使得安卓终端多个子窗口内启动的应用实例可以独立运行,从而能够实现一个安卓应用在安卓系统终端同时呈现多个实例,满足了用户在安卓系统终端同时运行一个应用的多个实例的需求,同时提高了安卓系统终端的处理能力利用率。 As can be seen from the above, the application management method based on the Android system provided by the present invention allocates independent system resources for the application instances to be started in the sub-window, so that the application instances launched in multiple sub-windows of the Android terminal can be independently operated. Therefore, an Android application can simultaneously present multiple instances in the Android system terminal, which satisfies the requirement that the user runs multiple instances of an application simultaneously in the Android system terminal, and improves the processing capacity utilization of the Android system terminal.
进一步,本发明还提供一种基于安卓系统的应用管理装置,结构如图4所示,包括:Further, the present invention further provides an application management device based on an Android system, and the structure is as shown in FIG. 4, including:
启动指令接收模块401:用于在子窗口内接收用户的应用启动指令;The startup instruction receiving module 401 is configured to receive an application start instruction of the user in the sub-window;
资源分配模块402:用于依据所述应用启动指令,为相应子窗口内待启动的应用实例分配独立的系统资源;The resource allocation module 402 is configured to allocate independent system resources for the application instance to be started in the corresponding sub-window according to the application startup instruction;
应用实例启动模块403:用于利用所述独立的系统资源在所述子窗口对应的屏幕区域内启动并运行所述应用启动指令对应的应用实例。The application instance startup module 403 is configured to start and run an application instance corresponding to the application startup instruction in a screen area corresponding to the sub-window by using the independent system resource.
本发明所提供的基于安卓系统的应用管理装置,设有资源分配模块,在终端屏幕的子窗口中利用独立分配的资源,从而允许在对应的屏幕区域中启动并运行用户的应用启动指令所对应的应用实例,可实现一个安卓系统的应用在安卓终端上以个多实例同时运行,当用户需要进行同时调用两个图库应用、同时登陆一个应用的两个账号、同时调用两个文件管理器应用、同时调用两个短信应用等操作时,本发明提供的方法允许用户在同一个安卓系统终端上启动并调用同一个应用的两个或两个以上的实例,满足了用户的需求,提高了安卓终端屏幕以及处理器处理能力的利用率。The application management device based on the Android system provided by the present invention is provided with a resource allocation module, which utilizes independently allocated resources in a sub-window of the terminal screen, thereby allowing the application start command of the user to be started and run in the corresponding screen area. The application example can realize that an Android application runs simultaneously on a multi-instance on an Android terminal. When the user needs to simultaneously call two gallery applications, simultaneously log in two accounts of one application, and simultaneously call two file manager applications. When the two SMS applications are invoked at the same time, the method provided by the present invention allows the user to start and call two or more instances of the same application on the same Android system terminal, satisfying the user's needs and improving the Android. Terminal screen and utilization of processor processing power.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
管理虚拟模块:用于对应于子窗口,生成独立运行应用实例所需的管理机制;Management virtual module: used to correspond to the child window, and generate the management mechanism required to run the application instance independently;
所述管理机制包括应用程序层和应用程序框架层的管理机制。The management mechanism includes a management mechanism of an application layer and an application framework layer.
在一些实施例中,所述应用实例启动模块还包括:In some embodiments, the application instance startup module further includes:
生命周期管理单元:通过应用管理服务Activity Manager Service维护所述相应子窗口内所启动的应用实例的生命周期;a lifecycle management unit: maintaining an application instance life cycle initiated in the corresponding sub-window through an application management service Activity Manager Service;
消息队列管控单元:用于通过窗口管理服务Window Managerr Service独立管控所述相应子窗口内所启动的应用实例的窗口消息队列。Message Queue Control Unit: used to independently control the window message queue of the application instance launched in the corresponding sub-window through the window management service Window Managerr Service.
在一些实施例中,所述系统资源包括系统内存和系统缓存。In some embodiments, the system resources include system memory and system cache.
在一些实施例中,所述还包括:In some embodiments, the method further includes:
过滤判断模块:用于判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例;a filtering judging module: configured to determine whether an application instance corresponding to the application startup instruction is an application instance of an exclusive hardware device;
当且仅当判断模块输出的判断结果指示所述应用启动指令所对应的应用 实例不是独占硬件设备的应用实例时,所述应用启动模块启动所述应用启动指令所对应的应用实例。If and only if the judgment result output by the judgment module indicates the application corresponding to the application start instruction When the instance is not an application instance of the hardware device, the application startup module starts an application instance corresponding to the application startup instruction.
在一些实施例中,所述过滤判断模块具体包括:In some embodiments, the filtering determining module specifically includes:
包名查询单元:用于查询所述应用启动指令所对应的应用包名;a package name query unit: configured to query an application package name corresponding to the application startup instruction;
包名判断单元:用于判断所述应用包名是否在预设的名单中,若是,则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。The package name judging unit is configured to determine whether the application package name is in a preset list, and if yes, outputting a judgment result indicating that the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device.
在一些实施例中,所述过滤判断模块具体包括:In some embodiments, the filtering determining module specifically includes:
底层库判断单元:用于判断所述应用启动指令所对应的应用包名启动时底层库的状态是否满足设定的独占状态;若是,则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。The bottom library determining unit is configured to determine whether the state of the underlying library when the application package name corresponding to the application startup instruction is started meets the set exclusive state; if yes, outputting the determination result indicating the application instance corresponding to the application startup instruction It is an application example of an exclusive hardware device.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
子窗口映射模块:用于将子窗口映射到与其对应的虚拟设备上;Sub-window mapping module: used to map a sub-window to its corresponding virtual device;
所述虚拟设备维护至少一个能够为在该虚拟设备上运行的前台任务提供执行环境的虚拟设备环境。The virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
在本发明的一种具体实施例中,假设在安卓终端设置两个子窗口,在每个子窗口中分别运行安卓系统应用的实例,所述基于安卓系统的应用管理装置包括如下结构:In a specific embodiment of the present invention, it is assumed that two sub-windows are set in an Android terminal, and an instance of an Android system application is separately run in each sub-window, and the Android-based application management device includes the following structure:
子窗口映射模块:用于将两个子窗口映射到与其对应的虚拟设备上。Sub-window mapping module: used to map two child windows to their corresponding virtual devices.
管理虚拟模块:用于对应于每一个子窗口,生成独立运行应用实例所需的管理机制。Management virtual module: used to generate the management mechanism required to run the application instance independently for each sub-window.
第一启动指令接收模块:用于在一个子窗口内接收用户的应用启动指令。The first startup instruction receiving module is configured to receive an application start instruction of the user in a sub-window.
第一过滤判断模块:用于判断所述第一启动指令接收模块接收到的应用启动指令所对应的应用实例是否是独占硬件设备的应用实例。The first filtering judging module is configured to determine whether the application instance corresponding to the application startup instruction received by the first startup instruction receiving module is an application instance of the exclusive hardware device.
第一资源分配模块:用于当所述第一过滤判断模块确定所述应用启动指令所对应的应用实例不是独占硬件设备的应用实例时,依据所述应用启动指令,为所述一个子窗口内待启动的应用实例分配独立的系统资源。a first resource allocation module, configured to: when the first filtering determination module determines that the application instance corresponding to the application startup instruction is not an application instance of the exclusive hardware device, according to the application startup instruction, the one of the sub-windows The application instance to be started allocates independent system resources.
第一应用实例启动模块:用于利用所述第一资源分配模块分配的独立的系统资源,在所述一个子窗口对应的屏幕区域内启动并运行相应的应用启动 指令对应的应用实例。a first application instance startup module: configured to start and run a corresponding application startup in a screen area corresponding to the one sub-window by using the independent system resource allocated by the first resource allocation module The application instance corresponding to the instruction.
第二启动指令接收模块:用于在另一个子窗口内接收用户的应用启动指令。The second startup instruction receiving module is configured to receive an application start instruction of the user in another sub-window.
第二过滤判断模块:用于判断所述第二启动指令接收模块接收到的应用启动指令所对应的应用实例是否是独占硬件设备的应用实例。The second filtering judging module is configured to determine whether the application instance corresponding to the application startup instruction received by the second startup instruction receiving module is an application instance of the exclusive hardware device.
第二资源分配模块:用于当所述第二过滤判断模块确定所述应用启动指令所对应的应用实例不是独占硬件设备的应用实例时,依据所述应用启动指令,为所述另一个子窗口内待启动的应用实例分配独立的系统资源。a second resource allocation module, configured to: when the second filtering determination module determines that the application instance corresponding to the application startup instruction is not an application instance of the exclusive hardware device, according to the application startup instruction, the another sub-window Application instances that are to be started are allocated independent system resources.
第二应用实例启动模块:用于利用所述第二资源分配模块分配的独立的系统资源,在所述另一个子窗口对应的屏幕区域内启动并运行相应的应用启动指令对应的应用实例。The second application instance startup module is configured to start and run an application instance corresponding to the corresponding application startup instruction in the screen area corresponding to the another sub-window by using the independent system resource allocated by the second resource allocation module.
从上面所述可以看出,本发明提供的基于安卓系统的应用管理装置,设有资源分配模块,为子窗口内待启动的应用实例分配独立的系统资源,使得安卓终端多个子窗口内启动的应用实例可以独立运行,从而能够实现一个安卓应用在安卓系统终端同时呈现多个实例,满足了用户在安卓系统终端同时运行一个应用的多个实例的需求,同时提高了安卓系统终端的处理能力利用率。As can be seen from the above, the application management device based on the Android system provided by the present invention is provided with a resource allocation module, which allocates independent system resources for the application instance to be started in the child window, so that the Android terminal is started in multiple sub-windows. The application instance can be run independently, so that an Android application can simultaneously present multiple instances in the Android system terminal, which satisfies the requirement that the user runs multiple instances of an application simultaneously in the Android system terminal, and improves the processing capability of the Android system terminal. rate.
应当理解,本说明书所描述的多个实施例仅用于说明和解释本发明,并不用于限定本发明。并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。It is to be understood that the various embodiments of the present invention are intended to illustrate and explain the invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention
工业实用性Industrial applicability
本发明实施例提供的方法允许用户在同一个安卓系统终端上启动并调用同一个应用的两个或两个以上的实例,满足了用户的需求,提高了安卓终端屏幕以及处理器处理能力的利用率。 The method provided by the embodiment of the present invention allows a user to start and call two or more instances of the same application on the same Android system terminal, satisfies the needs of the user, and improves the utilization of the Android terminal screen and the processor processing capability. rate.

Claims (16)

  1. 一种基于安卓系统的应用管理方法,包括如下步骤:An application management method based on Android system, comprising the following steps:
    在子窗口内接收用户的应用启动指令;Receiving an application start instruction of the user in the child window;
    依据所述应用启动指令,为相应子窗口内待启动的应用实例分配独立的系统资源;Assigning independent system resources to the application instance to be started in the corresponding sub-window according to the application startup instruction;
    利用所述独立的系统资源在所述子窗口对应的屏幕区域内启动并运行所述应用启动指令对应的应用实例。And using the independent system resource to start and run an application instance corresponding to the application startup instruction in a screen area corresponding to the sub-window.
  2. 根据权利要求1所述的方法,其中,在子窗口内接收用户的应用启动指令之前,还包括:The method of claim 1, wherein before receiving the user's application start instruction in the sub-window, the method further comprises:
    对应于子窗口,生成独立运行应用实例所需的管理机制;Corresponding to the child window, generating the management mechanism required to run the application instance independently;
    所述管理机制包括应用程序层和应用程序框架层的管理机制。The management mechanism includes a management mechanism of an application layer and an application framework layer.
  3. 根据权利要求2所述的方法,其中,利用所述独立的资源启动并运行所述应用启动指令对应的应用实例的步骤包括:通过应用管理服务Activity Manager Service维护所述相应子窗口内所启动的应用实例的生命周期,并通过窗口管理服务Window Managerr Service独立管控所述相应子窗口内所启动的应用实例的窗口消息队列。The method according to claim 2, wherein the step of starting and running the application instance corresponding to the application startup instruction by using the independent resource comprises: maintaining, by the application management service Activity Manager Service, the startup initiated in the corresponding sub-window The life cycle of the application instance, and the window message queue of the application instance launched in the corresponding sub-window is independently controlled by the window management service Window Managerr Service.
  4. 根据权利要求1所述的方法,其中,所述系统资源包括系统内存和系统缓存。The method of claim 1 wherein said system resources comprise system memory and system cache.
  5. 根据权利要求1所述的方法,其中,依据所述应用启动指令,为相应子窗口内所启动的应用实例分配对应的系统资源之前,还包括:The method of claim 1, wherein before the assigning the corresponding system resource to the application instance launched in the corresponding sub-window according to the application startup instruction, the method further includes:
    判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例;当且仅当所述应用启动指令所对应的应用实例不是独占硬件设备的应用实例时,执行所述应用启动指令,为相应子窗口内所启动的应用实例分配对应的系统资源的步骤。Determining whether the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device; if the application instance corresponding to the application startup instruction is not an application instance of the exclusive hardware device, executing the application startup instruction, The step of assigning corresponding system resources to application instances launched within the corresponding child window.
  6. 根据权利要求5所述的方法,其中,判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例的步骤包括:The method of claim 5, wherein the step of determining whether the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device comprises:
    查询所述应用启动指令所对应的应用包名;Querying an application package name corresponding to the application startup instruction;
    判断所述应用包名是在预设的名单中,则输出判断结果指示所述应用启 动指令所对应的应用实例是独占硬件设备的应用实例。Determining that the application package name is in a preset list, and outputting a determination result indicating that the application is started The application example corresponding to the instruction is an application instance of the exclusive hardware device.
  7. 根据权利要求5所述的方法,其中,判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例的步骤包括:The method of claim 5, wherein the step of determining whether the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device comprises:
    判断所述应用启动指令所对应的应用包名启动时底层库的状态满足设定的独占状态;则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。And determining that the state of the underlying library meets the set exclusive state when the application package name corresponding to the application startup instruction is started; and outputting the determination result that the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device.
  8. 根据权利要求1-7中任意一项所述的方法,其中,接收用户的应用启动指令之前,还包括如下步骤:The method according to any one of claims 1 to 7, wherein before receiving the application activation instruction of the user, the method further comprises the following steps:
    将至少一个子窗口映射到与其对应虚拟设备上;Mapping at least one child window to its corresponding virtual device;
    所述虚拟设备维护至少一个能够为在该虚拟设备上运行的前台任务提供执行环境的虚拟设备环境。The virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
  9. 一种基于安卓系统的应用管理装置,包括:An application management device based on Android system, comprising:
    启动指令接收模块:设置为在子窗口内接收用户的应用启动指令;The startup instruction receiving module is configured to receive an application start instruction of the user in the sub-window;
    资源分配模块:设置为依据所述应用启动指令,为相应子窗口内待启动的应用实例分配独立的系统资源;a resource allocation module: configured to allocate independent system resources for an application instance to be started in a corresponding sub-window according to the application startup instruction;
    应用实例启动模块:设置为利用所述独立的系统资源在所述子窗口对应的屏幕区域内启动并运行所述应用启动指令对应的应用实例。An application instance startup module is configured to start and run an application instance corresponding to the application startup instruction in a screen area corresponding to the sub-window by using the independent system resource.
  10. 根据权利要求9所述的装置,所述装置还包括:The apparatus of claim 9 further comprising:
    管理虚拟模块:设置为对应于子窗口,生成独立运行应用实例所需的管理机制;Management virtual module: set to correspond to the child window, generate the management mechanism required to run the application instance independently;
    所述管理机制包括应用程序层和应用程序框架层的管理机制。The management mechanism includes a management mechanism of an application layer and an application framework layer.
  11. 根据权利要求10所述的装置,其中,所述应用实例启动模块还包括:The device of claim 10, wherein the application instance launching module further comprises:
    生命周期管理单元:设置为通过应用管理服务Activity Manager Service 维护所述相应子窗口内所启动的应用实例的生命周期;a lifecycle management unit: configured to maintain a lifecycle of an application instance launched in the corresponding sub-window through an application management service Activity Manager Service;
    消息队列管控单元:设置为通过窗口管理服务Window Managerr Service独立管控所述相应子窗口内所启动的应用实例的窗口消息队列。Message Queue Control Unit: Set to independently control the window message queue of the application instance launched in the corresponding sub-window through the window management service Window Managerr Service.
  12. 根据权利要求9所述的装置,其中,所述系统资源包括系统内存和系统缓存。The apparatus of claim 9 wherein said system resources comprise system memory and system cache.
  13. 根据权利要求9所述的装置,还包括: The apparatus of claim 9 further comprising:
    判断模块:设置为判断所述应用启动指令所对应的应用实例是否是独占硬件设备的应用实例;a judging module: configured to determine whether an application instance corresponding to the application startup instruction is an application instance of an exclusive hardware device;
    当且仅当判断模块输出的判断结果指示所述应用启动指令所对应的应用实例不是独占硬件设备的应用实例时,所述应用启动模块启动所述应用启动指令所对应的应用实例。The application startup module starts an application instance corresponding to the application startup instruction, if and only if the determination result output by the determination module indicates that the application instance corresponding to the application startup instruction is not an application instance of the exclusive hardware device.
  14. 根据权利要求13所述的装置,其中,所述判断模块包括:The apparatus of claim 13, wherein the determining module comprises:
    包名查询单元:设置为查询所述应用启动指令所对应的应用包名;a package name query unit: configured to query an application package name corresponding to the application startup instruction;
    包名判断单元:设置为判断所述应用包名是在预设的名单中,则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。The package name judging unit is configured to determine that the application package name is in the preset list, and outputting the determination result that the application instance corresponding to the application startup instruction is an application instance of the exclusive hardware device.
  15. 根据权利要求13所述的装置,其中,所述判断模块包括:The apparatus of claim 13, wherein the determining module comprises:
    底层库判断单元:设置为判断所述应用启动指令所对应的应用包名启动时底层库的状态满足设定的独占状态,则输出判断结果指示所述应用启动指令所对应的应用实例是独占硬件设备的应用实例。The bottom library determining unit is configured to determine that the state of the underlying library meets the set exclusive state when the application package name corresponding to the application startup instruction is started, and the outputting the determination result indicates that the application instance corresponding to the application startup instruction is exclusive hardware. Application examples of the device.
  16. 根据权利要求9-15中任意一项所述的装置,还包括:The apparatus of any of claims 9-15, further comprising:
    子窗口映射模块:设置为将子窗口映射到与其对应的虚拟设备上;Sub-window mapping module: set to map the sub-window to its corresponding virtual device;
    所述虚拟设备维护至少一个能够为在该虚拟设备上运行的前台任务提供执行环境的虚拟设备环境。 The virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
PCT/CN2014/086440 2014-05-22 2014-09-12 Android system-based application management method and device thereof WO2015176422A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410220241.7 2014-05-22
CN201410220241.7A CN104090746B (en) 2014-05-22 2014-05-22 A kind of application management method based on android system and its device

Publications (1)

Publication Number Publication Date
WO2015176422A1 true WO2015176422A1 (en) 2015-11-26

Family

ID=51638465

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086440 WO2015176422A1 (en) 2014-05-22 2014-09-12 Android system-based application management method and device thereof

Country Status (2)

Country Link
CN (1) CN104090746B (en)
WO (1) WO2015176422A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589738A (en) * 2014-10-23 2016-05-18 中兴通讯股份有限公司 Concurrent processing method of intelligent split screen and corresponding intelligent terminal
CN107291322A (en) * 2016-04-11 2017-10-24 中兴通讯股份有限公司 A kind of information processing method and terminal
CN106547451A (en) * 2016-10-27 2017-03-29 宇龙计算机通信科技(深圳)有限公司 Open application program method more, open application programmer and terminal more

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130061250A1 (en) * 2011-09-01 2013-03-07 Govind Kothandapani Methods, Devices and Computer Program Products for Confluence of Multiple Operating Systems
CN103019942A (en) * 2012-12-31 2013-04-03 广东欧珀移动通信有限公司 Method and system for automatically testing applications to be tested based on android system
CN103282883A (en) * 2011-01-04 2013-09-04 摩托罗拉移动有限责任公司 Systems and methods for displaying android applications launchers in webtop application tray
CN103533165A (en) * 2013-10-10 2014-01-22 成都达信通通讯设备有限公司 Multi-APN (Access Point Name) concurrency method supporting Android applications of handheld equipment and system thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102637125A (en) * 2011-02-12 2012-08-15 中兴通讯股份有限公司 Display method and mobile terminal of grid interface
CN103581754A (en) * 2012-07-20 2014-02-12 腾讯科技(深圳)有限公司 Data display method and intelligent equipment
CN103699312B (en) * 2013-12-30 2017-05-03 中科创达软件股份有限公司 Multi-application foreground running implementation method and device and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103282883A (en) * 2011-01-04 2013-09-04 摩托罗拉移动有限责任公司 Systems and methods for displaying android applications launchers in webtop application tray
US20130061250A1 (en) * 2011-09-01 2013-03-07 Govind Kothandapani Methods, Devices and Computer Program Products for Confluence of Multiple Operating Systems
CN103019942A (en) * 2012-12-31 2013-04-03 广东欧珀移动通信有限公司 Method and system for automatically testing applications to be tested based on android system
CN103533165A (en) * 2013-10-10 2014-01-22 成都达信通通讯设备有限公司 Multi-APN (Access Point Name) concurrency method supporting Android applications of handheld equipment and system thereof

Also Published As

Publication number Publication date
CN104090746A (en) 2014-10-08
CN104090746B (en) 2018-10-02

Similar Documents

Publication Publication Date Title
US10437631B2 (en) Operating system hot-switching method and apparatus and mobile terminal
US10108251B2 (en) Virtualizing battery across a group of personal mobile devices
KR20110002810A (en) Securely using service providers in elastic computing systems and environments
US9558021B2 (en) System and method for cross-platform application execution and display
WO2016095383A1 (en) Method for implementing application call and virtual machine
US10832224B2 (en) Calendar based management of information technology (IT) tasks
US9218068B2 (en) Sharing data inputs between multiple peripheral devices and host by converting inputs into operating system independent or specific format(s) based on input device
US20190188030A1 (en) Terminal background application management method and apparatus
WO2015176422A1 (en) Android system-based application management method and device thereof
US20100211680A1 (en) Apparatus and method to allocate limited resources
CN105940375B (en) Dynamic reassignment for multiple operating system devices
CN110300328B (en) Video playing control method and device and readable storage medium
EP3133481B1 (en) Terminal device display method and terminal device
US9319246B2 (en) Voice-over-internet protocol (VOIP) application platform
US10489177B2 (en) Resource reconciliation in a virtualized computer system
US9735984B2 (en) Bursting cloud resources to affect state change performance
US20130219386A1 (en) Dynamic allocation of compute resources
US20210279095A1 (en) Interrupt Management for a Hypervisor
WO2015117445A1 (en) Method and device for processing task window
WO2015117539A1 (en) Method and apparatus for invoking application installed on electronic device
WO2017206901A1 (en) Process control method and related device
JP6088531B2 (en) Event service for local client applications through a local server
WO2017166207A1 (en) Cooperative scheduling of virtual machines
US9436505B2 (en) Power management for host with devices assigned to virtual machines
US20100293559A1 (en) Sharing input/output (i/o) resources across multiple computing systems and/or environments

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: 14892815

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14892815

Country of ref document: EP

Kind code of ref document: A1