CN104461663B - A kind of method, apparatus and mobile terminal for loading other mobile terminal applications - Google Patents

A kind of method, apparatus and mobile terminal for loading other mobile terminal applications Download PDF

Info

Publication number
CN104461663B
CN104461663B CN201410850821.4A CN201410850821A CN104461663B CN 104461663 B CN104461663 B CN 104461663B CN 201410850821 A CN201410850821 A CN 201410850821A CN 104461663 B CN104461663 B CN 104461663B
Authority
CN
China
Prior art keywords
mobile terminal
application
component
mobile
module
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.)
Active
Application number
CN201410850821.4A
Other languages
Chinese (zh)
Other versions
CN104461663A (en
Inventor
王伟
杜海燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410850821.4A priority Critical patent/CN104461663B/en
Publication of CN104461663A publication Critical patent/CN104461663A/en
Application granted granted Critical
Publication of CN104461663B publication Critical patent/CN104461663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明公开一种移动端应用中加载其它移动端应用的方法、装置和移动终端,其中该方法包括:在第一移动端应用的清单配置文件中为要调用的第二移动端应用的组件进行注册;第一移动端应用检测到对第二移动端应用入口的触发事件为第二移动端应用创建一指定进程或线程;检测到所述指定进程或线程的建立,在所述指定进程或线程中建立第二移动端应用的运行环境;在所述建立运行环境中加载第二移动端应用的组件进行运行。

The invention discloses a method, a device and a mobile terminal for loading other mobile applications in a mobile application, wherein the method includes: in the list configuration file of the first mobile application, perform Register; the first mobile terminal application detects that the trigger event to the second mobile terminal application entry creates a specified process or thread for the second mobile terminal application; detects the establishment of the specified process or thread, and in the specified process or thread An operating environment of the second mobile application is established in the operating environment; components of the second mobile application are loaded in the established operating environment to run.

Description

一种加载其它移动端应用的方法、装置和移动终端A method, device and mobile terminal for loading other mobile terminal applications

技术领域technical field

本发明属于浏览器技术领域,尤其涉及一种移动端应用中加载其它移动端应用的方法、装置和移动终端。The invention belongs to the technical field of browsers, and in particular relates to a method, a device and a mobile terminal for loading other mobile terminal applications in a mobile terminal application.

背景技术Background technique

目前,Android操作系统发展迅速,基于Android系统的移动设备已经占据了移动市场上较大的份额,Android应用市场中的应用数目也是突飞猛进,Android已经成为当下最热门的移动平台操作系统。At present, the Android operating system is developing rapidly. Mobile devices based on the Android system have occupied a large share of the mobile market. The number of applications in the Android application market has also increased by leaps and bounds. Android has become the most popular mobile platform operating system.

大量的安卓应用程序和游戏的出现让用户眼花缭乱,用户要体验不同游戏带来的乐趣,就需要下载这些游戏的客户端应用程序。用户要想使用这些应用程序,还需一一的将这些客户端应用程序安装在手机上。每个应用程序都作为一个独立的应用程序存储在用户设备上。The emergence of a large number of Android applications and games dazzles users. To experience the fun brought by different games, users need to download the client applications of these games. If the user wants to use these application programs, these client application programs need to be installed on the mobile phone one by one. Each application is stored on the user's device as an independent application.

现有的安卓平台上的应用程序或游戏,下载后必须安装后才能启动使用,操作繁琐;另外,应用程序管理只能依赖于安装平台本身的管理机制,比如权限管理、消息通知管理等,安卓平台的诸多漏洞会带来很大的安全性隐患。Apps or games on the existing Android platform must be installed before they can be used after downloading, and the operation is cumbersome; in addition, app management can only rely on the management mechanism of the installation platform itself, such as rights management, message notification management, etc., Android Many loopholes in the platform will bring great security risks.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的移动端应用中加载其它移动端应用的方法、装置和移动终端。In view of the above problems, the present invention is proposed to provide a method, device and mobile terminal for loading other mobile terminal applications in a mobile terminal application that overcomes the above problems or at least partially solves the above problems.

依据本发明的一个方面,提供一种移动端应用中加载其它移动端应用的方法,包括:在第一移动端应用的清单配置文件中为要调用的第二移动端应用的组件进行注册;第一移动端应用检测到对第二移动端应用入口的触发事件为第二移动端应用创建一指定进程或线程;检测到所述指定进程或线程的建立,在所述指定进程或线程中建立第二移动端应用的运行环境;在所述建立运行环境中加载第二移动端应用的组件进行运行。According to one aspect of the present invention, a method for loading other mobile terminal applications in a mobile terminal application is provided, including: registering the components of the second mobile terminal application to be called in the list configuration file of the first mobile terminal application; A mobile terminal application detects that a trigger event to the second mobile terminal application entry creates a specified process or thread for the second mobile terminal application; detects the establishment of the specified process or thread, and establishes the first specified process or thread in the specified process or thread 2. The running environment of the mobile terminal application; the components of the second mobile terminal application are loaded and run in the established running environment.

其中,在第一移动端应用的清单配置文件中为要调用的第二移动端应用的以下的组件进行注册操作:活动Activity组件、服务Service组件、广播接收者BroadcastReceiver组件、内容提供者Content Provider组件。Wherein, in the list configuration file of the first mobile terminal application, the following components of the second mobile terminal application to be called are registered: activity Activity component, service Service component, broadcast receiver BroadcastReceiver component, content provider Content Provider component .

其中,还包括:将第二移动端应用的通知Notification组件的属性设置为不显示通知提示。Wherein, it also includes: setting the attribute of the Notification component of the second mobile terminal application to not display the notification prompt.

其中,在加载第二移动端应用的组件进行运行前,所述方法还包括:将系统当前的应用属性修改为第二移动端应用。Wherein, before loading and running the components of the second mobile application, the method further includes: modifying the current application attribute of the system to the second mobile application.

其中,在所述指定进程或线程中建立第二移动端应用的运行环境的步骤,包括:构造类加载器ClassLoader,以加载各组件中的相应加载类;创建组件运行所需的资源对象,以提取或访问第二移动端应用资源;构造资源管理器Asset Manager,以管理运行组件所需的资源。Wherein, the step of establishing the operating environment of the second mobile terminal application in the specified process or thread includes: constructing a class loader ClassLoader to load the corresponding loading class in each component; creating resource objects required for component operation to Extracting or accessing the resources of the second mobile terminal application; constructing a resource manager Asset Manager to manage the resources required by the running components.

其中,在所述指定进程或线程中建立第二移动端应用的运行环境的步骤,还包括:若加载的所述组件为Activity组件、Receiver组件或服务Service组件,则在应用程序管理服务PMS查验之前,将组件修改为已安装应用程序中的对应组件,并在PMS根据已安装应用程序中的对应组件查验通过后,再次将已安装应用程序中的对应组件修正回所述组件,启动所述组件。Wherein, the step of establishing the operating environment of the second mobile terminal application in the specified process or thread further includes: if the loaded component is an Activity component, a Receiver component or a Service Service component, then checking in the application program management service PMS Before, the component is modified to the corresponding component in the installed application, and after the PMS passes the inspection according to the corresponding component in the installed application, the corresponding component in the installed application is modified back to the said component again, and the described components.

其中,还包括:第一移动端应用在触发第二移动端应用之前,在移动设备中的系统中获取支持调用的带有第一移动端产品标识的应用程序的信息,以进行对应第一移动端产品标识清单配置文件的注册处理以及后续的运行环境的建立。Among them, it also includes: before the first mobile terminal application triggers the second mobile terminal application, the system in the mobile device obtains the information of the application program with the product identification of the first mobile terminal that supports calling, so as to perform the corresponding first mobile terminal application. The registration process of the terminal product identification list configuration file and the establishment of the subsequent operating environment.

其中,还包括:将第一移动端应用的信息以及第二移动端应用的信息上传到服务器侧,请求所述服务器下发对应第一移动端产品标识的清单配置文件。Wherein, it also includes: uploading the information of the first mobile terminal application and the information of the second mobile terminal application to the server side, and requesting the server to issue a list configuration file corresponding to the product identification of the first mobile terminal.

其中,还包括:在获取到本地的可以调用的第二移动端应用后,在第一移动端应用中的第二移动端入口启动以便用户进行触发;在触发后,将第一移动端应用的数据通过进程间通信传递给所述指定进程,进而在所述运行环境中第二移动端应用依据传递的数据进行运行。Among them, it also includes: after obtaining the local second mobile terminal application that can be called, the second mobile terminal entry in the first mobile terminal application is started so that the user can trigger it; after the trigger, the first mobile terminal application The data is transmitted to the designated process through inter-process communication, and then the second mobile terminal application operates according to the transmitted data in the operating environment.

其中,还包括:在第二移动端应用被关闭后,进程在后台继续运行;检测到第一移动端应用的进程关闭后,才关闭第二移动端应用的进程;或者不关闭该进程,继续提供给其他的第三移动端应用提供服务。Among them, it also includes: after the second mobile terminal application is closed, the process continues to run in the background; after detecting that the process of the first mobile terminal application is closed, the process of the second mobile terminal application is closed; or the process is not closed, continue Provide services to other third mobile applications.

依据本发明的另一方面,提供一种移动端应用中加载其它移动端应用的装置,包括:处理器,该处理器中加载运行有注册模组、创建模组、建立模组、加载模组,其中:注册模组,用于在第一移动端应用的清单配置文件中为要调用的第二移动端应用的组件进行注册;创建模组,用于第一移动端应用检测到对第二移动端应用入口的触发事件为第二移动端应用创建一指定进程或线程;建立模组,用于检测到所述指定进程或线程的建立,在所述指定进程或线程中建立第二移动端应用的运行环境;加载模组,用于在所述建立运行环境中加载第二移动端应用的组件进行运行。According to another aspect of the present invention, there is provided a device for loading other mobile terminal applications in a mobile terminal application, including: a processor, in which a registration module, a creation module, a creation module, and a loading module are loaded and run. , wherein: the registration module is used to register the components of the second mobile application to be invoked in the manifest configuration file of the first mobile application; the creation module is used to detect that the first mobile application detects that the second The trigger event of the mobile terminal application entry creates a specified process or thread for the second mobile terminal application; the establishment module is used to detect the establishment of the specified process or thread, and establish the second mobile terminal in the specified process or thread The running environment of the application; the loading module, used to load the components of the second mobile terminal application in the established running environment for running.

其中,所述注册模组还用于,在第一移动端应用的清单配置文件中为要调用的第二移动端应用的以下的组件进行注册操作:活动Activity组件、服务Service组件、广播接收者Broadcast Receiver组件、内容提供者Content Provider组件。Wherein, the registration module is also used to register the following components of the second mobile application to be called in the list configuration file of the first mobile application: activity Activity component, service Service component, broadcast receiver Broadcast Receiver component, content provider Content Provider component.

其中,所述处理器还加载运行有设置模组,其用于就第二移动端应用的通知Notification组件的属性设置为不显示通知提示。Wherein, the processor is also loaded with a setting module, which is used to set the property of the Notification component of the second mobile terminal application to not display the notification prompt.

其中,所述处理器还加载运行有属性修改模组,其用于在加载第二移动端应用的组件进行运行前,将系统当前的应用属性修改为第二移动端应用。Wherein, the processor also loads and runs an attribute modification module, which is used to modify the current application attribute of the system to the second mobile application before loading and running the components of the second mobile application.

其中,所述建立模组还包括:第一构造单元,用于构造类加载器ClassLoader,以加载各组件中的相应加载类;第二构造单元,用于创建组件运行所需的资源对象,以提取或访问第二移动端应用资源;第三构造单元,用于构造资源管理器Asset Manager,以管理运行组件所需的资源。Wherein, the building module further includes: a first construction unit, used to construct a class loader ClassLoader, to load corresponding loading classes in each component; a second construction unit, used to create resource objects required for component operation, to Extracting or accessing the second mobile terminal application resources; the third construction unit is used to construct the resource manager Asset Manager to manage the resources required by the running components.

其中,所述建立模组还用于,若加载的所述组件为Activity组件、Receiver组件或服务Service组件,则在应用程序管理服务PMS查验之前,将组件修改为已安装应用程序中的对应组件,并在PMS根据已安装应用程序中的对应组件查验通过后,再次将已安装应用程序中的对应组件修正回所述组件,启动所述组件。Wherein, the building module is also used for, if the loaded component is an Activity component, a Receiver component or a service Service component, before the application program management service PMS checks, modify the component to the corresponding component in the installed application , and after the PMS passes the inspection according to the corresponding component in the installed application program, correct the corresponding component in the installed application program back to the component again, and start the component.

其中,所述处理器还加载运行有获取模组,其用于第一移动端应用在触发第二移动端应用之前,在移动设备中的系统中获取支持调用的带有第一移动端产品标识的应用程序的信息,以进行对应第一移动端产品标识的清单配置文件的注册处理以及后续的运行环境的建立。Wherein, the processor is also loaded with an acquisition module, which is used for the first mobile terminal application to obtain the support call in the system of the mobile device with the first mobile terminal product identification before triggering the second mobile terminal application. information of the application program, so as to perform the registration processing of the list configuration file corresponding to the first mobile terminal product identifier and the subsequent establishment of the operating environment.

其中,所述处理器还加载运行有请求模组,其用于将第一移动端应用的信息以及第二移动端应用的信息上传到服务器侧,请求所述服务器下发对应第一移动端产品标识的清单配置文件。Wherein, the processor is also loaded and running with a request module, which is used to upload the information of the first mobile terminal application and the information of the second mobile terminal application to the server side, and request the server to issue the product corresponding to the first mobile terminal. The identified manifest configuration file.

其中,所述加载模组还用于,在获取到本地的可以调用的第二移动端应用后,在第一移动端应用中的第二移动端入口启动以便用户进行触发;在触发后,将第一移动端应用的数据通过进程间通信传递给所述指定进程,进而在所述运行环境中第二移动端应用依据传递的数据进行运行。Wherein, the loading module is also used to start the second mobile terminal entry in the first mobile terminal application after obtaining the local second mobile terminal application that can be called so that the user can trigger it; after triggering, the The data of the first mobile terminal application is transmitted to the designated process through inter-process communication, and then the second mobile terminal application is executed in the operating environment according to the transmitted data.

其中,所述加载模组还用于,在第二移动端应用被关闭后,进程在后台继续运行;检测到第一移动端应用的进程关闭后,才关闭第二移动端应用的进程;或者不关闭该进程,继续提供给其他的第三移动端应用提供服务。Wherein, the loading module is also used to continue to run the process in the background after the second mobile application is closed; to close the process of the second mobile application after detecting that the process of the first mobile application is closed; or The process is not closed and continues to provide services to other third mobile terminal applications.

依据本发明的再一方面,提供一种移动终端,其中包括:以上所述的移动端应用中加载其它移动端应用的装置。According to another aspect of the present invention, a mobile terminal is provided, which includes: the above-mentioned device for loading other mobile terminal applications in the mobile terminal application.

根据本发明的技术方案,通过在第一移动端应用的清单配置文件中为第二移动端应用的组件进行注册,并在为第二移动端应用创建指定进程或线程中建立第二移动端应用的运行环境,以及在所述运行环境中加载第二移动端应用的组件进行运行,从而实现了第二移动端应用在第一移动端应用中的免安装运行,简化了应用程序使用的操作。According to the technical solution of the present invention, by registering the components of the second mobile application in the list configuration file of the first mobile application, and creating a specified process or thread for the second mobile application, the second mobile application is established The operating environment of the second mobile terminal application is loaded and run in the operating environment, thereby realizing the installation-free operation of the second mobile terminal application in the first mobile terminal application, and simplifying the operation of using the application program.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1是根据本发明一个实施例的移动端应用中加载其它移动端应用的方法的流程图;1 is a flowchart of a method for loading other mobile applications in a mobile application according to an embodiment of the present invention;

图2是根据本发明一个实施例的移动端应用中加载其它移动端应用的装置的结构框图。Fig. 2 is a structural block diagram of an apparatus for loading other mobile terminal applications in a mobile terminal application according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

根据本发明实施例,提供一种移动端应用中加载其它移动端应用的方法。需要说明的是,上述移动端应用是指安装在移动终端上为用户提供服务的应用程序,如,安装在智能手机终端上的应用程序。本实施例提供的所述方法的执行主体可以是安装在安卓设备上应用程序,简单的说,本实施例提供的所述方法就是为了提供一种应用程序运行框架,该运行框架将其它移动端应用加载到其内部去执行。According to an embodiment of the present invention, a method for loading other mobile terminal applications in a mobile terminal application is provided. It should be noted that the above-mentioned mobile terminal application refers to an application program installed on a mobile terminal to provide services for users, for example, an application program installed on a smart phone terminal. The subject of execution of the method provided in this embodiment may be an application program installed on an Android device. Simply put, the method provided in this embodiment is to provide an application program running framework, which integrates other mobile terminal Applications are loaded into it for execution.

图1是根据本发明一个实施例的移动端应用中加载其它移动端应用的方法的流程图。如图1所示,所述移动端应用中加载其它移动端应用的方法包括:Fig. 1 is a flowchart of a method for loading other mobile applications in a mobile application according to an embodiment of the present invention. As shown in Figure 1, the method for loading other mobile terminal applications in the mobile application includes:

步骤S102,在第一移动端应用的清单配置文件中为要调用的第二移动端应用的组件进行注册;Step S102, registering the components of the second mobile application to be invoked in the manifest configuration file of the first mobile application;

其中,清单配置文件(AndroidManifest.xml)位于应用程序的根目录下,获取第一移动端应用的AndroidManifest.xml文件,在其中为要调用的第二移动端应用的以下的组件进行注册操作:活动(Activity)组件、服务(Service)组件、广播接收者(BroadcastReceiver)组件、内容提供者(Content Provider)组件。并非所有的应用程序都必须包含所有这四种类型的组件,部分应用程序可能由上述一种或多种组件组建。每个组件都需要进行注册才能使用,即每一个组件都需要在AndroidManifest.xml文件中进行配置。Manifest包含了组成应用程序的每一个组件(活动、服务、内容提供器和广播接收器)的节点,并使用Intent过滤器和权限来确定这些组件之间以及这些组件和其他应用程序如何进行交互。因此,第二移动端应用的Manifest中列出有应用程序所包含的所有组件。由此可知,可通过读取所述应用程序安装包的AndroidManifest.xml文件,来获取应用程序安装包中所包含的所有组件。Among them, the list configuration file (AndroidManifest.xml) is located in the root directory of the application, and the AndroidManifest.xml file of the first mobile application is obtained, and the following components of the second mobile application to be called are registered in it: Activity (Activity) component, service (Service) component, broadcast receiver (BroadcastReceiver) component, content provider (Content Provider) component. Not all applications must contain all four types of components, and some applications may be composed of one or more of the above components. Each component needs to be registered before it can be used, that is, each component needs to be configured in the AndroidManifest.xml file. The Manifest contains nodes for each of the components (Activities, Services, Content Providers, and Broadcast Receivers) that make up the application, and uses Intent filters and permissions to determine how these components interact with each other and with other applications. Therefore, all components included in the application are listed in the Manifest of the second mobile terminal application. It can be seen from this that all the components included in the application installation package can be obtained by reading the AndroidManifest.xml file of the application installation package.

步骤S104,第一移动端应用检测到对第二移动端应用入口的触发事件为第二移动端应用创建一指定进程或线程;Step S104, the first mobile terminal application detects a trigger event for the entry of the second mobile terminal application to create a specified process or thread for the second mobile terminal application;

在本发明的部分实施例中,第一移动端应用在触发第二移动端应用之前,在移动设备中的系统中获取支持调用的带有第一移动端产品标识的应用程序(APP)的信息,以进行对应第一移动端产品标识的Manifest文件的注册处理以及后续的运行环境的建立。也就是说,在第一移动端应用在触发第二移动端应用之前,移动设备先获取支持调用的带有第一移动端产品标识的第二移动端应用,并为要调用的第一移动端产品标识的第二移动端应用的组件进行注册以及后续的建立运行环境。并且,将第一移动端应用的信息以及第二移动端应用的信息上传到服务器侧,请求所述服务器下发对应第一移动端产品标识的Manifest文件,从而为在该Manifest文件中为要调用的第一移动端产品标识的第二移动端应用的组件进行注册。In some embodiments of the present invention, before the first mobile application triggers the second mobile application, the system in the mobile device obtains the information of the application program (APP) with the first mobile product identification that supports calling , so as to perform registration processing of the Manifest file corresponding to the product identifier of the first mobile terminal and establishment of a subsequent operating environment. That is to say, before the first mobile terminal application triggers the second mobile terminal application, the mobile device first acquires the second mobile terminal application with the product identifier of the first mobile terminal that supports invocation, and provides the first mobile terminal application to be invoked. The components of the second mobile terminal application identified by the product are registered and a running environment is established subsequently. And, upload the information of the first mobile terminal application and the information of the second mobile terminal application to the server side, and request the server to issue the Manifest file corresponding to the product identifier of the first mobile terminal, so as to be called in the Manifest file The component of the second mobile terminal application identified by the first mobile terminal product is registered.

在获取到本地的可以调用的第二移动端应用后,在第一移动端应用中的第二移动端入口启动以便用户进行触发。在触发后,将第一移动端应用的数据通过进程间通信传递给所述指定进程,进而在所述运行环境中第二移动端应用依据传递的数据进行运行。在本发明的部分实施例中,第二移动端应用被关闭后,进程可以在后台继续运行。当检测到第一移动端应用的进程关闭后,才关闭第二移动端应用的进程;或者不关闭该进程,继续提供给其他的第三移动端应用提供服务。After obtaining the local second mobile terminal application that can be invoked, the second mobile terminal entry in the first mobile terminal application is activated for the user to trigger. After being triggered, the data of the first mobile terminal application is delivered to the specified process through inter-process communication, and then the second mobile terminal application is executed in the running environment according to the transmitted data. In some embodiments of the present invention, after the second mobile terminal application is closed, the process can continue to run in the background. When it is detected that the process of the first mobile application is closed, the process of the second mobile application is closed; or the process is not closed, and continues to provide services to other third mobile applications.

步骤S106,检测到所述指定进程或线程的建立,在所述指定进程或线程中建立第二移动端应用的运行环境;Step S106, detecting the establishment of the specified process or thread, and establishing the running environment of the second mobile terminal application in the specified process or thread;

其中,在所述指定进程或线程中建立第二移动端应用的运行环境,至少包括以下的步骤:Wherein, establishing the running environment of the second mobile terminal application in the specified process or thread at least includes the following steps:

(1)构造类加载器ClassLoader,以加载各组件中的相应加载类;(1) Construct the class loader ClassLoader to load the corresponding loading class in each component;

(2)创建组件运行所需的资源对象,以提取或访问第二移动端应用资源;(2) Create resource objects required for component operation to extract or access second mobile application resources;

(3)构造资源管理器Asset Manager,以管理运行组件所需的资源;(3) Construct the resource manager Asset Manager to manage the resources needed to run the components;

除了上述的三个步骤以外,还可以包括步骤:In addition to the three steps above, steps can also be included:

(4)若加载的所述组件为Activity组件、Receiver组件或服务Service组件,则在应用程序管理服务PMS查验之前,将组件修改为已安装应用程序中的对应组件,并在PMS根据已安装应用程序中的对应组件查验通过后,再次将已安装应用程序中的对应组件修正回所述组件,启动所述组件。(4) If the loaded component is an Activity component, a Receiver component or a Service component, then before the application management service PMS checks, the component is modified to the corresponding component in the installed application program, and the installed application is installed in the PMS. After the corresponding component in the program passes the inspection, the corresponding component in the installed application program is corrected back to the component again, and the component is started.

具体地,在PMS查验之前,将所述组件的第一查验参数修改为所述已安装应用程序中对应组件的第二查验参数;在PMS根据所述已安装应用程序中的对应组件查验通过后,将修改后的所述组件的第二查验参数改回所述第一查验参数,并启动所述组件。其中的第一次修改是为了能通过PMS校验;第二次改回后启动未安装应用程序中的组件,实现组件的启动,进而实现所述应用程序的运行。Specifically, before the PMS inspection, modify the first inspection parameter of the component to the second inspection parameter of the corresponding component in the installed application program; after the PMS passes the inspection according to the corresponding component in the installed application program , changing the modified second inspection parameter of the component back to the first inspection parameter, and starting the component. The first modification is to pass the PMS verification; after the second modification, the components in the uninstalled application are started to realize the startup of the components, and then realize the running of the application.

步骤S108,在所述建立运行环境中加载第二移动端应用的组件进行运行。Step S108, loading components of the second mobile terminal application in the established running environment for running.

并且,在本发明的实施例中,还需要将无线局域网连接类应用的通知Notification组件的属性设置为不显示通知提示,也就是说禁用无线局域网连接类应用的消息通知提醒功能,移动设备的状态栏也不显示图标,更没有通知时发出的声音、震动模式、led闪光灯(灯的颜色,闪光时间)等提示。此外,在加载无线局域网连接类应用的组件进行运行前,将移动设备的系统当前的应用Application属性改为无线局域网连接类应用,以便在移动设备的系统中运行无线局域网连接类应用。Moreover, in the embodiment of the present invention, it is also necessary to set the attribute of the notification Notification component of the wireless local area network connection application to not display the notification prompt, that is to say, disable the message notification reminder function of the wireless local area network connection application, and the status of the mobile device The bar does not display icons, and there are no notification sounds, vibration modes, led flash lights (light color, flash time) and other prompts. In addition, before loading and running the components of the WLAN connection application, change the current Application property of the system of the mobile device to the WLAN connection application, so as to run the WLAN connection application in the mobile device system.

根据本发明的实施例,还提供一种移动端应用中加载其它移动端应用的装置。According to an embodiment of the present invention, a device for loading other mobile terminal applications in a mobile terminal application is also provided.

参考图2,是根据本发明一个实施例的移动端应用中加载其它移动端应用的装置的结构框图,如图2所示,所述移动端应用中加载其它移动端应用的装置200包括一处理器,该处理器中加载运行有注册模组210、创建模组220、建立模组230、加载模组240,下面详细描述各模组的结构和功能。Referring to FIG. 2 , it is a structural block diagram of a device for loading other mobile applications in a mobile application according to an embodiment of the present invention. As shown in FIG. 2 , the device 200 for loading other mobile applications in the mobile application includes a processing There is a register module 210, a creation module 220, a creation module 230, and a loading module 240 loaded and running in the processor. The structures and functions of each module are described in detail below.

注册模组210,用于在第一移动端应用的清单配置文件中为要调用的第二移动端应用的组件进行注册;The registration module 210 is used to register the components of the second mobile application to be called in the list configuration file of the first mobile application;

进一步地,所述注册模组210还用于,在第一移动端应用的清单配置文件中为要调用的第二移动端应用的以下的组件进行注册操作:活动Activity组件、服务Service组件、广播接收者Broadcast Receiver组件、内容提供者Content Provider组件。Further, the registration module 210 is also used to register the following components of the second mobile application to be invoked in the list configuration file of the first mobile application: activity Activity component, service Service component, broadcast Receiver Broadcast Receiver component, content provider Content Provider component.

创建模组220,用于第一移动端应用检测到对第二移动端应用入口的触发事件为第二移动端应用创建一指定进程或线程;Create a module 220 for the first mobile terminal application to detect a trigger event for the second mobile terminal application to create a specified process or thread for the second mobile terminal application;

建立模组230,用于检测到所述指定进程或线程的建立,在所述指定进程或线程中建立第二移动端应用的运行环境;The establishment module 230 is used to detect the establishment of the specified process or thread, and establish the operating environment of the second mobile terminal application in the specified process or thread;

进一步地,所述建立模组230还包括有:Further, the establishment module 230 also includes:

第一构造单元(未示出),用于构造类加载器ClassLoader,以加载各组件中的相应加载类;The first construction unit (not shown) is used to construct the class loader ClassLoader to load the corresponding load class in each component;

第二构造单元(未示出),用于创建组件运行所需的资源对象,以提取或访问第二移动端应用资源;The second construction unit (not shown) is used to create resource objects required for component operation to extract or access second mobile terminal application resources;

第三构造单元(未示出),用于构造资源管理器Asset Manager,以管理运行组件所需的资源。The third construction unit (not shown) is used for constructing the resource manager Asset Manager to manage the resources required by the running components.

在本发明的部分实施例中,所述建立模组230还用于,若加载的所述组件为Activity组件、Receiver组件或服务Service组件,则在应用程序管理服务PMS查验之前,将组件修改为已安装应用程序中的对应组件,并在PMS根据已安装应用程序中的对应组件查验通过后,再次将已安装应用程序中的对应组件修正回所述组件,启动所述组件。In some embodiments of the present invention, the building module 230 is also used to modify the component to The corresponding component in the installed application program is installed, and after the PMS passes the inspection according to the corresponding component in the installed application program, the corresponding component in the installed application program is corrected back to the described component again, and the described component is started.

加载模组240,用于在所述建立运行环境中加载第二移动端应用的组件进行运行。The loading module 240 is used to load the components of the second mobile terminal application in the established running environment for running.

进一步地,所述加载模组240还用于,在获取到本地的可以调用的第二移动端应用后,在第一移动端应用中的第二移动端入口启动以便用户进行触发;在触发后,将第一移动端应用的数据通过进程间通信传递给所述指定进程,进而在所述运行环境中第二移动端应用依据传递的数据进行运行。以及所述加载模组240还用于,在第二移动端应用被关闭后,进程在后台继续运行;检测到第一移动端应用的进程关闭后,才关闭第二移动端应用的进程;或者不关闭该进程,继续提供给其他的第三移动端应用提供服务。Further, the loading module 240 is also used to start the second mobile terminal entry in the first mobile terminal application after obtaining the local second mobile terminal application that can be invoked so that the user can trigger it; after the triggering The data of the first mobile terminal application is transmitted to the designated process through inter-process communication, and then the second mobile terminal application is executed according to the transmitted data in the operation environment. And the loading module 240 is also used for, after the second mobile terminal application is closed, the process continues to run in the background; after detecting that the process of the first mobile terminal application is closed, the process of the second mobile terminal application is closed; or The process is not closed and continues to provide services to other third mobile terminal applications.

根据本发明实施例,所述处理器还加载运行有设置模组(未示出)、属性修改模组(未示出)、获取模组(未示出)、请求模组(未示出),其中:According to an embodiment of the present invention, the processor is also loaded with a setting module (not shown), an attribute modification module (not shown), an acquisition module (not shown), and a request module (not shown) ,in:

所述设置模组用于将第二移动端应用的通知Notification组件的属性设置为不显示通知提示;The setting module is used to set the attribute of the notification Notification component of the second mobile terminal application to not display the notification prompt;

所述属性修改模组用于在加载第二移动端应用的组件进行运行前,将系统当前的应用Application属性修改为第二移动端应用;The attribute modification module is used to modify the current application Application attribute of the system to the second mobile application before loading the components of the second mobile application for operation;

所述获取模组用于第一移动端应用在触发第二移动端应用之前,在移动设备中的系统中获取支持调用的带有第一移动端产品标识的应用程序(APP)的信息,以进行对应第一移动端产品标识的Manifest文件的注册处理以及后续的运行环境的建立;The acquisition module is used for the first mobile terminal application to acquire the information of the application program (APP) with the first mobile terminal product identification that supports calling in the system of the mobile device before triggering the second mobile terminal application, so as to Carry out the registration processing of the Manifest file corresponding to the first mobile terminal product identification and the establishment of the subsequent operating environment;

所述请求模组用于将第一移动端应用的信息以及第二移动端应用的信息上传到服务器侧,请求所述服务器下发对应第一移动端产品标识的Manifest文件。The request module is used to upload the information of the first mobile terminal application and the information of the second mobile terminal application to the server side, and request the server to deliver the Manifest file corresponding to the product identification of the first mobile terminal.

以上描述的装置与之前描述的移动端应用中加载其它移动端应用的方法的处理是对应的,因此,关于更详细的技术细节,可以参见之前描述的方法。The apparatus described above corresponds to the processing of the method for loading other mobile terminal applications in the previously described mobile terminal application. Therefore, for more detailed technical details, refer to the previously described method.

本发明还提供一种移动终端,其包括以上所述的移动端应用中加载其它移动端应用的装置。The present invention also provides a mobile terminal, which includes the above-mentioned device for loading other mobile terminal applications in the mobile terminal application.

综上所述,根据本发明的上述技术方案,通过在第一移动端应用的清单配置文件中为第二移动端应用的组件进行注册,并在为第二移动端应用创建指定进程或线程中建立第二移动端应用的运行环境,以及在所述运行环境中加载第二移动端应用的组件进行运行,从而实现了第二移动端应用在第一移动端应用中的免安装运行,简化了应用程序使用的操作。In summary, according to the technical solution of the present invention, by registering the components of the second mobile application in the list configuration file of the first mobile application, and creating a specified process or thread for the second mobile application The operating environment of the second mobile terminal application is established, and the components of the second mobile terminal application are loaded in the operating environment to run, thereby realizing the installation-free operation of the second mobile terminal application in the first mobile terminal application, simplifying Actions used by the application.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例提供的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the device provided according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明实施例揭示了A1、一种移动端应用中加载其它移动端应用的方法,包括:在第一移动端应用的清单配置文件中为要调用的第二移动端应用的组件进行注册;第一移动端应用检测到对第二移动端应用入口的触发事件为第二移动端应用创建一指定进程或线程;检测到所述指定进程或线程的建立,在所述指定进程或线程中建立第二移动端应用的运行环境;在所述建立运行环境中加载第二移动端应用的组件进行运行。A2、根据A1所述的方法,其中,在第一移动端应用的清单配置文件中为要调用的第二移动端应用的以下的组件进行注册操作:活动Activity组件、服务Service组件、广播接收者Broadcast Receiver组件、内容提供者Content Provider组件。A3、根据A1所述的方法,其中,还包括:将第二移动端应用的通知Notification组件的属性设置为不显示通知提示。A4、根据A1所述的方法,其中,在加载第二移动端应用的组件进行运行前,所述方法还包括:将系统当前的应用属性修改为第二移动端应用。A5、根据A1所述的方法,其中,在所述指定进程或线程中建立第二移动端应用的运行环境的步骤,包括:构造类加载器ClassLoader,以加载各组件中的相应加载类;创建组件运行所需的资源对象,以提取或访问第二移动端应用资源;构造资源管理器Asset Manager,以管理运行组件所需的资源。A6、根据A5所述的方法,其中,在所述指定进程或线程中建立第二移动端应用的运行环境的步骤,还包括:若加载的所述组件为Activity组件、Receiver组件或服务Service组件,则在应用程序管理服务PMS查验之前,将组件修改为已安装应用程序中的对应组件,并在PMS根据已安装应用程序中的对应组件查验通过后,再次将已安装应用程序中的对应组件修正回所述组件,启动所述组件。A7、根据A1所述的方法,其中,还包括:第一移动端应用在触发第二移动端应用之前,在移动设备中的系统中获取支持调用的带有第一移动端产品标识的应用程序的信息,以进行对应第一移动端产品标识的清单配置文件的注册处理以及后续的运行环境的建立。A8、根据A7所述的方法,其中,还包括:将第一移动端应用的信息以及第二移动端应用的信息上传到服务器侧,请求所述服务器下发对应第一移动端产品标识的清单配置文件。A9、根据A1所述的方法,其中,还包括:在获取到本地的可以调用的第二移动端应用后,在第一移动端应用中的第二移动端入口启动以便用户进行触发;在触发后,将第一移动端应用的数据通过进程间通信传递给所述指定进程,进而在所述运行环境中第二移动端应用依据传递的数据进行运行。A10、根据A9所述的方法,其中,还包括:在第二移动端应用被关闭后,进程在后台继续运行;检测到第一移动端应用的进程关闭后,才关闭第二移动端应用的进程;或者不关闭该进程,继续提供给其他的第三移动端应用提供服务。The embodiment of the present invention discloses A1, a method for loading other mobile applications in a mobile application, including: registering the components of the second mobile application to be called in the list configuration file of the first mobile application; A mobile terminal application detects that a trigger event to the second mobile terminal application entry creates a specified process or thread for the second mobile terminal application; detects the establishment of the specified process or thread, and establishes the first specified process or thread in the specified process or thread 2. The running environment of the mobile terminal application; the components of the second mobile terminal application are loaded and run in the established running environment. A2. The method according to A1, wherein the registration operation is performed for the following components of the second mobile application to be called in the list configuration file of the first mobile application: activity Activity component, service Service component, broadcast receiver Broadcast Receiver component, content provider Content Provider component. A3. The method according to A1, further comprising: setting the property of the Notification component of the second mobile terminal application to not display the notification prompt. A4. The method according to A1, wherein, before loading and running the components of the second mobile application, the method further includes: modifying the current application attribute of the system to the second mobile application. A5. The method according to A1, wherein the step of establishing the operating environment of the second mobile application in the specified process or thread includes: constructing a class loader ClassLoader to load the corresponding loading class in each component; creating The resource object required for running the component is used to extract or access the resources of the second mobile terminal application; the resource manager Asset Manager is constructed to manage the resources required for running the component. A6. The method according to A5, wherein the step of establishing the running environment of the second mobile application in the designated process or thread further includes: if the loaded component is an Activity component, a Receiver component or a Service component , before the application management service PMS checks, the component is modified to the corresponding component in the installed application, and after the PMS passes the inspection based on the corresponding component in the installed application, the corresponding component in the installed application is again Fix back said component, start said component. A7. The method according to A1, further comprising: before the first mobile application triggers the second mobile application, obtaining an application program with the product identification of the first mobile terminal that supports calling in the system of the mobile device information, so as to perform the registration process of the manifest configuration file corresponding to the first mobile terminal product identifier and the establishment of the subsequent operating environment. A8. The method according to A7, further comprising: uploading the information of the first mobile terminal application and the information of the second mobile terminal application to the server side, and requesting the server to issue a list corresponding to the product identification of the first mobile terminal configuration file. A9. The method according to A1, further comprising: after obtaining the local second mobile terminal application that can be called, start the second mobile terminal entry in the first mobile terminal application so that the user can trigger it; Afterwards, the data of the first mobile terminal application is delivered to the specified process through inter-process communication, and then the second mobile terminal application is executed in the running environment according to the transmitted data. A10, according to the method described in A9, which also includes: after the second mobile terminal application is closed, the process continues to run in the background; after detecting that the process of the first mobile terminal application is closed, close the process of the second mobile terminal application process; or do not close the process and continue to provide services to other third mobile terminal applications.

本发明实施例还揭示了B11、一种移动端应用中加载其它移动端应用的装置,包括:处理器,该处理器中加载运行有注册模组、创建模组、建立模组、加载模组,其中:注册模组,用于在第一移动端应用的清单配置文件中为要调用的第二移动端应用的组件进行注册;创建模组,用于第一移动端应用检测到对第二移动端应用入口的触发事件为第二移动端应用创建一指定进程或线程;建立模组,用于检测到所述指定进程或线程的建立,在所述指定进程或线程中建立第二移动端应用的运行环境;加载模组,用于在所述建立运行环境中加载第二移动端应用的组件进行运行。B12、根据B11所述的装置,其中,所述注册模组还用于,在第一移动端应用的清单配置文件中为要调用的第二移动端应用的以下的组件进行注册操作:活动Activity组件、服务Service组件、广播接收者Broadcast Receiver组件、内容提供者Content Provider组件。B13、根据B11所述的装置,其中,所述处理器还加载运行有设置模组,其用于将第二移动端应用的通知Notification组件的属性设置为不显示通知提示。B14、根据B11所述的装置,其中,所述处理器还加载运行有属性修改模组,其用于在加载第二移动端应用的组件进行运行前,将系统当前的应用属性修改为第二移动端应用。B15、根据B11所述的装置,其中,所述建立模组还包括:第一构造单元,用于构造类加载器ClassLoader,以加载各组件中的相应加载类;第二构造单元,用于创建组件运行所需的资源对象,以提取或访问第二移动端应用资源;第三构造单元,用于构造资源管理器AssetManager,以管理运行组件所需的资源。B16、根据B15所述的装置,其中,所述建立模组还用于,若加载的所述组件为Activity组件、Receiver组件或服务Service组件,则在应用程序管理服务PMS查验之前,将组件修改为已安装应用程序中的对应组件,并在PMS根据已安装应用程序中的对应组件查验通过后,再次将已安装应用程序中的对应组件修正回所述组件,启动所述组件。B17、根据B11所述的装置,其中,所述处理器还加载运行有获取模组,其用于第一移动端应用在触发第二移动端应用之前,在移动设备中的系统中获取支持调用的带有第一移动端产品标识的应用程序的信息,以进行对应第一移动端产品标识的清单配置文件的注册处理以及后续的运行环境的建立。B18、根据B17所述的装置,其中,所述处理器还加载运行有请求模组,其用于将第一移动端应用的信息以及第二移动端应用的信息上传到服务器侧,请求所述服务器下发对应第一移动端产品标识的清单配置文件。B19、根据B11所述的装置,其中,所述加载模组还用于,在获取到本地的可以调用的第二移动端应用后,在第一移动端应用中的第二移动端入口启动以便用户进行触发;在触发后,将第一移动端应用的数据通过进程间通信传递给所述指定进程,进而在所述运行环境中第二移动端应用依据传递的数据进行运行。B20、根据B19所述的装置,其中,所述加载模组还用于,在第二移动端应用被关闭后,进程在后台继续运行;检测到第一移动端应用的进程关闭后,才关闭第二移动端应用的进程;或者不关闭该进程,继续提供给其他的第三移动端应用提供服务。The embodiment of the present invention also discloses B11, a device for loading other mobile applications in a mobile application, including: a processor, in which a registration module, a creation module, a creation module, and a loading module are loaded and run , wherein: the registration module is used to register the components of the second mobile application to be invoked in the manifest configuration file of the first mobile application; the creation module is used to detect that the first mobile application detects that the second The trigger event of the mobile terminal application entry creates a specified process or thread for the second mobile terminal application; the establishment module is used to detect the establishment of the specified process or thread, and establish the second mobile terminal in the specified process or thread The running environment of the application; the loading module, used to load the components of the second mobile terminal application in the established running environment for running. B12. The device according to B11, wherein the registration module is also used to perform a registration operation for the following components of the second mobile application to be called in the list configuration file of the first mobile application: Active Activity Components, Service Service components, Broadcast Receiver components, Content Provider components. B13. The device according to B11, wherein the processor is also loaded with a setting module for setting the attribute of the Notification component of the second mobile terminal application to not display the notification prompt. B14. The device according to B11, wherein the processor also loads and runs an attribute modification module, which is used to modify the current application attribute of the system to the second before loading the components of the second mobile terminal application for execution. Mobile application. B15. The device according to B11, wherein the establishment module further includes: a first construction unit, used to construct a class loader ClassLoader, to load the corresponding load class in each component; a second construction unit, used to create The resource object required for running the component is used to extract or access the resources of the second mobile terminal application; the third construction unit is used for constructing a resource manager AssetManager to manage the resources required for running the component. B16. The device according to B15, wherein the building module is also used for, if the loaded component is an Activity component, a Receiver component or a Service Service component, then modify the component before the application program management service PMS checks It is the corresponding component in the installed application program, and after the PMS passes the inspection according to the corresponding component in the installed application program, correct the corresponding component in the installed application program back to the described component again, and start the described component. B17. The device according to B11, wherein the processor is also loaded with an acquisition module, which is used for the first mobile application to acquire support calls in the system of the mobile device before triggering the second mobile application Information about the application program with the first mobile terminal product identifier, so as to perform registration processing of the list configuration file corresponding to the first mobile terminal product identifier and subsequent establishment of the operating environment. B18. The device according to B17, wherein the processor is also loaded with a request module, which is used to upload the information of the first mobile terminal application and the information of the second mobile terminal application to the server side, and request the The server issues a list configuration file corresponding to the product identifier of the first mobile terminal. B19. The device according to B11, wherein the loading module is also used to start the second mobile terminal entry in the first mobile terminal application after obtaining the local second mobile terminal application that can be called so that The user performs a trigger; after the trigger, the data of the first mobile application is passed to the specified process through inter-process communication, and then the second mobile application runs according to the transmitted data in the running environment. B20. The device according to B19, wherein the loading module is also used for, after the second mobile application is closed, the process continues to run in the background; after detecting that the process of the first mobile application is closed, it closes The process of the second mobile terminal application; or the process is not closed, and continues to provide services to other third mobile terminal applications.

本发明实施例还揭示了C21、一种移动终端,其中包括:上述B11至B20中任一项所述的移动端应用中加载其它移动端应用的装置。The embodiment of the present invention also discloses C21, a mobile terminal, which includes: a device for loading other mobile terminal applications in the mobile terminal application described in any one of the above B11 to B20.

Claims (21)

1. the method for other mobile terminal applications is loaded in a kind of mobile terminal application, including:
Component for the application of the second mobile terminal to be called in the inventory configuration file of the first mobile terminal application is registered, the The application of one mobile terminal refers to the application program that installation provides service to the user on mobile terminals;
The application of first mobile terminal is detected creates one using the trigger event of entrance to the second mobile terminal for the application of the second mobile terminal The process of specifying or thread;
Detect the foundation of the specified process or thread, the application of the second mobile terminal is established in the specified process or thread Running environment;
The component that the application of the second mobile terminal is loaded in the running environment is run.
2. according to the method described in claim 1, wherein, to be called in the inventory configuration file of the first mobile terminal application The following component of second mobile terminal application carries out registration operation:
Movable Activity components, service Service components, broadcast recipients Broadcast Receiver components, content carry Donor Content Provider components.
3. according to the method described in claim 1, wherein, further include:
The attribute of the notice Notification components of second mobile terminal application is arranged to not show notice prompting.
It is 4. described before the component for loading the application of the second mobile terminal is run according to the method described in claim 1, wherein Method further includes:The current application attribute of system is revised as the application of the second mobile terminal.
5. according to the method described in claim 1, wherein, the application of the second mobile terminal is established in the specified process or thread The step of running environment, including:
Classloader ClassLoader is constructed, to load the corresponding loading classes in each component;
The resource object needed for assembly operating is created, to extract or access the second mobile terminal application resource;
Explorer Asset Manager are constructed, with the resource needed for management operating component.
6. according to the method described in claim 5, wherein, the application of the second mobile terminal is established in the specified process or thread The step of running environment, further include:
If the component of loading is Activity components, Receiver components or service Service components, in application program Before management service PMS examinations, component is revised as having installed the correspondence component in application program, and in PMS according to having installed After correspondence component examination in application program passes through, the correspondence component amendment installed in application program is returned described group again Part, starts the component.
7. according to the method described in claim 1, wherein, further include:
First mobile terminal is applied before the application of the second mobile terminal is triggered, and is obtained in system in a mobile device and is supported what is called The information of application program with the first mobile terminal product identification, is configured with correspond to the inventory of the first mobile terminal product identification The foundation of the location registration process of file and follow-up running environment.
8. according to the method described in claim 7, wherein, further include:
The information of the information of first mobile terminal application and the application of the second mobile terminal is uploaded onto the server side, asks the service Device issues the inventory configuration file of corresponding first mobile terminal product identification.
9. according to the method described in claim 1, wherein, further include:
After local the second mobile terminal that can be called application is got, the second mobile terminal in being applied in the first mobile terminal enters Mouth starts so that user is triggered;On triggering, the data that the first mobile terminal is applied are passed into institute by interprocess communication Specified process is stated, and then the data that the second mobile terminal applies foundation to transmit in the running environment are run.
10. according to the method described in claim 9, wherein, further include:
After in the second mobile terminal, application is closed, process is continuing to run with from the background;
After detecting that the process of the first mobile terminal application is closed, the process of the second mobile terminal application is just closed;Or do not close this Process, continues to be supplied to other 3rd mobile terminals to apply offer service.
11. the device of other mobile terminal applications is loaded in a kind of mobile terminal application, including:
Processor, load operating has registration module, creates module, establishes module, loading module in the processor, wherein:
Module is registered, for being the group of the second mobile terminal to be called application in the inventory configuration file that the first mobile terminal is applied Part is registered, and the application of the first mobile terminal refers to the application program that installation provides service to the user on mobile terminals;
Module is created, detects that to the second mobile terminal be the second movement using the trigger event of entrance for the application of the first mobile terminal End application creates one and specifies process or thread;
Module is established, for detecting the foundation of the specified process or thread, is established in the specified process or thread The running environment of two mobile terminals application;
Module is loaded, the component for loading the application of the second mobile terminal in the running environment is run.
12. according to the devices described in claim 11, wherein, the registration module is additionally operable to, in the first mobile terminal, application is clear Following component in single configuration file for the application of the second mobile terminal to be called carries out registration operation:Movable Activity groups Part, service Service components, broadcast recipients BroadcastReceiver components, content provider Content Provider Component.
13. according to the devices described in claim 11, wherein, the processor also load operating has setting module, its be used for by The attribute of the notice Notification components of second mobile terminal application is arranged to not show notice prompting.
14. according to the devices described in claim 11, wherein, the processor also load operating has attribute modification module, it is used Before being run in the component for loading the application of the second mobile terminal, the current application attribute of system is revised as the second mobile terminal should With.
15. according to the devices described in claim 11, wherein, the module of establishing further includes:
First structural unit, for constructing Classloader ClassLoader, to load the corresponding loading classes in each component;
Second structural unit, for creating the resource object needed for assembly operating, to extract or access the second mobile terminal application money Source;
3rd structural unit, for constructing explorer Asset Manager, with the resource needed for management operating component.
16. device according to claim 15, wherein, the module of establishing is additionally operable to, if the component of loading is Activity components, Receiver components or service Service components, then, will before application program management service PMS examinations Component is revised as having installed the correspondence component in application program, and is looked into PMS according to the correspondence component in having installed application program Test by rear, the component is returned into the correspondence component amendment installed in application program again, starts the component.
17. according to the devices described in claim 11, wherein, the processor also load operating has acquisition module, it is used for One mobile terminal is applied before the application of the second mobile terminal is triggered, obtained in system in a mobile device support to call with the The information of the application program of one mobile terminal product identification, correspond to the inventory configuration file of the first mobile terminal product identification The foundation of location registration process and follow-up running environment.
18. device according to claim 17, wherein, the processor also load operating ask the visitor in modulus group, its be used for by The information of first mobile terminal application and the information of the second mobile terminal application are uploaded onto the server side, ask the server to issue The inventory configuration file of corresponding first mobile terminal product identification.
19. according to the devices described in claim 11, wherein, the loading module is additionally operable to, and local can be adjusted getting After the application of second mobile terminal, the second movement end entrance in being applied in the first mobile terminal starts so that user is triggered; On triggering, the data that the first mobile terminal is applied are passed into the specified process by interprocess communication, and then in the fortune The second mobile terminal is applied in row environment is run according to the data transmitted.
20. device according to claim 19, wherein, the loading module is additionally operable to, and is applied and is closed in the second mobile terminal After closing, process is continuing to run with from the background;After detecting that the process of the first mobile terminal application is closed, the application of the second mobile terminal is just closed Process;Or the process is not closed, continue to be supplied to other 3rd mobile terminals to apply offer service.
21. a kind of mobile terminal, including:Loaded in mobile terminal application any one of the claims 11 to 20 The device of other mobile terminal applications.
CN201410850821.4A 2014-12-30 2014-12-30 A kind of method, apparatus and mobile terminal for loading other mobile terminal applications Active CN104461663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410850821.4A CN104461663B (en) 2014-12-30 2014-12-30 A kind of method, apparatus and mobile terminal for loading other mobile terminal applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410850821.4A CN104461663B (en) 2014-12-30 2014-12-30 A kind of method, apparatus and mobile terminal for loading other mobile terminal applications

Publications (2)

Publication Number Publication Date
CN104461663A CN104461663A (en) 2015-03-25
CN104461663B true CN104461663B (en) 2018-04-20

Family

ID=52907768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410850821.4A Active CN104461663B (en) 2014-12-30 2014-12-30 A kind of method, apparatus and mobile terminal for loading other mobile terminal applications

Country Status (1)

Country Link
CN (1) CN104461663B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201872A (en) * 2016-07-05 2016-12-07 北京鼎源科技有限公司 A kind of running environment detection method of android system
CN111427594B (en) * 2016-09-22 2024-04-09 华为技术有限公司 Application program running method and device
CN106528166B (en) * 2016-11-22 2019-10-18 郑州云海信息技术有限公司 A command line interface processing system and method
CN109408256B (en) * 2018-10-17 2021-03-19 麒麟合盛网络技术股份有限公司 Application calling method and device
CN109491725B (en) * 2018-11-12 2022-12-27 火烈鸟网络(广州)股份有限公司 Interactive multi-opening method and system of application program, storage medium and electronic equipment
CN111198723B (en) * 2018-11-19 2023-03-07 深圳市优必选科技有限公司 Process injection method, terminal equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6151605A (en) * 1998-05-29 2000-11-21 Hewlett-Packard Company Generic configuration file processing library and executable
CN101673204A (en) * 2009-08-13 2010-03-17 上海酷吧信息技术有限公司 Dynamic loading method of application program of mobile phone based on arm
CN103530156A (en) * 2013-10-17 2014-01-22 北京奇虎科技有限公司 Method and device for dynamically loading and calling program
CN104050035A (en) * 2014-05-14 2014-09-17 小米科技有限责任公司 Processing method and device for application program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6151605A (en) * 1998-05-29 2000-11-21 Hewlett-Packard Company Generic configuration file processing library and executable
CN101673204A (en) * 2009-08-13 2010-03-17 上海酷吧信息技术有限公司 Dynamic loading method of application program of mobile phone based on arm
CN103530156A (en) * 2013-10-17 2014-01-22 北京奇虎科技有限公司 Method and device for dynamically loading and calling program
CN104050035A (en) * 2014-05-14 2014-09-17 小米科技有限责任公司 Processing method and device for application program

Also Published As

Publication number Publication date
CN104461663A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104461663B (en) A kind of method, apparatus and mobile terminal for loading other mobile terminal applications
US11245725B2 (en) Dynamically updating policy controls for mobile devices and applications
US9811393B2 (en) Consistent extension points to allow an extension to extend functionality of an application to another application
CN104699616B (en) The method of a kind of application test, Apparatus and system
CN107329742B (en) Software development kit calling method and device
US20130283298A1 (en) Managing mobile execution environments
US20160105371A1 (en) Service method for managing transaction using application properties and system therefor
US10298586B2 (en) Using a file whitelist
CN105335171A (en) Method and device for long residence of application program in background of operating system
US9426158B1 (en) Client device connectivity with integrated business rules and multiple network types
AU2015206386B2 (en) Privacy setting metadata for application developers
CN104461583B (en) A kind of method, apparatus and mobile terminal for calling resources-type application
US9276936B2 (en) Tethering enforcement device controller and methods thereof
CN105159771A (en) Method and apparatus for processing inter-application chain type start
CN102945182A (en) Application program updating method and device
CN105740027B (en) Application update method and device
CN102981880A (en) Method and device for realizing application program updating
CN105100132B (en) The method and system of terminal device, identification terminal equipment
CN104507158B (en) A kind of method, apparatus and mobile terminal for establishing WLAN connection
US9197617B1 (en) Client device connectivity with integrated business rules
CN106790252A (en) Log-on message sharing method and device
CN107704259A (en) Application upgrade method, apparatus and storage medium
CN106096394A (en) A kind of Ad blocking method and apparatus of Android application
CN106934272A (en) The method of calibration and device of a kind of application message
CN105279452A (en) Method, device and system for managing intelligent equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220728

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right