Movatterモバイル変換


[0]ホーム

URL:


CN103488506B - A kind of method and device for managing application program unloading - Google Patents

A kind of method and device for managing application program unloading
Download PDF

Info

Publication number
CN103488506B
CN103488506BCN201310425165.9ACN201310425165ACN103488506BCN 103488506 BCN103488506 BCN 103488506BCN 201310425165 ACN201310425165 ACN 201310425165ACN 103488506 BCN103488506 BCN 103488506B
Authority
CN
China
Prior art keywords
time
application program
current
array
type
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.)
Expired - Fee Related
Application number
CN201310425165.9A
Other languages
Chinese (zh)
Other versions
CN103488506A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201310425165.9ApriorityCriticalpatent/CN103488506B/en
Publication of CN103488506ApublicationCriticalpatent/CN103488506A/en
Application grantedgrantedCritical
Publication of CN103488506BpublicationCriticalpatent/CN103488506B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明公开了一种管理应用程序卸载的方法,其特征在于,所述方法包括:预设置查询时刻;当当前时间为所述查询时刻时,从时间数组中依次获取相应应用程序的末次启动时间;根据所述末次启动时间和当前时间计算得到当前应用程序的未启动时间值,根据所述时间值判断是否满足预设卸载时间;当所述时间值满足预设卸载时间时,对当前应用程序进行卸载管理。所述装置包括:预设模块、查询获取模块、判断模块、处理模块。本发明通过设置查询时刻周期内进行查询以提示用户对应用程序进行卸载管理,有效的减少内存的占用,以及降低电路的消耗,提高用户的体验。

The invention discloses a method for managing application uninstallation, which is characterized in that the method includes: presetting the query time; when the current time is the query time, sequentially obtaining the last startup time of the corresponding application program from the time array ; Calculate the non-start time value of the current application program according to the last startup time and the current time, and judge whether the preset uninstall time is met according to the time value; when the time value meets the preset uninstall time, the current application program Uninstall management. The device includes: a preset module, a query and acquisition module, a judging module and a processing module. The present invention prompts the user to perform unloading management on the application program by setting the query time period to perform the query, effectively reducing memory occupation and circuit consumption, and improving user experience.

Description

Translated fromChinese
一种管理应用程序卸载的方法及装置A method and device for managing application uninstallation

技术领域technical field

本发明涉及计算机技术领域,特别涉及一种管理应用程序卸载的方法及装置。The invention relates to the field of computer technology, in particular to a method and device for managing application uninstallation.

背景技术Background technique

随着智能手机的使用,人们通过在智能手机安装各类应用程序来满足生活中的娱乐、学习以及工作的各种需要,随着使用时间的增长,安装的应用程序会越来越多,而且很多的应用程序在安装的时候就是自动设置为开机启动。With the use of smart phones, people install various applications on their smart phones to meet the various needs of entertainment, study and work in life. As the usage time increases, more and more applications will be installed, and Many applications are automatically set to start at boot when they are installed.

目前,对于未root的手机无法修改手机的开机启动项,因此,当开机启动的应用程序过多时,就会引起以下问题:占用过多的内存系统,消耗大量的手机电量,使得手机的反应速度降低,影响用户的体验。At present, it is not possible to modify the booting items of the mobile phone without rooting. Therefore, when there are too many applications started at the boot, it will cause the following problems: occupying too much memory system, consuming a lot of mobile phone power, making the mobile phone's response speed Reduced, affecting user experience.

发明内容Contents of the invention

为了解决智能手机中占用过多的内存系统,消耗大量的手机电量,使得手机的反应速度降低,影响用户的体验问题,本发明实施例提供了一种管理应用程序卸载的方法及装置。所述技术方案如下:In order to solve the problem that the smart phone occupies too much memory system, consumes a large amount of mobile phone power, reduces the response speed of the mobile phone, and affects the user experience, the embodiment of the present invention provides a method and device for managing application uninstallation. Described technical scheme is as follows:

第一方面,提供了一种管理应用程序卸载的方法,所述方法包括:In a first aspect, a method for managing application uninstallation is provided, and the method includes:

预设置查询时刻;Preset query time;

当当前时间为所述查询时刻时,从时间数组中依次获取相应应用程序的末次启动时间;When the current time is the query time, the last startup time of the corresponding application is sequentially obtained from the time array;

根据所述末次启动时间和当前时间计算得到当前应用程序的未启动时间值,根据所述时间值判断是否满足预设卸载时间;Calculate the non-start time value of the current application program according to the last start time and the current time, and judge whether the preset uninstall time is met according to the time value;

当所述时间值满足预设卸载时间时,对当前应用程序进行卸载管理。When the time value meets the preset uninstall time, uninstall management is performed on the current application program.

优选地,所述预设置查询时刻之前还包括:Preferably, before the preset query time, it also includes:

建立时间数组,将应用程序的启动时间作为相应元素存储在所述时间数组中,将安装应用程序的时间作为相应元素的初始时间,所述时间数组用于存储应用程序的末次启动时间。Create a time array, store the startup time of the application program as a corresponding element in the time array, and use the installation time of the application program as the initial time of the corresponding element, and the time array is used to store the last startup time of the application program.

优选地,所述根据所述末次启动时间和当前时间计算得到当前应用程序的未启动时间值,根据所述时间值判断是否满足预设卸载时间,包括:Preferably, the non-start time value of the current application is calculated according to the last start time and the current time, and judging whether the preset uninstall time is satisfied according to the time value includes:

将当前时间减去当前元素相应的应用程序的末次启动时间,得到当前应用程序的未启动时间值,判断所述时间值是否大于或等于预设卸载时间,所述预设卸载时间是指未启动应用程序时用于提示是否需要卸载的时间。Subtract the current time from the last startup time of the application corresponding to the current element to obtain the non-starting time value of the current application, and determine whether the time value is greater than or equal to the preset uninstallation time. The preset uninstallation time refers to the non-startup time The time used to prompt whether the application needs to be uninstalled.

优选地,所述当所述时间值满足预设卸载时间时,对当前应用程序进行卸载管理,包括:Preferably, when the time value meets the preset uninstall time, performing uninstall management on the current application program includes:

当所述时间值满足预设卸载时间时,判断当前时间数组元素对应的应用程序是否为开机启动应用程序;When the time value meets the preset uninstall time, it is judged whether the application program corresponding to the current time array element is a startup application program;

如果是开机启动应用程序,则显示选择提示框,并根据用户的选择执行相应的操作;If the application is started at boot, a selection prompt box will be displayed, and corresponding operations will be performed according to the user's choice;

如果不是开机启动应用程序,则判断所述时间数组中是否还有下一个元素,当存在下一个元素时,则获取所述下一个元素得到相应应用程序的未启动时间值,返回继续计算时间值,执行相应步骤。If the application program is not started at startup, then judge whether there is a next element in the time array, and if there is a next element, then obtain the next element to obtain the unstarted time value of the corresponding application program, and return to continue calculating the time value , and perform the corresponding steps.

优选地,所述如果是开机启动应用程序,则显示选择提示框,并根据用户的选择执行相应的操作,具体包括:Preferably, if the application is started at startup, a selection prompt box is displayed, and corresponding operations are performed according to the user's selection, specifically including:

判断用户的选择项的类型,当用户选择项的类型为卸载类型时,则卸载当前应用程序;当用户选择项的类型为备份类型时,则卸载并备份当前应用程序;当用户选择项的类型为忽略消息类型时,则不执行操作。Determine the type of the user's choice. When the type of the user's choice is the uninstall type, the current application is uninstalled; when the type of the user's choice is the backup type, the current application is uninstalled and backed up; When the message type is ignored, no action is performed.

第二方面,提供了一种管理应用程序卸载的装置,所述装置包括:In a second aspect, a device for managing application uninstallation is provided, the device comprising:

预设模块,用于预设置查询时刻;The preset module is used to preset the query time;

获取模块,当当前时间为所述查询时刻时,从时间数组中依次获取相应应用程序的末次启动时间;The acquisition module, when the current time is the query time, sequentially acquires the last startup time of the corresponding application program from the time array;

判断模块,根据所述末次启动时间和当前时间计算得到当前应用程序的未启动时间值,根据所述时间值判断是否满足预设卸载时间;The judging module calculates the non-starting time value of the current application program according to the last startup time and the current time, and judges whether the preset uninstallation time is satisfied according to the time value;

处理模块,当所述时间值满足预设卸载时间时,对当前应用程序进行卸载管理。The processing module performs uninstallation management on the current application program when the time value meets the preset uninstallation time.

优选地,所述装置还包括:Preferably, the device also includes:

建立模块,用于建立时间数组,将应用程序的启动时间作为相应元素存储在所述时间数组中,将安装应用程序的时间作为相应元素的初始时间,所述时间数组用于存储应用程序的末次启动时间。The establishment module is used to establish a time array, stores the startup time of the application program as a corresponding element in the time array, and uses the time when the application program is installed as the initial time of the corresponding element, and the time array is used to store the last time of the application program Start Time.

优选地,所述判断模块具体用于将当前时间减去当前元素相应的应用程序的末次启动时间,得到当前应用程序的未启动时间值,判断所述时间值是否大于或等于预设卸载时间,所述预设卸载时间是指未启动应用程序时用于提示是否需要卸载的时间。Preferably, the judging module is specifically configured to subtract the last start time of the application corresponding to the current element from the current time to obtain the non-start time value of the current application, and judge whether the time value is greater than or equal to the preset uninstall time, The preset uninstall time refers to the time used to prompt whether to uninstall when the application program is not started.

优选地,所述处理模块包括:Preferably, the processing module includes:

判断单元,用于当所述时间值满足预设卸载时间时,判断当前时间数组元素对应的应用程序是否为开机启动应用程序;A judging unit, configured to judge whether the application program corresponding to the current time array element is a startup application program when the time value meets the preset uninstallation time;

第一执行单元,用于如果是开机启动应用程序,则显示选择提示框,并根据用户的选择执行相应的操作;The first execution unit is configured to display a selection prompt box if the application program is started at startup, and perform corresponding operations according to the user's selection;

第二执行单元,用于如果不是开机启动应用程序,则判断所述时间数组中是否还有下一个元素,当存在下一个元素时,则获取所述下一个元素得到相应应用程序的未启动时间值,返回继续计算时间值,执行相应步骤。The second execution unit is used to determine whether there is a next element in the time array if the application program is not booted up, and if there is a next element, obtain the next element to obtain the non-start time of the corresponding application program value, returns the time value to continue the calculation, and executes the corresponding steps.

优选地,所述第一执行单元,具体用于判断用户的选择项的类型,当用户选择项的类型为卸载类型时,则卸载当前应用程序;当用户选择项的类型为备份类型时,则卸载并备份当前应用程序;当用户选择项的类型为忽略消息类型时,则不执行操作。Preferably, the first executing unit is specifically configured to judge the type of the user's selection item, and when the type of the user's selection item is an uninstall type, then uninstall the current application; when the user's selection item is of a backup type, then Uninstall and back up the current application; when the type of the user selection item is the ignore message type, no action is performed.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:

通过设置查询时刻,在周期内对达到预设时间未启动的应用程序进程卸载管理,给用户提供提示信息,根据用户的选择对应用程序进行相应的处理,以使能及时卸载不常用的应用程序,减少内存的占用,以及降低电路的消耗,使得智能手机的反应速度提高,提高用户的体验。By setting the query time, unloading management of the application process that has not been started at the preset time within a period, providing prompt information to the user, and correspondingly processing the application program according to the user's choice, so that the uncommon application program can be uninstalled in time , reduce the memory occupation, and reduce the consumption of the circuit, so that the response speed of the smart phone is improved, and the user experience is improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明实施例一提供的一种管理应用程序卸载的方法流程图;FIG. 1 is a flow chart of a method for managing application uninstallation provided by Embodiment 1 of the present invention;

图2是图1中步骤104的详细步骤流程图;Fig. 2 is a detailed step flow chart of step 104 in Fig. 1;

图3是图2中步骤202的详细步骤流程图;Fig. 3 is a detailed step flow chart of step 202 in Fig. 2;

图4是本发明实施例二提供的一种管理应用程序卸载的装置结构示意图;FIG. 4 is a schematic structural diagram of a device for managing application uninstallation provided by Embodiment 2 of the present invention;

图5是本发明实施例二提供的另一种管理应用程序卸载的装置结构示意图;FIG. 5 is a schematic structural diagram of another device for managing application uninstallation provided by Embodiment 2 of the present invention;

图6为图5中处理模块404的结构示意图。FIG. 6 is a schematic structural diagram of the processing module 404 in FIG. 5 .

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

实施例一Embodiment one

本发明实施例一提供了一种管理应用程序卸载的方法,如图1所示,所述方法,包括:Embodiment 1 of the present invention provides a method for managing application uninstallation, as shown in FIG. 1 , the method includes:

步骤101:预设置查询时刻。Step 101: Preset query time.

其中,所述查询时刻是指周期时间内用于查询时间数组中各元素对应的应用程序的最后一次启动时间,例如,以一天为周期,将每天的12:00设置为查询时刻。Wherein, the query time refers to the last startup time of the application program corresponding to each element in the query time array within the cycle time, for example, with a cycle of one day, 12:00 every day is set as the query time.

优选地,在本实施例中,步骤101之前还包括:Preferably, in this embodiment, before step 101, it also includes:

建立时间数组,将应用程序的启动时间作为相应元素存储在所述时间数组中,将安装应用程序的时间作为相应元素的初始时间。A time array is established, the start time of the application program is stored as a corresponding element in the time array, and the time when the application program is installed is used as the initial time of the corresponding element.

所述时间数组用于存储应用程序的末次启动时间,所述时间数组中的元素为相应应用程序最后启动的时间,例如,当打开一个应用时,将这个应用的启动时间存入时间数组中对应的元素位置,其中,时间数组元素的初始时间为安装相应应用的时间。The time array is used to store the last startup time of the application, and the elements in the time array are the last startup time of the corresponding application. For example, when an application is opened, the startup time of the application is stored in the corresponding time array. The element position of the time array element, where the initial time of the time array element is the time when the corresponding application is installed.

其中,所述末次启动时间是指最后一次启动相应应用程序的时间,例如,所述时间数组的第一个元素是指应用程序“优酷客户端”,当启动“优酷客户端”时,将当前启动时间存入时间数组的第一元素的位置并替换当前的第一元素。Wherein, the last start time refers to the time when the corresponding application was started for the last time, for example, the first element of the time array refers to the application "Youku client", when starting the "Youku client", the current The startup time is stored in the position of the first element of the time array and replaces the current first element.

步骤102:当当前时间为所述查询时刻时,从时间数组中依次获取相应应用程序的末次启动时间。Step 102: When the current time is the query time, the last startup time of the corresponding application is sequentially obtained from the time array.

例如,当当前时间为查询时刻12:00时,启动查询服务模块,从时间数组中依次获取时间数组的元素,即相应应用程序的末次启动时间。For example, when the current time is the query time 12:00, the query service module is started, and the elements of the time array are sequentially obtained from the time array, that is, the last startup time of the corresponding application program.

步骤103:根据所述末次启动时间和当前时间计算得到当前应用程序的未启动时间值,根据所述时间值判断是否满足预设卸载时间。Step 103: Calculate the non-start time value of the current application program according to the last start time and the current time, and judge whether the preset uninstall time is satisfied according to the time value.

具体地,步骤103具体包括:将当前时间减去当前元素相应的应用程序的末次启动时间,得到当前应用程序的未启动时间值,判断所述时间值是否大于或等于预设卸载时间,所述预设卸载时间是指未启动应用程序时用于提示是否需要卸载的时间,例如,设置应用程序60天未启动则提示是否卸载。Specifically, step 103 specifically includes: subtracting the last startup time of the application corresponding to the current element from the current time to obtain the non-start time value of the current application, and judging whether the time value is greater than or equal to the preset uninstall time, the The preset uninstallation time refers to the time used to prompt whether to uninstall when the application is not started, for example, if the application is not started for 60 days, it is set to prompt whether to uninstall.

步骤104:当所述时间值满足预设卸载时间时,对当前应用程序进行卸载管理。Step 104: When the time value meets the preset uninstall time, perform uninstall management on the current application program.

其中,步骤104,如图2所示,具体包括:Wherein, step 104, as shown in Figure 2, specifically includes:

步骤201:当所述时间值满足预设卸载时间时,判断当前时间数组元素对应的应用程序是否为开机启动应用程序,Step 201: When the time value satisfies the preset uninstall time, determine whether the application corresponding to the current time array element is a startup application,

步骤202:如果是开机启动应用程序,则显示选择提示框,并根据用户的选择执行相应的操作;Step 202: If the application program is started after booting, display a selection prompt box, and perform corresponding operations according to the user's selection;

在本实施例中,例如,当当前应用程序为开机启动应用程序时,则弹出提示框,内容具体为“此应用已经有60天未使用,此应用为自动启动应用程序,建议卸载”,并提供“卸载”、“卸载备份”和“忽略此消息”供用户选择。In this embodiment, for example, when the current application is a startup application, a prompt box will pop up with the content specifically "This application has not been used for 60 days, this application is an automatic startup application, it is recommended to uninstall", and Provide "Uninstall", "Uninstall backup" and "Ignore this message" for users to choose.

具体地,如图3所示,步骤202包括:Specifically, as shown in Figure 3, step 202 includes:

步骤301:判断用户的选择项的类型,Step 301: Determine the type of the user's choice,

步骤302:当用户选择项的类型为卸载类型时,则卸载当前应用程序;Step 302: When the type of the item selected by the user is the uninstall type, then uninstall the current application;

具体地,可以调用PackageManager中的api将当前应用卸载。Specifically, the API in the PackageManager may be called to uninstall the current application.

步骤303:当用户选择项的类型为备份类型时,则卸载并备份当前应用程序;Step 303: When the type of the item selected by the user is the backup type, uninstall and back up the current application;

具体地,将此应用程序复制至手机中的“应用备份”文件夹中;Specifically, copy this application to the "Application Backup" folder in the phone;

步骤304:当用户选择项的类型为忽略消息类型时,则不执行操作。Step 304: When the type of the item selected by the user is the ignore message type, no operation is performed.

步骤203:如果不是开机启动应用程序,则判断所述时间数组中是否还有下一个元素,当存在下一个元素时,则获取所述下一个元素得到相应应用程序的未启动时间值,返回继续计算时间值,执行相应步骤。Step 203: If the application program is not started at startup, then judge whether there is a next element in the time array, if there is a next element, then obtain the next element to obtain the non-start time value of the corresponding application program, return to continue Calculate the time value and perform the corresponding steps.

本发明实施例一通过设置查询时刻,在周期内对达到预设时间未启动的应用程序进程卸载管理,给用户提供提示信息,根据用户的选择对应用程序进行相应的处理,以使能及时卸载不常用的应用程序,有效的减少内存的占用,以及降低电路的消耗,使得智能手机的反应速度提高,提高用户的体验。Embodiment 1 of the present invention sets the query time to manage the unloading of the application process that has not started at the preset time within a period, provides prompt information to the user, and performs corresponding processing on the application program according to the user's choice, so that the application program can be uninstalled in time Infrequently used applications can effectively reduce the memory usage and circuit consumption, which improves the response speed of the smart phone and improves the user experience.

实施例二Embodiment two

本发明实施例二提供了一种管理应用程序卸载的装置,如图4所示,所述方法,包括:Embodiment 2 of the present invention provides a device for managing application uninstallation, as shown in FIG. 4 , the method includes:

预设模块401,用于预设置查询时刻;Preset module 401, for presetting query time;

其中,所述查询时刻是指周期时间内用于查询时间数组中各元素对应的应用程序的最后一次启动时间,例如,以一天为周期,将每天的12:00设置为查询时刻。Wherein, the query time refers to the last startup time of the application program corresponding to each element in the query time array within the cycle time, for example, with a cycle of one day, 12:00 every day is set as the query time.

获取模块402,当当前时间为所述查询时刻时,从时间数组中依次获取相应应用程序的末次启动时间;The obtaining module 402, when the current time is the query time, sequentially obtain the last startup time of the corresponding application from the time array;

例如,当当前时间为查询时刻12:00时,启动查询服务模块,从时间数组中依次获取时间数组的元素,即相应应用程序的末次启动时间。For example, when the current time is the query time 12:00, the query service module is started, and the elements of the time array are sequentially obtained from the time array, that is, the last startup time of the corresponding application program.

判断模块403,根据所述末次启动时间和当前时间计算得到当前应用程序的未启动时间值,根据所述时间值判断是否满足预设卸载时间;Judging module 403, calculates the non-start time value of the current application program according to the last start time and the current time, and judges whether the preset uninstall time is satisfied according to the time value;

具体的,判断模块403具体用于将当前时间减去当前元素相应的应用程序的末次启动时间,得到当前应用程序的未启动时间值,判断所述时间值是否大于或等于预设卸载时间,所述预设卸载时间是指未启动应用程序时用于提示是否需要卸载的时间;例如,设置应用程序60天未启动则提示是否卸载。Specifically, the judging module 403 is specifically used to subtract the last start time of the application corresponding to the current element from the current time to obtain the unstart time value of the current application, and judge whether the time value is greater than or equal to the preset uninstall time. The aforementioned preset uninstallation time refers to the time used to prompt whether to uninstall the application when the application is not started; for example, if the application is not started for 60 days, it is set to prompt whether to uninstall.

处理模块404,当所述时间值满足预设卸载时间时,对当前应用程序进行卸载管理。The processing module 404 performs uninstallation management on the current application program when the time value meets the preset uninstallation time.

结合上述实施例,如图5所示,所述装置还包括:In combination with the above embodiments, as shown in Figure 5, the device further includes:

建立模块501,用于建立时间数组,将应用程序的启动时间作为相应元素存储在所述时间数组中,将安装应用程序的时间作为相应元素的初始时间,所述时间数组用于存储应用程序的末次启动时间。The establishment module 501 is used to establish a time array, store the startup time of the application program as a corresponding element in the time array, and use the time when the application program is installed as the initial time of the corresponding element, and the time array is used to store the time of the application program Last boot time.

所述时间数组用于存储应用程序的末次启动时间,所述时间数组中的元素为相应应用程序最后启动的时间,例如,当打开一个应用时,将这个应用的启动时间存入时间数组中对应的元素位置,其中,时间数组元素的初始时间为安装相应应用的时间。The time array is used to store the last startup time of the application, and the elements in the time array are the last startup time of the corresponding application. For example, when an application is opened, the startup time of the application is stored in the corresponding time array. The element position of the time array element, where the initial time of the time array element is the time when the corresponding application is installed.

其中,所述末次启动时间是指最后一次启动相应应用程序的时间,例如,所述时间数组的第一个元素是指应用程序“优酷客户端”,当启动“优酷客户端”时,将当前启动时间存入时间数组的第一元素的位置并替换当前的第一元素。Wherein, the last start time refers to the time when the corresponding application was started for the last time, for example, the first element of the time array refers to the application "Youku client", when starting the "Youku client", the current The startup time is stored in the position of the first element of the time array and replaces the current first element.

具体地,如图6所示,处理模块404包括:Specifically, as shown in Figure 6, the processing module 404 includes:

判断单元601,用于当所述时间值满足预设卸载时间时,判断当前时间数组元素对应的应用程序是否为开机启动应用程序;A judging unit 601, configured to judge whether the application program corresponding to the current time array element is a startup application program when the time value meets the preset uninstallation time;

第一执行单元602,用于如果是开机启动应用程序,则显示选择提示框,并根据用户的选择执行相应的操作;The first execution unit 602 is configured to display a selection prompt box if the application program is started at startup, and perform corresponding operations according to the user's selection;

在本实施例中,例如,当当前应用程序为开机启动应用程序时,则弹出提示框,内容具体为“此应用已经有60天未使用,此应用为自动启动应用程序,建议卸载”,并提供“卸载”、“卸载备份”和“忽略此消息”供用户选择。In this embodiment, for example, when the current application is a startup application, a prompt box will pop up with the content specifically "This application has not been used for 60 days, this application is an automatic startup application, it is recommended to uninstall", and Provide "Uninstall", "Uninstall backup" and "Ignore this message" for users to choose.

具体地,第一执行单元602具体用于判断用户的选择项的类型,当用户选择项的类型为卸载类型时,则卸载当前应用程序;当用户选择项的类型为备份类型时,则卸载并备份当前应用程序;当用户选择项的类型为忽略消息类型时,则不执行操作。Specifically, the first execution unit 602 is specifically configured to judge the type of the user's selection item, and when the type of the user selection item is an uninstall type, then uninstall the current application program; when the user's selection item type is a backup type, then uninstall and Backs up the current application; does nothing when the user selection is of type Ignore Message.

其中,可以调用PackageManager中的api将当前应用卸载;当选择卸载备份时,将此应用程序复制至手机中的“应用备份”文件夹中。Among them, the API in the PackageManager can be called to uninstall the current application; when the uninstall backup is selected, the application is copied to the "application backup" folder in the mobile phone.

第二执行单元603,用于如果不是开机启动应用程序,则判断所述时间数组中是否还有下一个元素,当存在下一个元素时,则获取所述下一个元素得到相应应用程序的未启动时间值,返回继续计算时间值,执行相应步骤。The second execution unit 603 is configured to judge whether there is a next element in the time array if the application program is not started at startup, and if there is a next element, obtain the next element to obtain the unstarted status of the corresponding application program Time value, return to continue to calculate the time value, and execute the corresponding steps.

结合上述实施例,如图5所示,所述装置还包括:In combination with the above embodiments, as shown in Figure 5, the device further includes:

建立模块501,用于建立时间数组,将应用程序的启动时间作为相应元素存储在所述时间数组中,将安装应用程序的时间作为相应元素的初始时间,所述时间数组用于存储应用程序的末次启动时间。The establishment module 501 is used to establish a time array, store the startup time of the application program as a corresponding element in the time array, and use the time when the application program is installed as the initial time of the corresponding element, and the time array is used to store the time of the application program Last boot time.

所述时间数组用于存储应用程序的末次启动时间,所述时间数组中的元素为相应应用程序最后启动的时间,例如,当打开一个应用时,将这个应用的启动时间存入时间数组中对应的元素位置,其中,时间数组元素的初始时间为安装相应应用的时间。The time array is used to store the last startup time of the application, and the elements in the time array are the last startup time of the corresponding application. For example, when an application is opened, the startup time of the application is stored in the corresponding time array. The element position of the time array element, where the initial time of the time array element is the time when the corresponding application is installed.

其中,所述末次启动时间是指最后一次启动相应应用程序的时间,例如,所述时间数组的第一个元素是指应用程序“优酷客户端”,当启动“优酷客户端”时,将当前启动时间存入时间数组的第一元素的位置并替换当前的第一元素。Wherein, the last start time refers to the time when the corresponding application was started for the last time, for example, the first element of the time array refers to the application "Youku client", when starting the "Youku client", the current The startup time is stored in the position of the first element of the time array and replaces the current first element.

本发明实施例二通过设置查询时刻,在周期内对达到预设时间未启动的应用程序进程卸载管理,给用户提供提示信息,根据用户的选择对应用程序进行相应的处理,以使能及时卸载不常用的应用程序,减少内存的占用,以及降低电路的消耗,使得智能手机的反应速度提高,提高用户的体验。In the second embodiment of the present invention, by setting the query time, the uninstallation management of the application program process that has not been started at the preset time is performed within a period, and the user is provided with prompt information, and the application program is processed accordingly according to the user's choice, so that the application program can be uninstalled in time Infrequently used applications reduce memory usage and circuit consumption, which improves the response speed of the smartphone and improves user experience.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (6)

CN201310425165.9A2013-09-172013-09-17A kind of method and device for managing application program unloadingExpired - Fee RelatedCN103488506B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310425165.9ACN103488506B (en)2013-09-172013-09-17A kind of method and device for managing application program unloading

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310425165.9ACN103488506B (en)2013-09-172013-09-17A kind of method and device for managing application program unloading

Publications (2)

Publication NumberPublication Date
CN103488506A CN103488506A (en)2014-01-01
CN103488506Btrue CN103488506B (en)2018-04-20

Family

ID=49828763

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310425165.9AExpired - Fee RelatedCN103488506B (en)2013-09-172013-09-17A kind of method and device for managing application program unloading

Country Status (1)

CountryLink
CN (1)CN103488506B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103902333A (en)*2014-03-052014-07-02上海乐今通信技术有限公司Method for automatically unloading application of mobile terminal and mobile terminal
CN111930224B (en)*2020-05-292024-04-26北京视博云信息技术有限公司Method and device for acquiring virtual reality content
CN113885988A (en)*2021-09-302022-01-04在秀网络科技(深圳)有限公司System and method for bearing and replacing desktop to download multiple apps

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102420903A (en)*2011-11-282012-04-18惠州Tcl移动通信有限公司Mobile phone-based software processing method and mobile phone
CN102968337A (en)*2012-11-282013-03-13康佳集团股份有限公司Application program cleaning method and system
CN103019777A (en)*2012-11-282013-04-03广东欧珀移动通信有限公司 A method and system for automatically cleaning background applications of a mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102420903A (en)*2011-11-282012-04-18惠州Tcl移动通信有限公司Mobile phone-based software processing method and mobile phone
CN102968337A (en)*2012-11-282013-03-13康佳集团股份有限公司Application program cleaning method and system
CN103019777A (en)*2012-11-282013-04-03广东欧珀移动通信有限公司 A method and system for automatically cleaning background applications of a mobile terminal

Also Published As

Publication numberPublication date
CN103488506A (en)2014-01-01

Similar Documents

PublicationPublication DateTitle
CN105912370B (en)Control method and device for background application program of mobile terminal and mobile terminal
CN103729210B (en)It is a kind of to realize that a brush machine bag supports the method and device of multiple types intelligent terminal
CN103176842B (en)background process management method and mobile terminal thereof
US20150331612A1 (en)Memory Cleaning Method and Apparatus, and Terminal Device
CN102571940B (en)Application program remote installation system, method, intelligent terminal, application server
CN104503828B (en)A kind of process management method and terminal
WO2016165078A1 (en)Method and terminal for controlling application
CN104199731A (en)Method and device for managing application program processes
CN110750284B (en)Application quick starting method, terminal and computer readable storage medium
WO2020206691A1 (en)Application processing method and apparatus, storage medium, and electronic device
CN111984130A (en)Shortcut operation method and device and electronic equipment
CN104199691A (en)Method and device for automatically starting APK in turn-on process based on Android platform
CN104424333A (en)Method and system for loading table data
CN103488506B (en)A kind of method and device for managing application program unloading
CN104503790B (en)The management method and system of a kind of application version, intelligent terminal
CN104216802B (en)Memory database recovery method and device
CN115562742A (en)Application starting method, electronic equipment and readable storage medium
CN105653304B (en)The switching method of operational mode, the switching device of operational mode and terminal
CN104166559B (en)Delete the method and device of default desktop
CN106095055B (en)Application program closing method and device
CN104426918A (en)Device setting method and electronic device
CN108182122B (en)Application update reminding method and device, storage medium and server
CN103377071B (en)A kind of batch data delet method and system
CN109753291A (en)Intelligent terminal, application management method and device thereof, and storage medium
CN107402626A (en) Application cycle synchronization management method, device, storage medium and electronic equipment

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right

Effective date of registration:20170328

Address after:Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road No. 013 Fu technology building B block 6 Building

Applicant before:SHENZHEN OPPO COMMUNICATION SOFTWARE Co.,Ltd.

TA01Transfer of patent application right
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP03Change of name, title or address
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20180420

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp