CN106502719A - The method and device of the component of management application program - Google Patents
The method and device of the component of management application program Download PDFInfo
- Publication number
- CN106502719A CN106502719A CN201610848372.9A CN201610848372A CN106502719A CN 106502719 A CN106502719 A CN 106502719A CN 201610848372 A CN201610848372 A CN 201610848372A CN 106502719 A CN106502719 A CN 106502719A
- Authority
- CN
- China
- Prior art keywords
- component
- components
- redundant
- application
- list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本公开关于一种管理应用程序的组件的方法及装置,属于计算机技术领域。所述方法包括:获取应用的组件;获取所述组件中的冗余组件,所述冗余组件是指所实现的功能与所述应用的功能无关的组件;禁用所述冗余组件。本公开解决了相关技术中因运行应用的冗余组件,而导致影响用户正常使用应用,且浪费终端的系统资源的问题;达到了避免冗余组件影响到用户正常使用应用,且节省终端的系统资源的技术效果。
The disclosure relates to a method and device for managing components of an application program, and belongs to the technical field of computers. The method includes: acquiring application components; acquiring redundant components in the components, where the redundant components refer to components whose functions are not related to the functions of the application; and disabling the redundant components. This disclosure solves the problem in the related art that the redundant components running the application affect the normal use of the application by the user and waste the system resources of the terminal; it achieves a system that prevents the redundant components from affecting the normal use of the application by the user and saves the terminal Resource technical effects.
Description
技术领域technical field
本公开涉及计算机技术领域,特别涉及一种管理应用程序的组件的方法及装置。The present disclosure relates to the field of computer technology, in particular to a method and device for managing components of application programs.
背景技术Background technique
用户可在终端中安装各类应用程序(application,简称“应用”),以扩展终端的功能。A user may install various applications (applications, "applications" for short) in the terminal to expand functions of the terminal.
应用通常包括多个组件(component),组件是对数据和方法的简单封装,用于实现特定的功能。应用的不同功能可通过不同的组件来实现。以Android(安卓)应用为例,Android应用的组件包括:Activity(活动)、Service(服务)、Broadcast Receiver(广播接收者)和Content Provider(内容提供者)。Android应用的各项功能可通过上述组件来实现。An application usually includes multiple components, and a component is a simple encapsulation of data and methods for implementing specific functions. Different functions of the application can be realized by different components. Taking the Android (Android) application as an example, the components of the Android application include: Activity (activity), Service (service), Broadcast Receiver (broadcast receiver) and Content Provider (content provider). Various functions of the Android application can be realized through the above-mentioned components.
发明内容Contents of the invention
本公开提供了一种管理应用程序的组件的方法及装置。The present disclosure provides a method and device for managing components of an application program.
根据本公开实施例的第一方面,提供了一种管理应用程序的组件的方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, there is provided a method for managing components of an application, the method comprising:
获取应用的组件;Get the components of the application;
获取所述组件中的冗余组件,所述冗余组件是指所实现的功能与所述应用的功能无关的组件;Obtaining redundant components among the components, where the redundant components refer to components whose implemented functions are not related to the functions of the application;
禁用所述冗余组件。Disable said redundant components.
可选地,所述获取所述组件中的冗余组件,包括:Optionally, the acquiring redundant components in the components includes:
显示所述组件;display said component;
获取对应于所述组件中的所述冗余组件的选择信号;acquiring a selection signal corresponding to the redundant one of the components;
根据所述选择信号,将被选择的所述组件确定为所述冗余组件。The selected component is determined as the redundant component according to the selection signal.
可选地,所述获取所述组件中的冗余组件,包括:Optionally, the acquiring redundant components in the components includes:
对于每一个组件,检测所述组件在被禁用之后,所述应用的功能是否受到影响;For each component, detecting whether the function of the application is affected after the component is disabled;
若所述组件在被禁用之后所述应用的功能未受影响,则将所述组件确定为所述冗余组件。If the function of the application is not affected after the component is disabled, the component is determined to be the redundant component.
可选地,所述获取所述组件中的冗余组件,包括:Optionally, the acquiring redundant components in the components includes:
分别检测各个所述组件是否在冗余组件列表中,所述冗余组件列表中包括至少一个冗余组件;respectively detecting whether each of the components is in a redundant component list, and the redundant component list includes at least one redundant component;
将在所述冗余组件列表中的组件确定为所述冗余组件。A component in the redundant component list is determined as the redundant component.
可选地,所述方法还包括:Optionally, the method also includes:
接收服务器发送的所述冗余组件列表;receiving the redundant component list sent by the server;
或者,or,
当获取到对应于目标功能的关闭指示时,将用于实现所述目标功能的组件添加至所述冗余组件列表中。When the shutdown indication corresponding to the target function is acquired, the components for realizing the target function are added to the redundant component list.
可选地,所述禁用所述冗余组件,包括:Optionally, the disabling the redundant component includes:
调用组件启用设置方法,通过所述组件启用设置方法禁用所述冗余组件。Call the component enabling setting method, and disable the redundant component through the component enabling setting method.
根据本公开实施例的第二方面,提供了一种管理应用程序的组件的装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, an apparatus for managing components of an application program is provided, the apparatus comprising:
第一获取模块,被配置为获取应用的组件;The first acquisition module is configured to acquire components of the application;
第二获取模块,被配置为获取所述组件中的冗余组件,所述冗余组件是指所实现的功能与所述应用的功能无关的组件;The second acquiring module is configured to acquire redundant components among the components, where the redundant components refer to components whose implemented functions are not related to the functions of the application;
禁用模块,被配置为禁用所述冗余组件。a disabling module configured to disable the redundant component.
可选地,所述第二获取模块,包括:Optionally, the second acquisition module includes:
组件显示子模块,被配置为显示所述组件;a component display sub-module configured to display said component;
信号获取子模块,被配置为获取对应于所述组件中的所述冗余组件的选择信号;a signal acquisition submodule configured to acquire a selection signal corresponding to the redundant component of the components;
第一确定子模块,被配置为根据所述选择信号,将被选择的所述组件确定为所述冗余组件。The first determination submodule is configured to determine the selected component as the redundant component according to the selection signal.
可选地,所述第二获取模块,包括:Optionally, the second acquisition module includes:
功能检测子模块,被配置为对于每一个组件,检测所述组件在被禁用之后,所述应用的功能是否受到影响;A function detection submodule configured to, for each component, detect whether the function of the application is affected after the component is disabled;
第二确定子模块,被配置为在所述组件在被禁用之后所述应用的功能未受影响时,将所述组件确定为所述冗余组件。The second determining submodule is configured to determine the component as the redundant component when the function of the application is not affected after the component is disabled.
可选地,所述第二获取模块,包括:Optionally, the second acquisition module includes:
组件检测子模块,被配置为分别检测各个所述组件是否在冗余组件列表中,所述冗余组件列表中包括至少一个冗余组件;The component detection submodule is configured to detect whether each of the components is in the redundant component list, and the redundant component list includes at least one redundant component;
第三确定子模块,被配置为将在所述冗余组件列表中的组件确定为所述冗余组件。The third determining submodule is configured to determine a component in the redundant component list as the redundant component.
可选地,所述装置还包括:Optionally, the device also includes:
列表接收模块,被配置为接收服务器发送的所述冗余组件列表;A list receiving module configured to receive the redundant component list sent by the server;
列表构建模块,被配置为当获取到对应于目标功能的关闭指示时,将用于实现所述目标功能的组件添加至所述冗余组件列表中。The list construction module is configured to add the components for realizing the target function to the redundant component list when the shutdown instruction corresponding to the target function is obtained.
可选地,所述禁用模块,被配置为调用组件启用设置方法,通过所述组件启用设置方法禁用所述冗余组件。Optionally, the disabling module is configured to call a component enabling setting method, and disable the redundant component through the component enabling setting method.
根据本公开实施例的第三方面,提供了一种管理应用程序的组件的装置,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for managing application components, the apparatus comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
获取应用的组件;Get the components of the application;
获取所述组件中的冗余组件,所述冗余组件是指所实现的功能与所述应用的功能无关的组件;Obtaining redundant components among the components, where the redundant components refer to components whose implemented functions are not related to the functions of the application;
禁用所述冗余组件。Disable said redundant components.
本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过获取应用的组件中的冗余组件,并禁用该冗余组件,使得终端在运行应用的过程中不会运行与应用功能无关的冗余组件;解决了相关技术中因运行应用的冗余组件,而导致影响用户正常使用应用,且浪费终端的系统资源的问题;达到了避免冗余组件影响到用户正常使用应用,且节省终端的系统资源的技术效果。By obtaining the redundant components in the application components and disabling the redundant components, the terminal will not run redundant components that have nothing to do with the application function during the process of running the application; it solves the problem of redundant components running applications in related technologies , leading to the problem of affecting the normal use of applications by users and wasting the system resources of the terminal; achieving the technical effect of preventing redundant components from affecting the normal use of applications by users and saving system resources of the terminal.
另外,通过获取对应于组件中的冗余组件的选择信号,根据选择信号,将被选择的组件确定为冗余组件;使得终端可以根据用户的选择确定冗余组件,有助于提高确定出的冗余组件的准确性。In addition, by acquiring a selection signal corresponding to a redundant component in the component, the selected component is determined as a redundant component according to the selection signal; so that the terminal can determine the redundant component according to the user's selection, which helps to improve the determined Accuracy of redundant components.
另外,通过检测组件在被禁用之后,应用的功能是否受到影响,若组件在被禁用之后应用的功能未受影响,则将组件确定为冗余组件;实现了自动化地分析确定冗余组件。In addition, by detecting whether the function of the application is affected after the component is disabled, if the function of the application is not affected after the component is disabled, the component is determined as a redundant component; automatic analysis and determination of the redundant component is realized.
另外,通过分别检测各个组件是否在冗余组件列表中,将在冗余组件列表中的组件确定为冗余组件;实现了自动化地确定冗余组件,且能够简单、高效地确定出冗余组件。In addition, by detecting whether each component is in the redundant component list, the components in the redundant component list are determined as redundant components; automatic determination of redundant components is realized, and redundant components can be determined simply and efficiently .
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本公开说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种管理应用程序的组件的方法的流程图;Fig. 1 is a flowchart showing a method for managing components of an application program according to an exemplary embodiment;
图2是根据另一示例性实施例示出的一种管理应用程序的组件的方法的流程图;Fig. 2 is a flowchart of a method for managing components of an application program according to another exemplary embodiment;
图3是根据另一示例性实施例示出的一种管理应用程序的组件的方法的流程图;Fig. 3 is a flow chart of a method for managing components of an application program according to another exemplary embodiment;
图4是根据另一示例性实施例示出的一种管理应用程序的组件的方法的流程图;Fig. 4 is a flowchart of a method for managing components of an application program according to another exemplary embodiment;
图5是根据一示例性实施例示出的一种管理应用程序的组件的装置的框图;Fig. 5 is a block diagram of an apparatus for managing application program components according to an exemplary embodiment;
图6A是根据一示例性实施例示出的一种第二获取模块的框图;Fig. 6A is a block diagram of a second acquisition module according to an exemplary embodiment;
图6B是根据另一示例性实施例示出的一种第二获取模块的框图;Fig. 6B is a block diagram of a second acquisition module according to another exemplary embodiment;
图6C是根据另一示例性实施例示出的一种第二获取模块的框图;Fig. 6C is a block diagram of a second acquisition module according to another exemplary embodiment;
图7是根据一示例性实施例示出的一种装置的框图。Fig. 7 is a block diagram of a device according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
由于应用的组件中有可能会包括一些冗余组件,冗余组件是指所实现的功能与应用的功能无关的组件,这些冗余组件的运行无疑会影响用户正常使用应用,且浪费终端的系统资源(如处理资源和存储资源)。例如,一款具备计算器功能的应用,其除了包括用于实现计算器功能的组件之外,还可能包括用于实现广告推送功能的组件。在该应用运行的过程中,用于实现广告推送功能的组件也启动运行,向用户推送广告,这不仅会影响到用户正常使用应用,而且会浪费终端的系统资源。基于此,本公开实施例提供了一种管理应用程序的组件的方法,和基于这个方法的装置,以解决上述相关技术中存在的问题。本公开实施例提供的技术方案,其核心思想是获取应用中的冗余组件,并禁用该冗余组件,以避免冗余组件影响到用户正常使用应用,且有助于节省终端的系统资源。Since the application components may include some redundant components, redundant components refer to components whose functions are not related to the functions of the application. The operation of these redundant components will undoubtedly affect the normal use of the application by users and waste the terminal system. resources (such as processing resources and storage resources). For example, an application with a calculator function may include a component for implementing an advertisement push function in addition to components for realizing the calculator function. During the running of the application, the components used to implement the advertisement push function also start running to push advertisements to the user, which will not only affect the normal use of the application by the user, but also waste system resources of the terminal. Based on this, the embodiments of the present disclosure provide a method for managing components of an application program, and an apparatus based on the method, so as to solve the problems existing in the above-mentioned related technologies. The core idea of the technical solutions provided by the embodiments of the present disclosure is to obtain redundant components in applications and disable the redundant components, so as to prevent the redundant components from affecting the normal use of applications by users and help save system resources of the terminal.
本公开实施例提供的方法,各步骤的执行主体可以是终端,该终端可以为手机、平板电脑、电子书阅读器、多媒体播放设备、计算机等。为了便于表述,在下述各个方法实施例中,以各步骤的执行主体为终端进行说明。In the method provided by the embodiments of the present disclosure, the execution subject of each step may be a terminal, and the terminal may be a mobile phone, a tablet computer, an e-book reader, a multimedia playback device, a computer, and the like. For ease of expression, in the following method embodiments, the execution subject of each step is taken as the terminal for description.
图1是根据一示例性实施例示出的一种管理应用程序的组件的方法的流程图,该方法可以包括如下几个步骤。Fig. 1 is a flowchart of a method for managing components of an application program according to an exemplary embodiment, and the method may include the following steps.
在步骤101中,获取应用的组件。In step 101, the components of the application are obtained.
终端获取应用的组件。应用通常包括多个组件,组件是对数据和方法的简单封装,用于实现特定的功能。以Android应用为例,Android应用的组件包括:Activity、Service、Broadcast Receiver和Content Provider。上述四大组件的主要功能如下:Activity组件用于显示用户交互界面;Service组件用于实现无界面且长时间运行的功能;BroadcastReceiver组件用于接收来自系统和应用的广播消息;Content Provider组件用于存储应用需要的数据。Android应用的各项功能可通过上述组件来实现。在本公开实施例中,对应用的类型不作限定,其可以是能够在终端中安装的各类应用程序,如即时通信应用、社交类应用、支付类应用、生活服务类应用、购物类应用、日常工具类应用,等等。The terminal gets the components of the application. An application usually includes multiple components, and a component is a simple encapsulation of data and methods to implement specific functions. Taking Android applications as an example, the components of Android applications include: Activity, Service, Broadcast Receiver, and Content Provider. The main functions of the above four components are as follows: Activity component is used to display the user interface; Service component is used to realize the function of no interface and long-running; BroadcastReceiver component is used to receive broadcast messages from the system and applications; Content Provider component is used to Store the data needed by the application. Various functions of the Android application can be realized through the above-mentioned components. In the embodiments of the present disclosure, the application type is not limited, and it can be various application programs that can be installed in the terminal, such as instant messaging applications, social applications, payment applications, life service applications, shopping applications, Daily tool applications, etc.
在一个示例中,终端通过指定管理类获取应用的组件,该指定管理类用于管理应用的各个组件。以Android系统为例,终端通过Package Manager(包管理类)获取应用的组件。Package Manager主要用于管理应用程序包,通过它即可获取应用的各个组件。In an example, the terminal obtains the components of the application through a specified management class, and the specified management class is used to manage various components of the application. Taking the Android system as an example, the terminal obtains application components through a Package Manager (package management class). Package Manager is mainly used to manage application packages, through which each component of the application can be obtained.
可选地,终端不必获取应用的所有组件,终端获取应用的广播接收组件和服务组件。其中,广播接收组件用于接收来自系统和应用的广播消息,服务组件用于实现无界面且长时间运行的功能。以Android应用为例,广播接收组件即为Broadcast Receiver组件,服务组件即为Service组件。也即,终端可不必获取应用的Activity组件和Content Provider组件,仅获取应用的Broadcast Receiver组件和Service组件即可。由于Activity组件和Content Provider组件所实现的功能通常是与应用的功能相关的,且Activity组件和Content Provider组件不会在后台自动运行占用系统资源,因此Activity组件和ContentProvider组件中存在冗余组件的可能性较小,为了节省终端的处理开销以及提高终端后续获取冗余组件的效率,可不必获取应用的Activity组件和Content Provider组件。而Broadcast Receiver组件和Service组件能够自启动运行,尤其是Service组件能够在后台常驻运行,通常利用Broadcast Receiver组件和Service组件来实现一些与应用的功能无关的功能,因此Broadcast Receiver组件和Service组件中存在冗余组件的可能性较大,是需要重点管控的对象。以Android应用为例,在一个示例中,终端通过Package Manager的queryBroadcastReceivers方法获取应用的广播接收组件(也即Broadcast Receiver组件);终端通过Package Manager的queryIntentServices方法获取应用的服务组件(也即Service组件)。Optionally, the terminal does not need to obtain all components of the application, but the terminal obtains the broadcast receiving component and the service component of the application. Among them, the broadcast receiving component is used to receive broadcast messages from the system and applications, and the service component is used to realize the function of no interface and long-running. Taking the Android application as an example, the broadcast receiving component is the Broadcast Receiver component, and the service component is the Service component. That is, the terminal does not need to obtain the Activity component and the Content Provider component of the application, but only obtains the Broadcast Receiver component and the Service component of the application. Since the functions implemented by the Activity component and the Content Provider component are usually related to the functions of the application, and the Activity component and the Content Provider component will not automatically run in the background to occupy system resources, there may be redundant components in the Activity component and the ContentProvider component. In order to save the processing overhead of the terminal and improve the efficiency of the subsequent acquisition of redundant components by the terminal, it is not necessary to obtain the Activity component and the Content Provider component of the application. The Broadcast Receiver component and the Service component can run automatically, especially the Service component can run permanently in the background. Usually, the Broadcast Receiver component and the Service component are used to implement some functions that have nothing to do with the application function. Therefore, the Broadcast Receiver component and the Service component There is a high possibility of redundant components, which are the objects that need to be controlled. Taking the Android application as an example, in one example, the terminal obtains the broadcast receiving component (that is, the Broadcast Receiver component) of the application through the queryBroadcastReceivers method of the Package Manager; the terminal obtains the service component (that is, the Service component) of the application through the queryIntentServices method of the Package Manager .
另外,终端所获取的应用的组件,可以是应用中当前正在运行的组件。对于应用中当前不在运行的组件,由于其并不会影响到用户正常使用应用,也不会占用终端的系统资源,因此可不必获取。In addition, the components of the application acquired by the terminal may be components currently running in the application. For the components in the application that are not currently running, since they will not affect the user's normal use of the application and will not occupy the system resources of the terminal, it is not necessary to obtain them.
在步骤102中,获取组件中的冗余组件。In step 102, redundant components among the components are obtained.
终端获取组件中的冗余组件,冗余组件是指所实现的功能与应用的功能无关的组件。也即,对于应用所包括的某一组件来说,如果去除该组件并不会影响到应用的功能,则该组件即可认为是冗余组件。例如,冗余组件通常包括用于实现广告推送功能的组件、用于实现应用升级功能的组件、用于实现窗口弹出功能的组件,等等。The terminal obtains a redundant component among the components, and the redundant component refers to a component whose function is not related to the function of the application. That is, for a certain component included in the application, if removing the component will not affect the function of the application, the component can be considered as a redundant component. For example, redundant components generally include components for implementing an advertisement push function, components for implementing an application upgrade function, components for implementing a window pop-up function, and so on.
终端获取组件中的冗余组件的可能实现方式,可参见下述图2至图4所示实施例中的介绍和说明。For a possible implementation manner of the redundant component in the terminal acquisition component, refer to the introduction and description in the embodiments shown in FIG. 2 to FIG. 4 below.
在步骤103中,禁用冗余组件。In step 103, redundant components are disabled.
终端禁用冗余组件,也即终端将冗余组件关闭,禁止其运行。冗余组件被禁用之后,应用的其它非冗余组件仍可正常运行,因此应用的功能不会受到影响。The terminal disables the redundant components, that is, the terminal shuts down the redundant components and prohibits them from running. After a redundant component is disabled, other non-redundant components of the application continue to function normally, so the functionality of the application is not affected.
在一个示例中,终端调用组件启用设置方法,通过组件启用设置方法禁用冗余组件。以Android应用为例,终端调用Package Manager的setComponentEnabledSetting方法禁用冗余组件。In one example, the terminal invokes a component enabling setting method, and redundant components are disabled through the component enabling setting method. Taking an Android application as an example, the terminal calls the setComponentEnabledSetting method of the Package Manager to disable redundant components.
综上所述,本实施例提供的方法,通过获取应用的组件中的冗余组件,并禁用该冗余组件,使得终端在运行应用的过程中不会运行与应用功能无关的冗余组件;解决了相关技术中因运行应用的冗余组件,而导致影响用户正常使用应用,且浪费终端的系统资源的问题;达到了避免冗余组件影响到用户正常使用应用,且节省终端的系统资源的技术效果。To sum up, the method provided in this embodiment obtains redundant components among application components and disables the redundant components, so that the terminal will not run redundant components that are not related to application functions during the process of running the application; It solves the problem in the related art that the redundant components running the application affect the normal use of the application by the user and wastes the system resources of the terminal; it achieves the goal of preventing the redundant components from affecting the normal use of the application by the user and saving the system resources of the terminal technical effect.
下面,通过几个实施例对获取组件中的冗余组件的几种可能实现方式进行介绍和说明。In the following, several possible implementation manners of the redundant component in the acquisition component are introduced and illustrated through several embodiments.
图2是根据另一示例性实施例示出的一种管理应用程序的组件的方法的流程图,该方法可以包括如下几个步骤。Fig. 2 is a flowchart of a method for managing components of an application program according to another exemplary embodiment, and the method may include the following steps.
在步骤201中,获取应用的组件。In step 201, the components of the application are acquired.
本步骤可参见上文对于步骤101的介绍和说明,本实施例对此不再赘述。For this step, refer to the introduction and description of step 101 above, which will not be repeated in this embodiment.
在步骤202中,显示组件。In step 202, the components are displayed.
终端将获取到的各个组件进行显示,以供用户从终端显示的各个组件中选择冗余组件。终端显示组件的方式可以是以列表的方式显示所有组件,也可以逐个显示每个组件,本实施例不对终端显示组件的方式作限定。The terminal displays the acquired components for the user to select redundant components from the components displayed on the terminal. The method of displaying the components on the terminal may be to display all the components in a list, or to display each component one by one. This embodiment does not limit the method of displaying the components on the terminal.
可选地,由于用户根据组件的名称或者组件包括的代码可能无法了解组件所实现的功能,这样,可能会导致用户错误地选择了影响应用正常使用的组件,因此,本实施例中,终端在显示组件时,还可以对应显示组件所实现的功能,以便用户准确地选择冗余组件。Optionally, because the user may not be able to understand the functions implemented by the component according to the name of the component or the code included in the component, this may cause the user to wrongly select a component that affects the normal use of the application. Therefore, in this embodiment, the terminal is in the When the components are displayed, the functions realized by the components may also be displayed correspondingly, so that the user can accurately select redundant components.
在步骤203中,获取对应于组件中的冗余组件的选择信号。In step 203, a selection signal corresponding to a redundant component among the components is obtained.
用户从终端显示的组件中选择冗余组件。相应地,终端获取用户触发的对应于组件中的冗余组件的选择信号,该选择信号用于指示用户选择的冗余组件。假设终端以列表的方式显示所有组件,该列表中包括每一个组件对应的选择项(如勾选框、选择按钮等)。对于上述列表中的任一组件,若用户需要选择其作为冗余组件,则用户可点击该组件对应的选择项以触发选择信号,终端获取到该选择信号之后,确定该组件被用户选择为冗余组件。The user selects redundant components from the components displayed in the terminal. Correspondingly, the terminal acquires a user-triggered selection signal corresponding to the redundant component in the components, where the selection signal is used to indicate the redundant component selected by the user. It is assumed that the terminal displays all components in a list, and the list includes options corresponding to each component (such as a check box, a selection button, etc.). For any component in the above list, if the user needs to select it as a redundant component, the user can click the selection item corresponding to the component to trigger the selection signal. After the terminal obtains the selection signal, it determines that the component is selected by the user as a redundant component. remaining components.
在步骤204中,根据选择信号,将被选择的组件确定为冗余组件。In step 204, the selected component is determined as a redundant component according to the selection signal.
终端将选择信号所对应的组件确定为冗余组件。The terminal determines the component corresponding to the selection signal as a redundant component.
在步骤205中,禁用冗余组件。In step 205, redundant components are disabled.
本步骤可参见上文对于步骤103的介绍和说明,本实施例对此不再赘述。For this step, reference may be made to the introduction and description of step 103 above, which will not be repeated in this embodiment.
综上所述,本实施例提供的方法,通过获取对应于组件中的冗余组件的选择信号,根据选择信号,将被选择的组件确定为冗余组件;使得终端可以根据用户的选择确定冗余组件,有助于提高确定出的冗余组件的准确性。To sum up, the method provided by this embodiment determines the selected component as a redundant component according to the selection signal by acquiring the selection signal corresponding to the redundant component in the component; so that the terminal can determine the redundant component according to the user's selection. redundant components, which helps to improve the accuracy of the identified redundant components.
图3是根据另一示例性实施例示出的一种管理应用程序的组件的方法的流程图,该方法可以包括如下几个步骤。Fig. 3 is a flowchart of a method for managing components of an application program according to another exemplary embodiment, and the method may include the following steps.
在步骤301中,获取应用的组件。In step 301, the components of the application are acquired.
本步骤可参见上文对于步骤101的介绍和说明,本实施例对此不再赘述。For this step, refer to the introduction and description of step 101 above, which will not be repeated in this embodiment.
在步骤302中,对于每一个组件,检测组件在被禁用之后,应用的功能是否受到影响。In step 302, for each component, it is detected whether the function of the application is affected after the component is disabled.
终端将获取的组件依次通过启用设置方法禁用,并检测该应用是否存在闪退、卡死、无法启动、无法实现人机交互等问题,若存在,则说明应用的功能受到影响。若组件在被禁用之后应用的功能未受到影响,则执行步骤303;若组件在被禁用之后应用的功能受到影响,则再次启动该组件,并切换下一个组件再次执行步骤302。本实施例不对终端禁用每个组件的顺序作限定。The terminal disables the obtained components sequentially through the enabling setting method, and detects whether the application has problems such as crashing, freezing, failure to start, and failure to realize human-computer interaction. If there are problems, it means that the function of the application is affected. If the function of the application of the component is not affected after being disabled, perform step 303; if the function of the application of the component is affected after being disabled, start the component again, and switch to the next component to perform step 302 again. This embodiment does not limit the order in which the terminal disables each component.
在步骤303中,若组件在被禁用之后应用的功能未受影响,则将组件确定为冗余组件。In step 303, if the function of the application of the component is not affected after being disabled, then the component is determined as a redundant component.
若组件在被禁用之后应用的功能未受影响,则说明该组件是与应用的功能无关的组件,终端将该组件确定为冗余组件。If the function of the application is not affected after the component is disabled, it means that the component is irrelevant to the function of the application, and the terminal determines the component as a redundant component.
在步骤304中,禁用冗余组件。In step 304, redundant components are disabled.
本步骤可参见上文对于步骤103的介绍和说明,本实施例对此不再赘述。For this step, reference may be made to the introduction and description of step 103 above, which will not be repeated in this embodiment.
综上所述,本实施例提供的方法,通过检测组件在被禁用之后,应用的功能是否受到影响,若组件在被禁用之后应用的功能未受影响,则将组件确定为冗余组件;实现了自动化地分析确定冗余组件。To sum up, the method provided by this embodiment detects whether the function of the application is affected after the component is disabled, and if the function of the application is not affected after the component is disabled, then the component is determined as a redundant component; Automated analysis to identify redundant components.
图4是根据另一示例性实施例示出的一种管理应用程序的组件的方法的流程图,该方法可以包括如下几个步骤。Fig. 4 is a flowchart of a method for managing components of an application program according to another exemplary embodiment, and the method may include the following steps.
在步骤401中,获取应用的组件。In step 401, the components of the application are obtained.
本步骤可参见上文对于步骤101的介绍和说明,本实施例对此不再赘述。For this step, refer to the introduction and description of step 101 above, which will not be repeated in this embodiment.
在步骤402中,分别检测各个组件是否在冗余组件列表中,冗余组件列表中包括至少一个冗余组件。In step 402, it is detected whether each component is in the redundant component list, and the redundant component list includes at least one redundant component.
终端可预先存储应用所对应的冗余组件列表,该应用所对应的冗余组件列表中包括应用的各个冗余组件。例如,该应用所对应的冗余组件列表中包括应用的各个冗余组件的标识。对于获取到的每一个组件,终端检测该组件是否在冗余组件列表中;若是,则确定该组件为冗余组件;若否,则确定该组件不是冗余组件。The terminal may pre-store a redundant component list corresponding to the application, and the redundant component list corresponding to the application includes each redundant component of the application. For example, the redundant component list corresponding to the application includes identifiers of each redundant component of the application. For each acquired component, the terminal checks whether the component is in the redundant component list; if yes, determines that the component is a redundant component; if not, determines that the component is not a redundant component.
在步骤403中,将在冗余组件列表中的组件确定为冗余组件。In step 403, the components in the redundant component list are determined as redundant components.
在步骤404中,禁用冗余组件。In step 404, redundant components are disabled.
本步骤可参见上文对于步骤103的介绍和说明,本实施例对此不再赘述。For this step, reference may be made to the introduction and description of step 103 above, which will not be repeated in this embodiment.
另外,终端可通过如下方式获取冗余组件列表:In addition, the terminal can obtain the list of redundant components in the following ways:
在一个示例中,终端接收服务器发送的冗余组件列表。服务器端可维护有各个应用所对应的冗余组件列表。终端可从服务器中下载获取应用所对应的冗余组件列表。In an example, the terminal receives the redundant component list sent by the server. The server side may maintain a redundant component list corresponding to each application. The terminal can download and obtain the redundant component list corresponding to the application from the server.
在另一示例中,当获取到对应于目标功能的关闭指示时,终端将用于实现目标功能的组件添加至冗余组件列表中。冗余组件列表还可以是终端根据用户选择的需要关闭的功能而自行生成的。例如,当终端检测到用户关闭应用显示的推送广告时,终端将应用中用于实现广告推送功能的组件添加至冗余组件列表中。通过上述方式,所确定的冗余组件更加符合用户的个性化需求。In another example, when the shutdown indication corresponding to the target function is acquired, the terminal adds the component used to realize the target function to the redundant component list. The redundant component list may also be generated by the terminal itself according to the functions selected by the user that need to be turned off. For example, when the terminal detects that the user closes the push advertisement displayed by the application, the terminal adds the components used to implement the advertisement push function in the application to the list of redundant components. Through the above method, the determined redundant components are more in line with the individual requirements of the user.
综上所述,本实施例提供的方法,通过分别检测各个组件是否在冗余组件列表中,将在冗余组件列表中的组件确定为冗余组件;实现了自动化地确定冗余组件,且能够简单、高效地确定出冗余组件。To sum up, the method provided in this embodiment determines the components in the redundant component list as redundant components by separately detecting whether each component is in the redundant component list; realizes automatic determination of redundant components, and Redundant components can be determined simply and efficiently.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.
图5是根据一示例性实施例示出的一种管理应用程序的组件的装置的框图。该装置具有实现上述方法示例的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置可以包括:第一获取模块510、第二获取模块520和禁用模块530。Fig. 5 is a block diagram of an apparatus for managing components of an application program according to an exemplary embodiment. The device has the function of realizing the above-mentioned method example, and the function may be realized by hardware, or may be realized by executing corresponding software by the hardware. The apparatus may include: a first obtaining module 510 , a second obtaining module 520 and a disabling module 530 .
第一获取模块510,被配置为获取应用的组件。The first obtaining module 510 is configured to obtain application components.
第二获取模块520,被配置为获取第一获取模块510获取的组件中的冗余组件,冗余组件是指所实现的功能与应用的功能无关的组件。The second acquiring module 520 is configured to acquire redundant components among the components acquired by the first acquiring module 510, where redundant components refer to components whose implemented functions are not related to the functions of the application.
禁用模块530,被配置为禁用第二获取模块520获取的冗余组件。The disabling module 530 is configured to disable the redundant components obtained by the second obtaining module 520 .
综上所述,本实施例提供的装置,通过获取应用的组件中的冗余组件,并禁用该冗余组件,使得终端在运行应用的过程中不会运行与应用功能无关的冗余组件;解决了相关技术中因运行应用的冗余组件,而导致影响用户正常使用应用,且浪费终端的处理资源的问题;达到了避免冗余组件影响到用户正常使用应用,且节省终端的处理资源的技术效果。To sum up, the device provided by this embodiment obtains the redundant component in the application components and disables the redundant component, so that the terminal will not run the redundant component irrelevant to the application function during the process of running the application; It solves the problem in the related art that the redundant components running the application affect the normal use of the application by the user and wastes the processing resources of the terminal; it achieves the goal of avoiding the influence of the redundant components on the normal use of the application by the user and saving the processing resources of the terminal technical effect.
在基于图5所示实施例提供的一个可选实施例中,如图6A所示,第二获取模块520,包括:组件显示子模块521、信号获取子模块522和第一确定子模块523。In an optional embodiment provided based on the embodiment shown in FIG. 5 , as shown in FIG. 6A , the second acquisition module 520 includes: a component display submodule 521 , a signal acquisition submodule 522 and a first determination submodule 523 .
组件显示子模块521,被配置为显示第一获取模块510获取的组件。The component display sub-module 521 is configured to display the components obtained by the first obtaining module 510 .
信号获取子模块522,被配置为获取对应于组件显示子模块521显示的组件中的冗余组件的选择信号。The signal acquisition submodule 522 is configured to acquire a selection signal corresponding to a redundant component among the components displayed by the component display submodule 521 .
第一确定子模块523,被配置为根据信号获取子模块522获取的选择信号,将被选择的组件确定为冗余组件。The first determination submodule 523 is configured to determine the selected component as a redundant component according to the selection signal acquired by the signal acquisition submodule 522 .
在基于图5所示实施例提供的另一可选实施例中,如图6B所示,第二获取模块520,包括:功能检测子模块524和第二确定子模块525。In another optional embodiment provided based on the embodiment shown in FIG. 5 , as shown in FIG. 6B , the second obtaining module 520 includes: a function detection submodule 524 and a second determination submodule 525 .
功能检测子模块524,被配置为对于第一获取模块510获取的每一个组件,检测组件在被禁用之后,应用的功能是否受到影响。The function detection sub-module 524 is configured to, for each component obtained by the first obtaining module 510, detect whether the function of the application is affected after the component is disabled.
第二确定子模块525,被配置为在功能检测子模块524检测出组件在被禁用之后应用的功能未受影响时,将组件确定为冗余组件。The second determining submodule 525 is configured to determine the component as a redundant component when the function detecting submodule 524 detects that the function of the application of the component is not affected after being disabled.
在基于图5所示实施例提供的另一可选实施例中,如图6C所示,第二获取模块520,包括:组件检测子模块526和第三确定子模块527。In another optional embodiment provided based on the embodiment shown in FIG. 5 , as shown in FIG. 6C , the second obtaining module 520 includes: a component detection submodule 526 and a third determination submodule 527 .
组件检测子模块526,被配置为分别检测第一获取模块510获取的各个组件是否在冗余组件列表中,冗余组件列表中包括至少一个冗余组件。The component detection sub-module 526 is configured to respectively detect whether each component obtained by the first obtaining module 510 is in the redundant component list, and the redundant component list includes at least one redundant component.
第三确定子模块527,被配置为根据组件检测子模块526的检测结果,将在冗余组件列表中的组件确定为冗余组件。The third determination submodule 527 is configured to determine the components in the redundant component list as redundant components according to the detection result of the component detection submodule 526 .
可选地,所述装置还包括:列表接收模块或者列表构建模块。Optionally, the device further includes: a list receiving module or a list building module.
列表接收模块,被配置为接收服务器发送的冗余组件列表。The list receiving module is configured to receive the redundant component list sent by the server.
列表构建模块,被配置为当获取到对应于目标功能的关闭指示时,将用于实现目标功能的组件添加至冗余组件列表中。The list building module is configured to add the components used to realize the target function to the redundant component list when the shutdown instruction corresponding to the target function is obtained.
在基于图5所示实施例提供的另一可选实施例中,禁用模块530,被配置为调用组件启用设置方法,通过组件启用设置方法禁用冗余组件。In another optional embodiment provided based on the embodiment shown in FIG. 5 , the disabling module 530 is configured to call a component enabling setting method, and disable redundant components through the component enabling setting method.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that when the device provided by the above embodiment realizes its functions, it only uses the division of the above-mentioned functional modules as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
本公开一示例性实施例还提供了一种管理应用程序的组件的装置,能够实现本公开提供的管理应用程序的组件的方法,该装置包括:处理器,以及用于存储处理器的可执行指令的存储器。其中,处理器被配置为:An exemplary embodiment of the present disclosure also provides a device for managing application program components, capable of implementing the method for managing application program components provided in the present disclosure, the device includes: a processor, and an executable program for storing the processor instruction memory. where the processor is configured as:
获取应用的组件;Get the components of the application;
获取所述组件中的冗余组件,所述冗余组件是指所实现的功能与所述应用的功能无关的组件;Obtaining redundant components among the components, where the redundant components refer to components whose implemented functions are not related to the functions of the application;
禁用所述冗余组件。Disable said redundant components.
可选地,所述处理器被配置为:Optionally, the processor is configured to:
显示所述组件;display said component;
获取对应于所述组件中的所述冗余组件的选择信号;acquiring a selection signal corresponding to the redundant one of the components;
根据所述选择信号,将被选择的所述组件确定为所述冗余组件。The selected component is determined as the redundant component according to the selection signal.
可选地,所述处理器被配置为:Optionally, the processor is configured to:
对于每一个组件,检测所述组件在被禁用之后,所述应用的功能是否受到影响;For each component, detecting whether the function of the application is affected after the component is disabled;
若所述组件在被禁用之后所述应用的功能未受影响,则将所述组件确定为所述冗余组件。If the function of the application is not affected after the component is disabled, the component is determined to be the redundant component.
可选地,所述处理器被配置为:Optionally, the processor is configured to:
分别检测各个所述组件是否在冗余组件列表中,所述冗余组件列表中包括至少一个冗余组件;respectively detecting whether each of the components is in a redundant component list, and the redundant component list includes at least one redundant component;
将在所述冗余组件列表中的组件确定为所述冗余组件。A component in the redundant component list is determined as the redundant component.
可选地,所述处理器还被配置为:Optionally, the processor is also configured to:
接收服务器发送的所述冗余组件列表;receiving the redundant component list sent by the server;
或者,or,
当获取到对应于目标功能的关闭指示时,将用于实现所述目标功能的组件添加至所述冗余组件列表中。When the shutdown indication corresponding to the target function is acquired, the components for realizing the target function are added to the redundant component list.
可选地,所述处理器被配置为:Optionally, the processor is configured to:
调用组件启用设置方法,通过所述组件启用设置方法禁用所述冗余组件。Call the component enabling setting method, and disable the redundant component through the component enabling setting method.
图7是根据一示例性实施例示出的一种装置700的框图。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of an apparatus 700 according to an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。7, device 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, and communication component 716 .
处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器718来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally controls the overall operations of the device 700, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 718 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 702 may include one or more modules that facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702 .
存储器704被配置为存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 704 is configured to store various types of data to support operations at the device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件706为装置700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。The power supply component 706 provides power to various components of the device 700 . Power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 700 .
多媒体组件708包括在所述装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 708 includes a front camera and/or a rear camera. When the device 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a microphone (MIC), which is configured to receive external audio signals when the device 700 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 704 or sent via communication component 716 . In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到装置700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for device 700 . For example, the sensor component 714 can detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor component 714 can also detect a change in the position of the device 700 or a component of the device 700 , the presence or absence of user contact with the device 700 , the device 700 orientation or acceleration/deceleration and the temperature change of the device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The device 700 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器718执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, which can be executed by the processor 718 of the apparatus 700 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置700的处理器执行时,使得装置700能够执行上述方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the device 700, the device 700 can execute the above method.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610848372.9A CN106502719A (en) | 2016-09-23 | 2016-09-23 | The method and device of the component of management application program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610848372.9A CN106502719A (en) | 2016-09-23 | 2016-09-23 | The method and device of the component of management application program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106502719A true CN106502719A (en) | 2017-03-15 |
Family
ID=58291084
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610848372.9A Pending CN106502719A (en) | 2016-09-23 | 2016-09-23 | The method and device of the component of management application program |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106502719A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107526683A (en) * | 2017-08-23 | 2017-12-29 | 北京小米移动软件有限公司 | Detection method, device and the storage medium of function of application redundancy |
| CN110765063A (en) * | 2019-10-25 | 2020-02-07 | 武汉惠利德科技有限公司 | Advertisement pushing method based on intelligent calculator and intelligent calculator |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101291305A (en) * | 2008-06-25 | 2008-10-22 | 腾讯科技(深圳)有限公司 | Method and customer terminal realizing plug-in management |
| CN103617078A (en) * | 2013-11-22 | 2014-03-05 | 北京奇虎科技有限公司 | Method and device for managing active components |
| CN104375869A (en) * | 2014-11-28 | 2015-02-25 | 北京奇虎科技有限公司 | Self-starting application control method and device |
| CN104424002A (en) * | 2013-09-10 | 2015-03-18 | 中国科学院声学研究所 | Dynamic component loading method and system based on plug-in mechanism |
-
2016
- 2016-09-23 CN CN201610848372.9A patent/CN106502719A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101291305A (en) * | 2008-06-25 | 2008-10-22 | 腾讯科技(深圳)有限公司 | Method and customer terminal realizing plug-in management |
| CN104424002A (en) * | 2013-09-10 | 2015-03-18 | 中国科学院声学研究所 | Dynamic component loading method and system based on plug-in mechanism |
| CN103617078A (en) * | 2013-11-22 | 2014-03-05 | 北京奇虎科技有限公司 | Method and device for managing active components |
| CN104375869A (en) * | 2014-11-28 | 2015-02-25 | 北京奇虎科技有限公司 | Self-starting application control method and device |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107526683A (en) * | 2017-08-23 | 2017-12-29 | 北京小米移动软件有限公司 | Detection method, device and the storage medium of function of application redundancy |
| CN107526683B (en) * | 2017-08-23 | 2020-06-19 | 北京小米移动软件有限公司 | Application program function redundancy detection method, device and storage medium |
| CN110765063A (en) * | 2019-10-25 | 2020-02-07 | 武汉惠利德科技有限公司 | Advertisement pushing method based on intelligent calculator and intelligent calculator |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3188066B1 (en) | A method and an apparatus for managing an application | |
| JP6134074B2 (en) | Method and apparatus for controlling background application and terminal apparatus | |
| JP6189000B2 (en) | Application installation package processing method, apparatus, program, and recording medium | |
| CN106469054B (en) | Notification message control method and device and terminal | |
| EP2945058A1 (en) | Processing method and device for application program | |
| CN104536783B (en) | Headspace method to set up and device | |
| CN108334352A (en) | Notification message processing method, device, electronic equipment and storage medium | |
| CN106372204A (en) | Push message processing method and device | |
| CN105955441B (en) | Application management method and device | |
| CN106354242A (en) | Mode switching method and device | |
| US20170293494A1 (en) | Method and device for starting application interface | |
| CN105930213A (en) | Application running method and apparatus | |
| CN106020893A (en) | Application installation method and device | |
| CN108668346A (en) | Power consumption optimization method, device, device and storage medium of terminal equipment | |
| CN112083841B (en) | Information input method, device and storage medium | |
| CN106610777A (en) | Application starting method and device and mobile terminal | |
| CN106250772B (en) | Bluetooth scanning control method, device and terminal equipment | |
| CN108446226A (en) | Using abnormal processing method | |
| CN106502719A (en) | The method and device of the component of management application program | |
| CN108206881A (en) | Mobile terminal reminding method, device and mobile terminal | |
| CN107491238A (en) | The display methods and device of pushed information | |
| EP3188566A1 (en) | Application management method and device | |
| CN106126226A (en) | The method and device of application current state is shown in recent task | |
| CN105786561A (en) | Process calling method and apparatus | |
| CN107463478A (en) | The control method and device of terminal device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170315 |