技术领域technical field
本发明涉及移动终端技术领域,尤其涉及一种应用图标处理方法、装置和移动终端。The present invention relates to the technical field of mobile terminals, in particular to a method and device for processing application icons and a mobile terminal.
背景技术Background technique
随着互联网的发展和移动通信网络的发展,同时也伴随着移动终端的处理能力和存储能力的迅猛发展,海量的应用程序得到了迅速传播和使用;常用的应用程序在方便用户工作和生活的同时,不乏新开发的应用程序也进入到用户的日常生活,提高了用户的生活质量、使用移动终端的频率以及使用中的娱乐感。With the development of the Internet and the development of mobile communication networks, as well as the rapid development of the processing power and storage capacity of mobile terminals, a large number of applications have been rapidly spread and used; commonly used applications are convenient for users to work and live. At the same time, many newly developed applications have also entered the daily life of users, improving the quality of life of users, the frequency of using mobile terminals, and the sense of entertainment in use.
现有技术中,移动终端的应用图标处理方法很多,比如,可以根据应用安装时间、应用名称、应用使用率等等进行排序。然而,随着移动终端中安装的应用数量较多,而应用的版本更新是非常频繁的。现有技术若要对应用图进行排序,则需要遍历完安装的所有应用,获取相应的时间信息、名称信息、实用信息等再进行排序,导致排序的速度慢。In the prior art, there are many methods for processing application icons of a mobile terminal, for example, sorting may be performed according to application installation time, application name, application usage rate, and the like. However, as the number of applications installed in the mobile terminal is large, the version updates of the applications are very frequent. In the prior art, if the application map is to be sorted, all installed applications need to be traversed to obtain corresponding time information, name information, practical information, etc. before sorting, resulting in a slow sorting speed.
可知,现有技术中存在应用图标位置调整速度较慢的技术问题。It can be seen that there is a technical problem in the prior art that the adjustment speed of the position of the application icon is relatively slow.
发明内容Contents of the invention
本发明实施例提供一种应用图标处理方法、装置和移动终端,可以解决应用图标位置调整速度较慢的技术问题。Embodiments of the present invention provide an application icon processing method, device, and mobile terminal, which can solve the technical problem of slow adjustment of application icon positions.
本发明实施例提供一种应用图标处理方法,包括:An embodiment of the present invention provides a method for processing application icons, including:
检测应用集合中目标应用是否发生更新;Detect whether the target application in the application collection is updated;
若更新,则获取所述目标应用对应的应用图标在显示屏中的位置信息;If it is updated, acquiring the position information of the application icon corresponding to the target application in the display screen;
对所述位置信息进行调整,以得到调整后的第一位置信息;adjusting the location information to obtain adjusted first location information;
根据第一位置信息在所述显示屏中显示所述应用图标。displaying the application icon on the display screen according to the first location information.
相应地,本发明实施例提供了一种应用图标处理装置,包括:Correspondingly, an embodiment of the present invention provides an application icon processing device, including:
检测模块,用于检测应用集合中目标应用是否发生更新;A detection module, configured to detect whether the target application in the application collection is updated;
第一获取模块,用于若检测到目标应用更新,则获取所述目标应用对应的应用图标在显示屏中的位置信息;The first obtaining module is configured to obtain the position information of the application icon corresponding to the target application in the display screen if an update of the target application is detected;
第一调整模块,用于对所述位置信息进行调整,以得到调整后的第一位置信息;A first adjustment module, configured to adjust the location information to obtain adjusted first location information;
显示模块,用于根据第一位置信息在所述显示屏中显示所述应用图标。A display module, configured to display the application icon on the display screen according to the first location information.
相应地,本发明实施例还提供一种移动终端,所述移动终端包括显示屏,以及与所述显示屏连接的应用图标处理装置,其中,所述应用图标处理装置包括:Correspondingly, an embodiment of the present invention also provides a mobile terminal, the mobile terminal includes a display screen, and an application icon processing device connected to the display screen, wherein the application icon processing device includes:
检测模块,用于检测应用集合中目标应用是否发生更新;A detection module, configured to detect whether the target application in the application collection is updated;
第一获取模块,用于若检测到目标应用更新,则获取所述目标应用对应的应用图标在显示屏中的位置信息;The first obtaining module is configured to obtain the position information of the application icon corresponding to the target application in the display screen if an update of the target application is detected;
第一调整模块,用于对所述位置信息进行调整,以得到调整后的第一位置信息;A first adjustment module, configured to adjust the location information to obtain adjusted first location information;
显示模块,用于根据第一位置信息在所述显示屏中显示所述应用图标。A display module, configured to display the application icon on the display screen according to the first location information.
本发明实施例采用检测应用集合中目标应用是否发生更新,若更新,则获取目标应用对应的应用图标在显示屏中的位置信息,并对该位置信息进行调整,以得到调整后的第一位置信息,并根据第一位置信息在显示屏中显示应用图标;该方案可以在应用发生更新时对其在显示屏中的位置进行调整,相对于现有技术而言,加快了应用图标位置调整的速度。The embodiment of the present invention detects whether the target application in the application set is updated, and if updated, obtains the position information of the application icon corresponding to the target application in the display screen, and adjusts the position information to obtain the adjusted first position information, and display the application icon on the display screen according to the first position information; this solution can adjust the position of the application icon on the display screen when the application is updated. Compared with the existing technology, the application icon position adjustment is accelerated. speed.
附图说明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 any creative effort.
图1是本发明实施例一提供的应用图标处理方法的流程示意图;FIG. 1 is a schematic flowchart of a method for processing application icons provided by Embodiment 1 of the present invention;
图2为本发明实施例一提供的应用图标处理方法的场景示意图;FIG. 2 is a schematic diagram of a scene of an application icon processing method provided in Embodiment 1 of the present invention;
图3为本发明实施例一提供的应用图标处理方法的场景示意图;FIG. 3 is a schematic diagram of a scene of an application icon processing method provided in Embodiment 1 of the present invention;
图4为本发明实施例一提供的应用图标处理方法的场景示意图;FIG. 4 is a schematic diagram of a scene of an application icon processing method provided in Embodiment 1 of the present invention;
图5是本发明实施例二提供的应用图标处理方法的流程示意图;FIG. 5 is a schematic flowchart of a method for processing application icons provided by Embodiment 2 of the present invention;
图6是本发明实施例三提供的第一种应用图标处理装置的结构示意图;FIG. 6 is a schematic structural diagram of a first application icon processing device provided in Embodiment 3 of the present invention;
图7是本发明实施例三提供的第二种应用图标处理装置的结构示意图;FIG. 7 is a schematic structural diagram of a second application icon processing device provided in Embodiment 3 of the present invention;
图8是本发明实施例四提供的移动终端的结构示意图。FIG. 8 is a schematic structural diagram of a mobile terminal provided by Embodiment 4 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例提供一种应用图标处理方法、装置和移动终端。以下将分别进行详细说明。Embodiments of the present invention provide a method, device and mobile terminal for processing application icons. The details will be described respectively below.
实施例一、Embodiment one,
本实施例将从应用图标处理装置的角度进行描述,该应用图标处理装置具体可以集成在移动终端中,该移动终端可以为智能手机、平板电脑等设备。This embodiment will be described from the perspective of an application icon processing apparatus. The application icon processing apparatus may specifically be integrated in a mobile terminal, and the mobile terminal may be a device such as a smart phone or a tablet computer.
一种应用图标处理方法,包括:检测应用集合中目标应用是否发生更新;若更新,则获取目标应用对应的应用图标在显示屏中的位置信息;对位置信息进行调整,以得到调整后的第一位置信息;根据第一位置信息在显示屏中显示应用图标。A method for processing application icons, comprising: detecting whether a target application in an application collection is updated; if updated, obtaining position information of an application icon corresponding to the target application in a display screen; adjusting the position information to obtain an adjusted first A location information; displaying an application icon on the display screen according to the first location information.
如图1所示,应用图标处理方法,具体流程可以如下:As shown in Figure 1, the icon processing method is applied, and the specific process can be as follows:
101、检测应用集合中目标应用是否发生更新。101. Detect whether the target application in the application set is updated.
其中,应用集合中可以包括移动终端中已安装的所有应用,为了满足用户需求,也可以由用户自行设定应用集合中需要处理的应用,比如,可以只选取移动终端中的部分应用。The application set may include all the applications installed in the mobile terminal. In order to meet the needs of the user, the user may also set the applications to be processed in the application set. For example, only some applications in the mobile terminal may be selected.
本实施例中,检测目标应用是否发生更新的方式可以有多种,比如,可以通过监听应用更新通知确定目标应用是否发生更新;也即步骤“检测应用集合中目标应用是否发生更新”具体流程可以如下:In this embodiment, there are many ways to detect whether the target application is updated. For example, it is possible to determine whether the target application is updated by listening to the application update notification; as follows:
获取应用更新通知,并确定触发应用更新通知的触发应用;Obtain application update notifications, and determine the trigger application that triggers application update notifications;
判断在应用集合中是否存在与触发应用匹配的目标应用;Determine whether there is a target application matching the trigger application in the application collection;
若存在,则判定应用集合中目标应用发生更新。If it exists, it is determined that the target application in the application set has been updated.
比如,以安卓(Android)系统为例,系统在更新应用时,系统会发出广播,比如action,这个action是android.intent.action.PACKAGE_REPLACED。因此,可以通过桌面应用注册广播接受者,使其监听系统发出的action。在接收到这个action之后,可以对该action进行解析,判断接收到的action是否为android.intent.action.PACKAGE_REPLACED。若是,则可以通过包名获取函数String packageName,获取到packageName(即应用包名),此包名即为发生更新的目标应用的包名。For example, taking the Android system as an example, when the system updates an application, the system will send out a broadcast, such as an action, and this action is android.intent.action.PACKAGE_REPLACED. Therefore, the broadcast receiver can be registered through the desktop application, so that it can listen to the actions sent by the system. After receiving the action, the action can be parsed to determine whether the received action is android.intent.action.PACKAGE_REPLACED. If so, the packageName (that is, the application package name) can be obtained through the package name acquisition function String packageName, and the package name is the package name of the updated target application.
102、若更新,则获取目标应用对应的应用图标在显示屏中的位置信息。102. If updated, acquire position information on the display screen of the application icon corresponding to the target application.
具体地,当检测到目标应用发生更新时,触发位置获取指令,移动终端可以调用相关程序,并根据该指令获取当前目标应用对应的应用图标在显示屏中的位置;也即,步骤“获取目标应用对应的应用图标在显示屏中的位置信息”具体可以包括:Specifically, when an update of the target application is detected, a position acquisition instruction is triggered, and the mobile terminal can call a relevant program, and obtain the position of the application icon corresponding to the current target application on the display screen according to the instruction; that is, the step "acquire target The location information of the application icon corresponding to the application on the display screen" may specifically include:
接收位置获取指令;Receive a location acquisition instruction;
根据所述位置获取指令调用相应的程序,获取当前目标应用对应的应用图标在显示屏中的位置。A corresponding program is invoked according to the position obtaining instruction to obtain the position of the application icon corresponding to the current target application on the display screen.
103、对获取的位置信息进行调整,以得到调整后的第一位置信息。103. Adjust the acquired location information to obtain adjusted first location information.
具体地,在确定目标应用当前对应的位置信息后,需要对其图标位置进行调整。本实施例中,对获取的位置信息进行调整的方式可以有多种,比如,可以将其调整到一个用户预设的最显眼、最方便触控的位置,以使得用户可以及时地体验应用更新后的新功能。Specifically, after determining the current location information corresponding to the target application, the location of its icon needs to be adjusted. In this embodiment, there are many ways to adjust the acquired location information. For example, it can be adjusted to the most conspicuous and convenient touch location preset by the user, so that the user can experience application updates in a timely manner. After the new function.
104、根据第一位置信息在显示屏中显示应用图标。104. Display the application icon on the display screen according to the first location information.
具体地,在对目标应用对应的位置信息进行调整之后,可以根据调整后的第一位置信息在显示屏中显示目标应用对应的应用图标。Specifically, after the location information corresponding to the target application is adjusted, the application icon corresponding to the target application may be displayed on the display screen according to the adjusted first location information.
在某些实施方式中,上述位置信息可以包括位置标识;则步骤“对位置信息进行调整”,具体可以为:In some implementations, the above location information may include a location identifier; then the step of "adjusting the location information" may specifically be:
将应用图标在显示屏中的位置标识替换为预设位置标识;Replace the position identification of the application icon on the display screen with a preset position identification;
则步骤“根据第一位置信息在显示屏中显示应用图标”,具体可以为:Then the step of "displaying the application icon on the display screen according to the first location information" may specifically be:
根据预设位置标识在显示屏中显示该应用图标。The application icon is displayed on the display screen according to the preset position identification.
其中,位置标识具体可以是显示屏中的位置坐标;比如,请参考图2,显示屏左上角顶点以(0,0)为例,预设位置标识可以设为(1,1),假设获取到的目标应用当前对应的位置标识为(2,2),则将该目标应用对应的位置标识替换为(1,1)。然后,根据调整后的位置标识(1,1)在显示屏显示该目标应用的应用图标。Wherein, the position identification can specifically be the position coordinates in the display screen; for example, please refer to Figure 2, take (0,0) as an example for the vertex in the upper left corner of the display screen, and the preset position identification can be set to (1,1). If the current location identifier corresponding to the target application is (2,2), replace the location identifier corresponding to the target application with (1,1). Then, the application icon of the target application is displayed on the display screen according to the adjusted location identifier (1,1).
在具体实施过程中,若目标应用的应用图标当前对应的位置标识即为预设位置标识,则没必要对目标应用的位置信息进行调整。为了避免这种问题,可以在获取到目标应用对应的位置标识后,将其与预设位置标识进行比较;也即步骤“将应用图标在显示屏中的位置标识替换为预设位置标识”,具体流程可以如下:In a specific implementation process, if the location identifier currently corresponding to the application icon of the target application is the preset location identifier, it is not necessary to adjust the location information of the target application. In order to avoid this problem, after obtaining the location identifier corresponding to the target application, it can be compared with the preset location identifier; that is, the step "replace the location identifier of the application icon on the display screen with the preset location identifier", The specific process can be as follows:
判断该位置标识与预设位置标识是否相同;judging whether the location identifier is the same as the preset location identifier;
若不相同,则将应用图标在显示屏中的位置标识替换为预设位置标识。If not, the position identification of the application icon on the display screen is replaced with a preset position identification.
在实际应用中,对目标应用的应用图标位置进行调整之后,除目标应用外的其他图标的位置也会随之发生相应变化。比如,将位于位置(2,2)的图标位置调整到位置(1,1)后,原位于(1,1)的图标位置也将随之发生更改;也即,在对该位置信息进行调整之后,根据第一位置信息在显示屏中显示应用图标之前,该方法还可以包括:In an actual application, after the position of the application icon of the target application is adjusted, the positions of other icons other than the target application will also change accordingly. For example, after adjusting the position of the icon at position (2,2) to position (1,1), the position of the icon at position (1,1) will also change accordingly; that is, after adjusting the position information Afterwards, before displaying the application icon on the display screen according to the first location information, the method may further include:
获取应用集合中其他应用对应的应用图标在显示屏中的位置信息;Acquiring position information on the display screen of application icons corresponding to other applications in the application collection;
根据第一位置信息,对其他应用对应的位置信息进行调整,以得到调整后的第二位置信息。According to the first location information, the location information corresponding to other applications is adjusted to obtain adjusted second location information.
则步骤“根据第一位置信息在显示屏中显示应用图标”具体可以为:Then the step "displaying the application icon on the display screen according to the first location information" may specifically be:
根据第一位置信息和第二位置信息,在显示屏中显示目标应用和其他应用各自对应的应用图标。According to the first location information and the second location information, application icons corresponding to the target application and other applications are displayed on the display screen.
本实施例中,其他应用图标的位置信息,可以根据不同移动终端的图标排序策略而定;可选地,请参考图3,若显示屏中有应用A、B、C、D、E、F、G。假设预设位置为(1,1),也即当前应用A所处位置,如图应用E位于(2,2)。若应用E发生更新,则可以将应用E图标调整至位置(1,1)显示,将应用A图标调整至(2,2)显示,其他应用图标位置保持不变。In this embodiment, the location information of other application icons can be determined according to the icon sorting strategies of different mobile terminals; optionally, please refer to FIG. , G. Assume that the preset location is (1,1), that is, the location of the current application A, as shown in the figure, application E is located at (2,2). If application E is updated, the icon of application E can be adjusted to display at position (1,1), the icon of application A can be adjusted to display at position (2,2), and the positions of other application icons remain unchanged.
优选地,为了更有序对应用图标进行位置调整,可以将最新更新应用的应用图标排到第一位,早一些时候更新的会排到最二位,没有更新过的,排在后面,以此类推。比如,请参考图4,若显示屏中有应用A、B、C、D、E、F、G。同样地,假设预设位置为(1,1),也即当前应用A所处位置,如图应用E位于(2,2)。若应用E发生更新,则将应用E图标调整至位置(1,1)显示,将应用A图标调整至(1,2)显示,位于应用E图标之前的应用A、应用B、应用C、应用D对应的图标往后移一个位置,位于应用E图标之后的应用F、应用G对应的图标位置保持不变。同样地,当应用G的位置发生变化时,由于应用G图标位于最后一个,则其他应用图标位置都需往后移一位。Preferably, in order to adjust the position of the application icons in a more orderly manner, the application icons of the latest updated applications can be ranked first, those updated earlier will be ranked the second, and those that have not been updated will be ranked in the back. And so on. For example, please refer to FIG. 4 , if there are applications A, B, C, D, E, F, and G in the display screen. Similarly, assume that the preset location is (1,1), that is, the location of the current application A, as shown in the figure, application E is located at (2,2). If application E is updated, adjust the icon of application E to position (1,1) for display, adjust the icon of application A to display (1,2), and apply A, application B, application C, application The icon corresponding to D moves back one position, and the positions of the icons corresponding to application F and application G located behind the application E icon remain unchanged. Similarly, when the position of the application G changes, since the icon of the application G is located at the last, the positions of other application icons need to be moved back by one.
在具体实施时,可以用一个数组来记录目前显示屏桌面中图标的排序,比如数组名为Apps,目前有26个应用,Apps[0]、Apps[1]一直到Apps[25],Apps[0]=应用A,Apps[1]=应用B,以此类推。当桌面应用监听到应用更新广播通知时,可以调用函数StringpackageName将目标应用的packageName包名获取出来。假设为应用E,然后可以确定应用B对应的Apps[?],假设是在Apps[4]中,则需要把应用E放到Apps[0]第一位,然后原来的Apps[0]到Apps[4]都往后挪动一位即可,而Apps[4]到Apps[25]都不用修改,这样就有了一个新的排序Apps数组,桌面根据这个数组Apps排序即可。During specific implementation, an array can be used to record the sorting of the icons in the current screen desktop. For example, the array name is Apps, and there are currently 26 applications, Apps[0], Apps[1] to Apps[25], Apps[ 0] = Application A, Apps[1] = Application B, and so on. When the desktop application listens to the application update broadcast notification, it can call the function StringpackageName to obtain the packageName of the target application. Assuming it is application E, then the Apps[? ], assuming it is in Apps[4], you need to put the application E in the first place in Apps[0], and then move the original Apps[0] to Apps[4] one place backward, and Apps[ 4] to Apps[25] do not need to be modified, so there is a new sorting Apps array, and the desktop can be sorted according to this array Apps.
由上可知,本发明实施例提供了一种应用图标处理方法,通过检测应用集合中目标应用是否发生更新,若更新,则获取目标应用对应的应用图标在显示屏中的位置信息,并对该位置信息进行调整,以得到调整后的第一位置信息,根据第一位置信息在显示屏中显示应用图标;该方案可以在应用发生更新时对其在显示屏中的位置进行调整,相对于现有技术而言,加快了应用图标位置调整的速度;同时可以提供一种较为新颖的排序方式,使用户可以及时体验更新应用的新功能。As can be seen from the above, the embodiment of the present invention provides a method for processing application icons. By detecting whether the target application in the application set is updated, if it is updated, the position information of the application icon corresponding to the target application in the display screen is obtained, and the The position information is adjusted to obtain the adjusted first position information, and the application icon is displayed on the display screen according to the first position information; this solution can adjust its position on the display screen when the application is updated, compared to the current In terms of technology, it speeds up the adjustment of the position of the application icon; at the same time, it can provide a relatively novel sorting method, so that users can experience the new functions of the updated application in a timely manner.
实施例二、Embodiment two,
根据实施例一所描述的方法,以下将举例作进一步详细说明。According to the method described in Embodiment 1, an example will be given below for further detailed description.
在本实施例中,将以该应用图标处理装置具体集成在移动终端中为例进行详细描述。In this embodiment, a detailed description will be made by taking the application icon processing apparatus integrated in a mobile terminal as an example.
如图5所示,一种应用图标处理方法,具体流程可以如下:As shown in Figure 5, a method for processing application icons, the specific process may be as follows:
201、移动终端检测应用集合中目标应用是否发生更新。201. The mobile terminal detects whether the target application in the application set is updated.
本实施例中,检测目标应用是否发生更新的方式可以有多种,比如,可以通过监听应用更新通知确定目标应用是否发生更新;也即步骤“检测应用集合中目标应用是否发生更新”具体流程可以如下:In this embodiment, there are many ways to detect whether the target application is updated. For example, it is possible to determine whether the target application is updated by listening to the application update notification; as follows:
获取应用更新通知,并确定触发应用更新通知的触发应用;Obtain application update notifications, and determine the trigger application that triggers application update notifications;
判断在应用集合中是否存在与触发应用匹配的目标应用;Determine whether there is a target application matching the trigger application in the application collection;
若存在,则判定应用集合中目标应用发生更新。If it exists, it is determined that the target application in the application set has been updated.
202、若更新,则移动终端获取目标应用对应的应用图标在显示屏中的位置标识。202. If it is updated, the mobile terminal acquires the position identifier of the application icon corresponding to the target application on the display screen.
其中,位置标识具体可以是显示屏中的位置坐标。具体地,当检测到目标应用发生更新时,触发位置获取指令,移动终端可以调用相关程序,并根据该指令获取当前目标应用对应的应用图标在显示屏中的位置;也即,步骤“获取目标应用对应的应用图标在显示屏中的位置标识”具体可以包括:Wherein, the location identifier may specifically be the location coordinates in the display screen. Specifically, when an update of the target application is detected, a position acquisition instruction is triggered, and the mobile terminal can call a relevant program, and obtain the position of the application icon corresponding to the current target application on the display screen according to the instruction; that is, the step "acquire target The location identification of the application icon corresponding to the application on the display screen" may specifically include:
接收位置获取指令;Receive a location acquisition instruction;
根据所述位置获取指令调用相应的程序,获取当前目标应用对应的应用图标在显示屏中的位置标识。A corresponding program is invoked according to the position obtaining instruction to obtain the position identification of the application icon corresponding to the current target application on the display screen.
203、移动终端将应用图标在显示屏中的位置标识替换为预设位置标识。203. The mobile terminal replaces the position identifier of the application icon on the display screen with a preset position identifier.
比如,以移动终端显示屏左上角顶点以(0,0)为例,预设位置标识可以设为(1,1),假设获取到的目标应用当前对应的位置标识为(2,2),则将该目标应用对应的位置标识替换为(1,1)。然后,根据调整后的位置标识(1,1)在显示屏显示该目标应用的应用图标。For example, taking (0,0) as an example in the upper left corner of the display screen of a mobile terminal, the preset location identifier can be set to (1,1), assuming that the obtained target application currently corresponds to a location identifier of (2,2), Then replace the location identifier corresponding to the target application with (1,1). Then, the application icon of the target application is displayed on the display screen according to the adjusted location identifier (1,1).
在具体实施过程中,若目标应用的应用图标当前对应的位置标识即为预设位置标识,则没必要对目标应用的位置信息进行调整。为了避免这种问题,可以在获取到目标应用对应的位置标识后,将其与预设位置标识进行比较;也即步骤“将应用图标在显示屏中的位置标识替换为预设位置标识”,具体流程可以如下:In a specific implementation process, if the location identifier currently corresponding to the application icon of the target application is the preset location identifier, it is not necessary to adjust the location information of the target application. In order to avoid this problem, after obtaining the location identifier corresponding to the target application, it can be compared with the preset location identifier; that is, the step "replace the location identifier of the application icon on the display screen with the preset location identifier", The specific process can be as follows:
判断该位置标识与预设位置标识是否相同;judging whether the location identifier is the same as the preset location identifier;
若不相同,则将应用图标在显示屏中的位置标识替换为预设位置标识。If not, the position identification of the application icon on the display screen is replaced with a preset position identification.
204、移动终端根据调整后的目标应用对应的位置标识,对其他应用对应的位置标识进行调整。204. The mobile terminal adjusts the location identifiers corresponding to other applications according to the adjusted location identifiers corresponding to the target application.
在实际应用中,对目标应用的应用图标位置进行调整之后,除目标应用外的其他图标的位置也会随之发生相应变化。其他应用图标的位置标识,可以根据不同移动终端的图标排序策略而定。In an actual application, after the position of the application icon of the target application is adjusted, the positions of other icons other than the target application will also change accordingly. The position identifiers of other application icons may be determined according to icon sorting policies of different mobile terminals.
优选地,可以用一个数组来记录目前显示屏桌面中图标的排序,比如数组名为Apps,目前有26个应用,Apps[0]、Apps[1]一直到Apps[25],Apps[0]=应用A,Apps[1]=应用B,以此类推。当桌面应用监听到应用更新广播通知时,可以调用函数StringpackageName将目标应用的packageName包名获取出来。假设为应用E,然后可以确定应用B对应的Apps[?],假设是在Apps[4]中,则需要把应用E放到Apps[0]第一位,然后原来的Apps[0]到Apps[4]都往后挪动一位即可,而Apps[4]到Apps[25]都不用修改,这样就有了一个新的排序Apps数组,桌面根据这个数组Apps排序即可。Preferably, an array can be used to record the sorting of the icons on the desktop of the display screen. For example, the array name is Apps, and there are currently 26 applications, Apps[0], Apps[1] to Apps[25], Apps[0] = Application A, Apps[1] = Application B, and so on. When the desktop application listens to the application update broadcast notification, it can call the function StringpackageName to obtain the packageName of the target application. Assuming it is application E, then the Apps[? ], assuming it is in Apps[4], you need to put the application E in the first place in Apps[0], and then move the original Apps[0] to Apps[4] one place backward, and Apps[ 4] to Apps[25] do not need to be modified, so there is a new sorting Apps array, and the desktop can be sorted according to this array Apps.
205、移动终端根据调整后的目标应用对应的位置标识,和其他应用对应的位置标识,在显示屏中显示应用集合中各应用对应的应用图标。205. The mobile terminal displays the application icon corresponding to each application in the application set on the display screen according to the adjusted location identifier corresponding to the target application and the location identifiers corresponding to other applications.
具体地,在对目标应用对应的位置标识,以及应用集合中其他应用对应的位置标识进行调整之后,移动终端可以调用相关进程,根据调整后的目标应用对应的位置标识,和其他应用对应的位置标识,在显示屏中显示应用集合中各应用对应的应用图标。Specifically, after adjusting the location identifier corresponding to the target application and the location identifiers corresponding to other applications in the application set, the mobile terminal can call the relevant process, and according to the adjusted location identifier corresponding to the target application, the location corresponding to other applications To identify the application icon corresponding to each application in the application collection is displayed on the display screen.
由上可知,本发明实施例提供了一种应用图标处理方法,通过移动终端检测应用集合中目标应用是否发生更新,若更新,则获取目标应用对应的应用图标在显示屏中的位置标识,然后将应用图标在显示屏中的位置标识替换为预设位置标识,并根据调整后的目标应用对应的位置标识,对其他应用对应的位置标识进行调整,最后根据调整后的位置标识,在显示屏中显示应用集合中各应用对应的应用图标;该方案可以在应用发生更新时,将其在显示屏中的位置调整至预设位置,相对于现有技术而言,加快了应用图标位置调整的速度;同时可以提供一种较为新颖的排序方式,使用户可以及时体验更新应用的新功能。As can be seen from the above, the embodiment of the present invention provides a method for processing application icons. The mobile terminal detects whether the target application in the application set is updated. Replace the position identification of the application icon on the display screen with the preset position identification, and adjust the position identification corresponding to other applications according to the adjusted position identification corresponding to the target application, and finally, according to the adjusted position identification, display on the display screen The application icon corresponding to each application in the application collection is displayed in the application collection; this solution can adjust its position on the display screen to the preset position when the application is updated, and compared with the existing technology, it speeds up the adjustment of the application icon position. Speed; at the same time, it can provide a relatively novel sorting method, so that users can experience the new functions of the updated application in a timely manner.
实施例三、Embodiment three,
为了更好地实施以上方法,本发明实施例还提供一种应用图标处理装置,该应用图标处理装置可以集成在移动终端中,该移动终端具体可以包括手机、平板电脑、笔记本电脑等设备。如图6所示,该应用图标处理装置可以包括检测模块301、第一获取模块302、第一调整模块303和显示模块304,如下:In order to better implement the above method, an embodiment of the present invention also provides an application icon processing device, which can be integrated in a mobile terminal, and the mobile terminal can specifically include mobile phones, tablet computers, notebook computers and other devices. As shown in FIG. 6, the application icon processing apparatus may include a detection module 301, a first acquisition module 302, a first adjustment module 303 and a display module 304, as follows:
检测模块301,用于检测应用集合中目标应用是否发生更新;A detection module 301, configured to detect whether the target application in the application set is updated;
第一获取模块302,用于若检测到目标应用更新,则获取目标应用对应的应用图标在显示屏中的位置信息;The first obtaining module 302 is configured to obtain the position information of the application icon corresponding to the target application in the display screen if an update of the target application is detected;
第一调整模块303,用于对位置信息进行调整,以得到调整后的第一位置信息;The first adjustment module 303 is configured to adjust the location information to obtain adjusted first location information;
显示模块304,用于根据第一位置信息在显示屏中显示应用图标。The display module 304 is configured to display the application icon on the display screen according to the first location information.
在某些实施方式中,第一调整模块303,具体可以用于将应用图标在显示屏中的位置标识替换为预设位置标识In some implementations, the first adjustment module 303 may be specifically configured to replace the position identification of the application icon on the display screen with a preset position identification
显示模块304,具体可以用于根据预设位置标识在显示屏中显示应用图标。The display module 304 may specifically be configured to display application icons on the display screen according to preset location identifiers.
在某些实施方式中,第一调整模块303具体可以用于判断位置标识与预设位置标识是否相同;若不相同,则将应用图标在显示屏中的位置标识替换为预设位置标识。In some implementations, the first adjustment module 303 may be specifically configured to determine whether the location identifier is the same as the preset location identifier; if not, replace the location identifier of the application icon on the display screen with the preset location identifier.
在某些实施方式中,如图7所示,该装置还可以包括:第二获取模块305和第二调整模块306;In some implementations, as shown in FIG. 7 , the device may further include: a second acquiring module 305 and a second adjusting module 306;
第二获取模块305,用于在对位置信息进行调整之后,根据第一位置信息在显示屏中显示应用图标之前,获取应用集合中其他应用对应的应用图标在显示屏中的位置信息;The second acquiring module 305 is configured to acquire position information on the display screen of application icons corresponding to other applications in the application set after adjusting the position information and before displaying the application icons on the display screen according to the first position information;
第二调整模块306,用于根据第一位置信息,对其他应用对应的位置信息进行调整,以得到调整后的第二位置信息;The second adjustment module 306 is configured to adjust the location information corresponding to other applications according to the first location information, so as to obtain adjusted second location information;
显示模块304,具体可以用于根据第一位置信息和第二位置信息,在显示屏中显示目标应用和其他应用各自对应的应用图标。The display module 304 may specifically be configured to display application icons corresponding to the target application and other applications on the display screen according to the first location information and the second location information.
在某些实施方式中,检测模块301具体可以用于:In some implementations, the detection module 301 can be specifically used for:
检测应用集合中目标应用是否发生更新的步骤,具体包括:The step of detecting whether the target application in the application collection is updated, specifically includes:
获取应用更新通知,并确定触发应用更新通知的触发应用;Obtain application update notifications, and determine the trigger application that triggers application update notifications;
判断在应用集合中是否存在与触发应用匹配的目标应用;Determine whether there is a target application matching the trigger application in the application collection;
若存在,则判定应用集合中目标应用发生更新。If it exists, it is determined that the target application in the application set has been updated.
由上可知,本发明实施例提供了一种应用图标处理装置,通过检测模块301检测应用集合中目标应用是否发生更新,第一获取模块302用于检测到目标应用更新,则获取目标应用对应的应用图标在显示屏中的位置信息,第一调整模块303对该位置信息进行调整,以得到调整后的第一位置信息,显示模块304根据第一位置信息在显示屏中显示应用图标;该方案可以在应用发生更新时对其在显示屏中的位置进行调整,相对于现有技术而言,加快了应用图标位置调整的速度。It can be seen from the above that the embodiment of the present invention provides an application icon processing device. The detection module 301 detects whether the target application in the application set is updated, and the first acquisition module 302 is used to detect that the target application is updated. The position information of the application icon in the display screen, the first adjustment module 303 adjusts the position information to obtain the adjusted first position information, and the display module 304 displays the application icon on the display screen according to the first position information; The position of the application on the display screen can be adjusted when the application is updated, and compared with the prior art, the speed of adjusting the position of the application icon is accelerated.
实施例四、Embodiment four,
本实施例提供一种移动终端,该移动终端可以包括显示屏,以及与该显示屏连接的应用图标处理装置。This embodiment provides a mobile terminal, which may include a display screen, and an application icon processing device connected to the display screen.
比如,请参考图8,一种移动终端400,可以包括显示屏410,以及与该应用图标处理装置420;其中,该应用图标处理装置420具体可以包括检测模块、第一获取模块、第一调整模块和显示模块,如下:For example, please refer to FIG. 8, a mobile terminal 400 may include a display screen 410, and the application icon processing device 420; wherein, the application icon processing device 420 may specifically include a detection module, a first acquisition module, a first adjustment Modules and display modules, as follows:
检测模块,用于检测应用集合中目标应用是否发生更新;A detection module, configured to detect whether the target application in the application collection is updated;
第一获取模块,用于若检测到目标应用更新,则获取目标应用对应的应用图标在显示屏中的位置信息;The first acquisition module is configured to acquire the position information of the application icon corresponding to the target application in the display screen if an update of the target application is detected;
第一调整模块,用于对位置信息进行调整,以得到调整后的第一位置信息;The first adjustment module is configured to adjust the position information to obtain the adjusted first position information;
显示模块,用于根据第一位置信息在显示屏中显示应用图标。A display module, configured to display the application icon on the display screen according to the first location information.
此外,该移动终端还可以包括射频(RF,Radio Frequency)模块、一个或一个以上计算机可读存储介质的存储器、输入模块、音频电路、无线保真(Wi-Fi,WirelessFidelity)模块、包括有一个或者一个以上处理核心的处理器、以及电源等部件。本领域技术人员可以理解,该终端结构并不构成对该终端的限定,可以包括更多或更少的部件,或者组合某些部件,或者各种不同的部件布置。In addition, the mobile terminal may also include a radio frequency (RF, Radio Frequency) module, memory of one or more computer-readable storage media, an input module, an audio circuit, a wireless fidelity (Wi-Fi, Wireless Fidelity) module, including a Or a processor with more than one processing core, and components such as a power supply. Those skilled in the art can understand that the terminal structure does not constitute a limitation to the terminal, and may include more or less components, or combine certain components, or arrange various components.
比如,该处理器可以具有指令检测模块、第一获取模块、第一调整模块和显示模块;处理器可以通过检测模块检测应用集合中目标应用是否发生更新,然后,处理器可以通过第一获取模块在检测到目标应用更新时,获取目标应用对应的应用图标在显示屏中的位置信息,进而处理器可以通过第一调整模块对获取的位置信息进行调整,最后,处理器可以通处理器可以通过显示模块根据第一位置信息在显示屏中显示该应用图标。For example, the processor may have an instruction detection module, a first acquisition module, a first adjustment module, and a display module; When an update of the target application is detected, the position information of the application icon corresponding to the target application in the display screen is obtained, and then the processor can adjust the obtained position information through the first adjustment module, and finally, the processor can pass the The display module displays the application icon on the display screen according to the first location information.
由上可知,本发明实施例提供了一种移动终端,该移动终端通过检测应用集合中目标应用是否发生更新,若更新,则获取目标应用对应的应用图标在显示屏中的位置信息,并对该位置信息进行调整,以得到调整后的第一位置信息,根据第一位置信息在显示屏中显示应用图标;该方案可以在应用发生更新时对其在显示屏中的位置进行调整,相对于现有技术而言,加快了应用图标位置调整的速度。It can be known from the above that the embodiment of the present invention provides a mobile terminal, the mobile terminal detects whether the target application in the application set is updated, and if updated, obtains the position information of the application icon corresponding to the target application on the display screen, and The position information is adjusted to obtain the adjusted first position information, and the application icon is displayed on the display screen according to the first position information; this solution can adjust its position on the display screen when the application is updated, compared to In terms of existing technologies, the speed of adjusting the position of application icons is accelerated.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), disk or CD, etc.
以上对本发明实施例所提供的一种应用图标处理方法、装置和移动终端进行了详细介绍,本文中应用程序了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用程序范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to the application icon processing method, device and mobile terminal provided by the embodiments of the present invention. In this paper, specific examples of application programs are used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used To help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application range. In summary, this specification The content should not be construed as a limitation of the invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610810470.3ACN106445335A (en) | 2016-09-07 | 2016-09-07 | Application icon processing method, device and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610810470.3ACN106445335A (en) | 2016-09-07 | 2016-09-07 | Application icon processing method, device and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN106445335Atrue CN106445335A (en) | 2017-02-22 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610810470.3APendingCN106445335A (en) | 2016-09-07 | 2016-09-07 | Application icon processing method, device and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN106445335A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106648287A (en)* | 2016-09-08 | 2017-05-10 | 深圳市金立通信设备有限公司 | Method and terminal for replacing application icon |
| CN106896988A (en)* | 2017-02-28 | 2017-06-27 | 努比亚技术有限公司 | Application icon alignment means, terminal and method |
| CN109271224A (en)* | 2018-09-13 | 2019-01-25 | 上海掌门科技有限公司 | Method and apparatus for determining position |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090138827A1 (en)* | 2005-12-30 | 2009-05-28 | Van Os Marcel | Portable Electronic Device with Interface Reconfiguration Mode |
| CN101944018A (en)* | 2009-07-03 | 2011-01-12 | 华为技术有限公司 | Icon adjustment method and client |
| CN102523343A (en)* | 2011-12-13 | 2012-06-27 | 深圳桑菲消费通信有限公司 | Method for intelligent arrangement of mobile phone application program shortcut menu icons |
| CN102981859A (en)* | 2012-12-03 | 2013-03-20 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for automatically adjusting icons |
| CN104267874A (en)* | 2014-09-29 | 2015-01-07 | 华为技术有限公司 | Terminal and method for adjusting layout of application icons on same |
| CN104536647A (en)* | 2014-12-16 | 2015-04-22 | 广东欧珀移动通信有限公司 | Application icon position adjusting method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090138827A1 (en)* | 2005-12-30 | 2009-05-28 | Van Os Marcel | Portable Electronic Device with Interface Reconfiguration Mode |
| CN101944018A (en)* | 2009-07-03 | 2011-01-12 | 华为技术有限公司 | Icon adjustment method and client |
| CN102523343A (en)* | 2011-12-13 | 2012-06-27 | 深圳桑菲消费通信有限公司 | Method for intelligent arrangement of mobile phone application program shortcut menu icons |
| CN102981859A (en)* | 2012-12-03 | 2013-03-20 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for automatically adjusting icons |
| CN104267874A (en)* | 2014-09-29 | 2015-01-07 | 华为技术有限公司 | Terminal and method for adjusting layout of application icons on same |
| CN104536647A (en)* | 2014-12-16 | 2015-04-22 | 广东欧珀移动通信有限公司 | Application icon position adjusting method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106648287A (en)* | 2016-09-08 | 2017-05-10 | 深圳市金立通信设备有限公司 | Method and terminal for replacing application icon |
| CN106896988A (en)* | 2017-02-28 | 2017-06-27 | 努比亚技术有限公司 | Application icon alignment means, terminal and method |
| CN106896988B (en)* | 2017-02-28 | 2020-09-25 | 努比亚技术有限公司 | Application icon alignment device, terminal and method |
| CN109271224A (en)* | 2018-09-13 | 2019-01-25 | 上海掌门科技有限公司 | Method and apparatus for determining position |
| Publication | Publication Date | Title |
|---|---|---|
| US10055220B2 (en) | Method, apparatus, and system for processing desktop data of mobile terminal | |
| US10853437B2 (en) | Method and apparatus for invoking application programming interface | |
| US10462764B2 (en) | Method and apparatus for identifying pseudo base-station, and terminal | |
| WO2018188315A1 (en) | Method and apparatus for identifying pseudo base-station, and terminal | |
| US9740671B2 (en) | Method and apparatus of generating a webpage from an original design file comprising layers | |
| WO2018166234A1 (en) | Network search method and apparatus | |
| CN105094861A (en) | Webpage application program loading method, device and system | |
| US9648655B2 (en) | Simulation of near-field communications | |
| CN106452644B (en) | playing control method, device and terminal | |
| CN105320616A (en) | External device control method and device | |
| CN106570431A (en) | File reading method and device | |
| CN105517192A (en) | A wireless network connection method and device | |
| CN103607431B (en) | Mobile terminal resource processing method, device and equipment | |
| CN106445335A (en) | Application icon processing method, device and mobile terminal | |
| US9674686B2 (en) | Apparatus and method for pairing mobile devices | |
| US10523718B2 (en) | Video playing method and device | |
| CN110933704A (en) | Network communication method, device, storage medium and electronic equipment | |
| WO2024017035A1 (en) | Location information acquisition method, terminal, and network side device | |
| CN103491421A (en) | Content display method and device and smart television | |
| CN109038727A (en) | Charge control method, device, storage medium and wireless charging pedestal | |
| CN106792698A (en) | A wireless fidelity Wi-Fi connection method and mobile terminal | |
| CN110351702B (en) | System information area determining method, indicating method, terminal and network equipment | |
| CN106303616B (en) | Play control method, device and terminal | |
| CN107864474A (en) | A kind of MBN update methods and mobile terminal | |
| CN109451295A (en) | A kind of method and system obtaining virtual information |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20170222 | |
| RJ01 | Rejection of invention patent application after publication |