A method, device, electronic device and storage medium for managing application icons
By receiving sliding instructions and determining the target application icon according to the application type, the problem of cumbersome operation of merging application icons in the prior art is solved, and one-time merge management of multiple application icons is realized, which improves the user experience.
Patent Information
- Application Number
- CN202210484603.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-05-05
AI Technical Summary
The prior art is complicated to operate when merging multiple application icons, and users cannot achieve one-time merges, resulting in poor user experience.
By receiving a sliding instruction for the first application icon, the target application icon is determined according to the parameters of the sliding instruction and the application type, and merged it into the same folder.
It realizes one-time merge management of multiple application icons, with simple operation steps, saving time and improving user experience.
Smart Images

Figure CN115048002B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of intelligent terminals, and specifically relates to a method, device, electronic device and storage medium for managing application icons. Background Art
[0002] In recent years, with the rapid development of science and technology, smart terminals (such as mobile phones, tablet computers, etc.) have achieved great improvements in both hardware performance and software performance. With the development of society and the improvement of people's living needs, people have higher requirements for the types and number of applications in smart terminals, especially portable handheld terminals. Therefore, for smart terminals, while expanding storage capacity to install more applications, as the number of applications increases, the display problem of application icons on the display screen also arises simultaneously, which needs to be solved urgently.
[0003] In order to solve the above display problem, the prior art generally merges multiple application icons into one folder. Specifically, the user first clicks on the first merged application icon, drags it onto the second merged application icon, and forms a new folder; then puts other application icons to be merged into the new folder one by one, thereby realizing the merging and organization of multiple application icons.
[0004] In the above-mentioned prior art method for merging and organizing multiple application icons, if the user needs to merge more than two application icons, the number of operations required is increased, which is cumbersome, time-consuming and labor-intensive; moreover, the user cannot merge multiple application icons at one time, resulting in poor user experience. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for managing application icons, which can realize one-time merging management of multiple application icons, with simple operation steps, saving time and improving user experience.
[0006] In a first aspect, an embodiment of the present application provides a method for managing application icons, including:
[0007] A first sliding instruction for a first application icon is received, wherein the first application icon is an icon of a first application program.
[0008] The target application icon is determined according to the parameters of the first sliding instruction and the type of the application program, wherein the target application icon is an icon of the target application program.
[0009] Merge the first application icon and the target application icon into the same folder.
[0010] In a second aspect, an embodiment of the present application provides a device for managing application icons, including:
[0011] The receiving module is used to receive a first sliding instruction for a first application icon, wherein the first application icon is an icon of a first application program.
[0012] The determination module is used to determine a target application icon according to the parameters of the first sliding instruction and the type of the application program, wherein the target application icon is an icon of the target application program.
[0013] The merging module is used to merge the first application icon and the target application icon into the same folder.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a chip, the chip comprising a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0018] The method for managing application icons provided by the present application first receives a first sliding instruction for a first application icon; secondly determines a target application icon according to the parameters of the first sliding instruction and the type of application; and finally merges the first application icon and the target application icon into the same folder. The first sliding instruction is generated according to a sliding operation of the user, and multiple target application icons can be determined according to the first sliding instruction, so that the user only needs one sliding operation to realize the one-time merging management of multiple application icons, and the operation steps are simple, which saves time and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a flowchart of a method for managing application icons in an embodiment of the present application;
[0020] Figure 2This is a schematic diagram of the first sliding track in the embodiment of the present application;
[0021] Figure 3 This is a schematic diagram of the first application icon merging in the embodiment of the present application;
[0022] Figure 4 This is a schematic diagram of the second sliding track in the embodiment of the present application;
[0023] Figure 5 This is a schematic diagram of the second application icon merging in the embodiment of the present application;
[0024] Figure 6 This is a schematic diagram of the third sliding track in the embodiment of the present application;
[0025] Figure 7 This is a schematic diagram of the third application icon merging in the embodiment of the present application;
[0026] Figure 8 This is a schematic diagram of the fourth sliding track in the embodiment of the present application;
[0027] Fig. 9 This is a schematic diagram of the fourth application icon merging in the embodiment of the present application;
[0028] Fig.10 This is a schematic diagram of the fifth sliding track in the embodiment of the present application;
[0029] Fig.11 This is a fifth schematic diagram of application icon merging in the embodiment of the present application;
[0030] Fig.12 is a schematic diagram of a device for managing application icons in an embodiment of the present application;
[0031] Fig.13 is a schematic diagram of an electronic device in an embodiment of the present application;
[0032] Fig.14 It is a schematic diagram of the hardware structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0034] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0035] The method for managing application icons provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0036] Example 1
[0037] This embodiment provides a method for managing application icons, such as Figure 1 As shown, steps S101-S103 are included.
[0038] S101. Receive a first sliding instruction for a first application icon, where the first application icon is an icon of a first application program.
[0039] An application is a computer program that is used to complete one or more specific tasks. It runs in user mode, can interact with users, and has a visual user interface. Correspondingly, an application icon is an icon displayed by the application on a display device (such as a computer monitor or a mobile phone display).
[0040] In the embodiment of the present application, the first application icon is an icon of the first application program, that is, the first application icon corresponds to the first application program.
[0041] The first sliding instruction is input by the user. Generally, the first sliding instruction starts sliding of the first application icon according to a triggering start condition and ends at the sliding stop position, ie, the end position.
[0042] Among them, there are two ways to trigger the starting condition in the embodiment of the present application, namely:
[0043] The first trigger method: long press the application icon to trigger the mobile state.
[0044] The second triggering method: tap the application icon to move immediately, and the moving speed is greater than or equal to the triggering speed. It should be noted here that the embodiment of the present application does not impose specific restrictions on the triggering speed, and the implementer can set it according to actual needs or previous experience, for example: 1m / s. Through any of the triggering starting conditions in the above two triggering methods, the application icon that is "long pressed" or "tapped" is determined to be the first application icon.
[0045] Among them, after determining the first application icon, sliding is also performed by the user. In order to improve the user experience, the embodiment of the present application does not impose any restrictions on the specific form and parameters of "sliding", such as: the shape of the sliding trajectory.
[0046] The position where the above-mentioned "sliding" stops is determined as the end position.
[0047] S102: Determine a target application icon according to parameters of the first sliding instruction and a type of application program, wherein the target application icon is an icon of a target application program.
[0048] The parameters of the first sliding instruction, in addition to the above-mentioned initial position and end position, are mainly sliding parameters, which include: sliding track, sliding pause position, sliding direction, etc.
[0049] Application types can be classified according to different classification standards, for example, according to the purpose, they can be classified into: communication applications, office applications, shopping applications and entertainment applications, etc.; according to the presentation method, they can be classified into: text applications, graphic applications, voice applications, video applications, etc. Implementers can classify according to actual needs, industry standards, self-defined standards, etc., and can also obtain classification results that have been classified according to a certain classification standard through various scientific methods.
[0050] The target application, the target application icon, and the relationship between the two may correspond to the first application, the first application icon, and the relationship between the first application and the first application icon, which will not be described in detail here.
[0051] S103: Merge the first application icon and the target application icon into the same folder.
[0052] The present application aims to realize the merging of multiple applications. In the embodiment of the present application, the number of first application icons is 1, and the number of target application icons can be one or more. Specifically, the number of target applications is determined based on the parameters of the first sliding instruction and the type of application. For example, the "track" parameter of the first sliding instruction and the "office" application type are selected, where the type of application is determined by the first application type. At this time, based on the sliding track of the first sliding instruction, all application icons whose distance to the track is less than or equal to 1 cm and whose application type is "office application" are determined as target application icons. Figure 2 In the figure, the first application icon is application icon 1, and there are 5 application icons whose distance to the trajectory is less than or equal to 1 cm: application icon 2, application icon 6, application icon 7, and application icon 8. There are 2 application icons whose application type is "office application": application icon 2 and application icon 7. Then, application icon 2 and application icon 7 are determined to be target applications, that is, the number of target applications is 2.
[0053] Merging the first application icon and the target application icon into the same folder generates a folder, and the application icons contained and displayed in the folder are the first application icon and all the target application icons, for example: Figure 3 As shown, a folder is generated, which contains and displays application icon 1, application icon 2 and application icon 7, wherein application icon 1 is a first application icon, and application icon 2 and application icon 7 are target application icons.
[0054] The method for managing application icons provided in the embodiment of the present application first receives a first sliding instruction for a first application icon; secondly determines a target application icon according to the parameters of the first sliding instruction and the type of application; and finally merges the first application icon and the target application icon into the same folder. The first sliding instruction is generated according to a sliding operation of the user, and multiple target application icons can be determined according to the first sliding instruction, so that the user only needs one sliding operation to realize the one-time merging management of multiple application icons, and the operation steps are simple, which saves time and improves the user experience.
[0055] Step S104 may be further included after the above step S103.
[0056] S104: Display the folder at the target location.
[0057] The target position is the initial position of the first application icon or the initial position of the last target application icon merged into the folder. That is to say, the embodiment of the present application does not limit the specific display position of the folder, which can be the initial position corresponding to the first application icon or the initial position corresponding to the last target application icon merged into the folder.
[0058] Furthermore, the embodiment of the present application displays the folders generated after the merger in an intuitive and orderly manner, which is convenient for the user to search and use later. While ensuring the neatness of the display interface, the user experience is further improved.
[0059] Example 2
[0060] This embodiment provides a method for managing application icons. When the parameters of the first sliding instruction include at least a trajectory, the above step S102 includes: determining an application icon whose distance from the trajectory is less than or equal to a first preset distance and whose application type has a similarity with the first application that exceeds a preset threshold as a target application icon.
[0061] When an icon management user needs to organize application icons on a display terminal, the starting condition is triggered and the first sliding instruction is input. Figure 4 As shown, user A triggers the first sliding instruction starting condition by long pressing application icon A, and slides, and stops sliding at application icon L.
[0062] The embodiment of the present application receives the first sliding instruction for the first application icon in real time, and receives the first sliding instruction input by user A in real time, that is, receives the first sliding instruction with the initial position at application icon A and the end position at application icon L in real time.
[0063] The first preset distance is used to define application icons to be managed and application icons that do not need to be managed, that is, application icons whose distance from the track is less than or equal to the first preset distance are application icons to be managed; application icons whose distance from the track is greater than the first preset distance are application icons that do not need to be managed. Its essence is a distance value or length.
[0064] The preset threshold is used to define whether the application corresponding to each application icon included in the first sliding instruction is similar to the first application type, and further define the application icons to be managed and the application icons that do not need to be managed. That is, when the similarity between the application corresponding to a certain application icon included in the first sliding instruction and the type of the first application is less than the preset threshold, the application is not similar to the first application type, and further, the application icon corresponding to the application is an application icon that does not need to be managed; when the similarity between the application corresponding to another application icon included in the first sliding instruction and the type of the first application is greater than or equal to the preset threshold, the application is similar to the first application type, and further, the application icon corresponding to the application is an application icon to be managed. The preset threshold is essentially a numerical value, and the generally preferred form is a percentage.
[0065] It should be noted here that the embodiment of the present application does not impose any specific restrictions on the specific numerical values of the first preset distance and the preset threshold. The implementer can set them according to actual needs or previous experience. The following embodiment only illustrates one possibility, see steps S3021-S3024 for details.
[0066] S3021. Obtain trajectory parameters of the first sliding instruction.
[0067] The parameters of the first sliding instruction include: initial position, end position, sliding trajectory, sliding pause position, sliding direction, etc. This embodiment selects the sliding trajectory parameters of the first sliding instruction for illustration. As shown in FIG4 , the trajectory of the first sliding instruction is obtained. It should be noted here that: this embodiment does not limit the specific method of obtaining the trajectory, and the implementer can select it according to the current device, its own conditions, etc. For example: If the current device is a touch screen mobile phone, the trajectory of the first sliding instruction input by the user can be obtained through the sensing device of the mobile phone screen.
[0068] S3022: Determine the coordinates of the center point of each application icon and calculate the distance between each application icon and the track.
[0069] This embodiment does not impose any specific restrictions on the specific manner and method of determining the coordinates of the center point of each application icon and calculating the distance between each application icon and the track, and the implementer can select it according to the current terminal configuration, actual needs, etc. This embodiment is briefly described below by taking one of the methods of determining the coordinates of the center point of each application icon and calculating the distance between each application icon and the track as an example:
[0070] According to the preset coordinate system, the specific coordinates of the center point of each application icon in the preset coordinate system are determined and the distance between each application icon and the track is calculated.
[0071] The preset coordinate system is a coordinate system with the center point of the first application icon as the origin, a horizontal line passing through the center point of the first application icon as the horizontal axis, and a vertical line passing through the center point of the first application icon as the vertical axis. It is worth noting here that this embodiment does not limit the specific parameters of the preset coordinate system, and the implementer can adjust it according to their own needs. The preset coordinate system in this embodiment is established only to reduce the calculation cost.
[0072] like Figure 4 As shown, the specific coordinates of the center points of each application icon in the preset coordinate system are as follows:
[0073] Application icon A (0, 0), application icon B (1, 0), application icon C (2, 0), application icon D (3, 0), application icon E (0, -1), application icon F (1, -1), application icon G (2, -1), application icon H (3, -1), application icon I (0, -2), application icon J (1, -2), application icon K (2, -2), application icon L (3, -2).
[0074] Based on the specific coordinates of the center points of the above application icons, the distance between each application icon and the track can be easily calculated using existing geometric and mathematical methods. Generally, the distance from a point to a line segment is the shortest vertical distance from the point to the line segment. For example, some calculation results are as follows:
[0075] The distance from the application icon A(0,0) to the track is 0cm.
[0076] The distance from the application icon B (1, 0) to the track is 0.22 cm.
[0077] Distance from application icon C(2,0) to track: 0.54cm.
[0078] Distance from application icon D(3,0) to track: 0.84cm.
[0079] Distance from application icon E(0, -1) to track: 0.35 cm.
[0080] S3023: Obtain the program type of each application and calculate the type similarity between each application and the first application.
[0081] The embodiments of the present application do not limit the specific method of obtaining each application type, and the implementer can determine it according to the actual situation or needs. This embodiment is briefly explained here by taking the example of obtaining each application type by reading the storage information. Specifically, each application type is obtained by reading the information of each application type stored on the storage device in the current terminal. For example: the type of each application icon is obtained by reading the application type label stored on the storage chip in the mobile phone. The types of some application icons are shown in Table 1:
[0082] app Type 1 Tags Second type of label The third type of label A communication Text communication Voice communication B communication Text communication Video Communications C Office Text Office Graphic Office D entertainment Short Video Shopping E Office Text Office Meeting
[0083] Table 1 Application Type Table
[0084] According to the program types of the above-mentioned applications and the weights of the level labels, the type similarity between each application and the first application (application A) is calculated, where the calculation weight of the first type label is 0.7, the calculation weight of the second type label is 0.2, and the calculation weight of the third type label is 0.1. Taking application B as an example, calculate its type similarity with application A:
[0085] Application B type similarity = 1*0.7+1*0.2+0.5*0.1=0.95=95%
[0086] Similarly, the type similarity of each application can be calculated in sequence, as shown in Table 2:
[0087] app Type 1 Tags Second type of label The third type of label Type similarity (%) A communication Text communication Voice communication 100 B communication Text communication Video Communications 95 C Office Text Office Graphic Office 4 D entertainment Short Video Shopping 0 E Office Text Office Meeting 9
[0088] Table 2. Application type similarity table
[0089] S3024. Determine a target application icon according to the first preset distance and a preset threshold.
[0090] Exemplarily, the first preset distance is set to 1 cm and the preset threshold is set to 50%. Based on this, the application icons whose distance from the trajectory is less than or equal to the first preset distance (1 cm) are first determined as application icons to be managed. According to the above-calculated distances between each application icon and the trajectory, application icon F, application icon G, and application icon L are determined as candidate management application icons. Then, the candidate application icons corresponding to the candidate management application icons whose type similarity with the first application (application A) exceeds the preset threshold (50%) are determined as target application icons. According to the calculated similarities of each application, application icon F and application icon L are target application icons.
[0091] like Figure 5As shown, the first application icon (application icon A) and the target application icons (application icon F and application icon L) are merged into the same folder, and the folder is displayed at the initial position corresponding to the first application icon.
[0092] The method for managing application icons provided in the embodiment of the present application determines the target application icon according to the parameter of the first sliding instruction and the type of application when the parameter of the first sliding instruction is a track. The embodiment of the present application determines the application icon to be merged according to the distance between the application icon and the track and the type of application. The user can select multiple application icons to be merged through a continuous sliding operation, so that the user can easily select application icons similar to the first application type for merging, which is simple to operate and convenient for users.
[0093] Example 3
[0094] This embodiment provides a method for managing application icons, in which, when the parameters of the first sliding instruction include at least a pause position, the above step S102 includes: determining an application icon whose distance from the pause position is less than or equal to a second preset distance and whose application type has a similarity with the first application exceeding a preset threshold as a target application icon. The pause position is a position where the pause time exceeds a first preset duration during the sliding process.
[0095] The second preset distance is similar to the first preset distance, and the implementer may refer to other embodiments accordingly, which will not be described here. It should be noted that the embodiment of the present application does not impose specific restrictions on the specific numerical values of the second preset distance and the preset threshold, and the implementer may set them according to actual needs or previous experience. The following embodiment only illustrates one of the possibilities, and specifically refers to steps S4021-S4024.
[0096] S4021. Obtain a pause position parameter of the first sliding instruction.
[0097] The parameters of the first sliding instruction include the initial position, the end position, the sliding track, the sliding pause position, the sliding direction, etc. The pause position is the position where the pause time exceeds the first preset time during the sliding process. For example, user B triggers the first sliding instruction starting condition by long pressing the application icon a, and slides, pauses at Q for 1 second; continues to slide; stops sliding at the application icon l. In this example, the first preset time is 1 second, and the application icon f is the pause position.
[0098] It should be noted here that: this embodiment does not limit the specific numerical value of the first preset time length, and the implementer can set it according to actual needs.
[0099] It is particularly important to note that this embodiment does not impose any restrictions on the specific parameters (such as coordinates) of the pause position, that is, the pause position can be any point in the current coordinate system.
[0100] S4022: Determine the coordinates of the center point of each application icon and calculate the distance between each application icon and the pause position.
[0101] Among them, a coordinate system is preset with the center point of the first application icon as the origin, the horizontal line passing through the center point of the first application icon as the horizontal axis, and the vertical line passing through the center point of the first application icon as the vertical axis, so as to obtain the specific coordinates of the pause position Q and the center point of each application icon in the preset coordinate system, and calculate the distance between each application icon and the pause position.
[0102] like Figure 6 As shown, for example, the specific coordinates of the pause position Q in the preset coordinate system are determined as:
[0103] Stop position Q(1,-1).
[0104] The specific coordinates of the center point of each application icon in the preset coordinate system are determined as follows:
[0105] Application icon a(0,0), application icon b(1,0), application icon c(2,0), application icon d(3,0), application icon e(0,-1), application icon f(1,-1), application icon g(2, -1), application icon h(3,-1), application icon i(0,-2), application icon j(1,-2), application icon k(2,-2), application icon l(3,-2).
[0106] Based on the above pause position Q and the specific coordinates of the center point of each application icon, the distance between each application icon and the pause position Q can be easily calculated using existing geometric and mathematical methods. Generally, the point-to-point distance is the length of the line segment between the two points. Some calculation results are as follows:
[0107] The distance from the application icon a (0, 0) to the stop position Q is 1.44 cm.
[0108] The distance from the application icon b(1,0) to the stop position Q is 1.00 cm.
[0109] The distance from the application icon c(2,0) to the stop position Q is 1.44 cm.
[0110] The distance from the application icon d(3,0) to the stop position Q is: 2.23 cm.
[0111] The distance from the application icon e(0, -1) to the stop position Q is 1.00 cm.
[0112] S4023. Obtain the program type of each application and calculate the type similarity between each application and the first application.
[0113] For example, the type similarity between some applications and the first application is shown in Table 3:
[0114] app Type similarity (%) a 100 b 14 c 85 d 0 e 96
[0115] Table III Application type similarity table
[0116] S4024 determines the target application icon according to the second preset distance and the preset threshold.
[0117] Exemplarily, the second preset distance is set to 1 cm and the preset threshold is set to 65%. Based on this, the application icons whose distance from the pause position Q is less than or equal to the second preset distance (1 cm) are first determined as application icons to be managed. According to the above-calculated distances between each application icon and the pause position Q, application icon b, application icon e, application icon f, application icon g, and application icon j are determined as candidate management application icons; then, the candidate application icons corresponding to each candidate management application icon and whose type similarity with the first application (application a) exceeds the preset threshold (65%) are determined as target application icons. According to the similarities of each application calculated in Table 3 above, application icon e and application icon f are determined as target application icons.
[0118] like Figure 7 As shown, the first application icon (application icon a) and the target application icons (application icon e, application icon f) are merged into the same folder, and the folder is displayed at the initial position corresponding to the first application icon.
[0119] The method for managing application icons provided in the embodiment of the present application determines the target application icon according to the parameter of the first sliding instruction and the type of application when the parameter of the first sliding instruction is the pause position. By determining the target application icon according to the pause position, the embodiment can avoid using application icons that the user does not want to merge as target application icons, improve the accuracy of the target application icon, and facilitate user use.
[0120] Example 4
[0121] This embodiment provides a method for managing application icons. When the parameters of the first sliding instruction at least include a direction, the above step S102 includes: steps S5021-S5022.
[0122] S5021. Taking the initial position of the first application icon as a starting point, determine a first ray according to a direction.
[0123] In this embodiment, the first ray is a ray that takes the initial position as the starting point and passes through the end position.
[0124] like Figure 8 As shown, user C triggers the first sliding instruction starting condition by tapping and quickly moving the application icon A1, and slides, stops sliding at P1, and obtains the first ray.
[0125] S5022: Determine, as a target application icon, an application icon that is located on the first ray and whose application type has a similarity with the first application that exceeds a preset threshold.
[0126] Each application program located on the first ray is obtained, and a similarity between each application program and the first application program is calculated.
[0127] Generally, an application icon is a square pattern, especially an application icon corresponding to a mobile phone application, that is, an application icon occupies a certain area, rather than a point. In this embodiment, the application icon passed by the first ray is determined as a candidate management application icon. Fig. 9 As shown, the application programs located on the first ray are: application icon A1, application icon F1 and application icon K1.
[0128] The type similarity between some applications and the first application is obtained through calculation as shown in Table 4:
[0129] app Type similarity (%) <![CDATA[A1]]> 100 <![CDATA[B1]]> 81 <![CDATA[C1]]> 22 <![CDATA[D1]]> 36 <![CDATA[E1]]> 19 <![CDATA[F1]]> 86
[0130] Table 4. Application type similarity table
[0131] The target application icon is determined according to a preset threshold.
[0132] Specifically, an application icon whose application type has a similarity with the first application exceeding a preset threshold is determined as the target application icon.
[0133] Exemplarily, the preset threshold is set to 80%, then the application icon whose application type is more than 80% similar to the first application is determined as the target application icon. Based on this, among the above-mentioned candidate management application icons: application icon A1, application icon F1 and application icon K1, the application icons whose similarity to the first application is more than 80% are: application icon A1, application icon F1 and application icon K1, then application icon A1, application icon F1 and application icon K1 are determined as the target application icons.
[0134] like Fig. 9 As shown, the first application icon (application icon A1) and the target application icons (application icon A1, application icon F1 and application icon K1) are merged into the same folder, and the folder is displayed at the initial position corresponding to the first application icon.
[0135] It should be noted here that: this embodiment will not go into details about some implementation details, and implementers can refer to the corresponding contents of other embodiments.
[0136] The method for managing application icons provided in the embodiment of the present application determines the target application icon according to the parameter of the first sliding instruction and the type of application when the parameter of the first sliding instruction is a direction. In this embodiment, by determining the target application icon according to the direction, the user only needs to slide a short distance to determine the target application icon, and does not need to slide a long distance, which is convenient for the user.
[0137] Example 5
[0138] This embodiment provides a method for managing application icons. When the parameters of the first sliding instruction at least include the sliding end position, the above step S102 includes steps S6021-S6022.
[0139] S6021. Calculate the angle between the first vector line segment and the second vector line segment.
[0140] The first vector line segment is a vector line segment starting from the initial position of the first application icon and ending at the sliding end position. The second vector line segment is a vector line segment starting from the initial position of the first application icon and ending at the position of the candidate application icon, wherein the candidate application icon is an icon of a candidate application, and the type similarity between the candidate application and the first application exceeds a preset threshold. Therefore, before obtaining the second vector line segment, the candidate application icon should be determined by judging the type similarity between each application and the first application. The specific method will not be repeated here, and the implementer can refer to other embodiments accordingly.
[0141] The sliding end position parameter of the first sliding instruction is obtained, and the sliding end position coordinates of the first sliding instruction are obtained in a preset coordinate system, such as Fig.10 As shown, user D triggers the starting condition of the first sliding instruction by tapping and quickly moving the application icon a1, and slides and stops sliding at the application icon l1. The first sliding instruction obtained is: the initial position is the center point of the application icon a1, and the sliding end position is the center point of the application icon l1.
[0142] like Fig.10As shown, the candidate application icons judged and determined by the type similarity between each application and the first application are: application icon d1, application icon f1, application icon g1 and application icon i1. The center point of application icon a1 is connected with the center point of application icon l1 to obtain the first vector line segment, the center point of application icon a1 is connected with the center point of application icon d1 to obtain the second vector line segment Ld1, the center point of application icon a1 is connected with the center point of application icon f1 to obtain the second vector line segment Lf1, the center point of application icon a1 is connected with the center point of application icon g1 to obtain the second vector line segment Lg1, and the center point of application icon a1 is connected with the center point of application icon j1 to obtain the second vector line segment Lj1.
[0143] Based on the first vector line segment and each second vector line segment obtained above, the angle between the first vector line segment and each second vector line segment can be obtained by using simple geometric and mathematical operations. For example, the following can be obtained by calculation:
[0144] The angle between the first vector line segment and the second vector line segment Ld1 is 45 degrees.
[0145] The angle between the first vector line segment and the second vector line segment Lf1 is 10 degrees.
[0146] The angle between the first vector line segment and the second vector line segment Lg1 is 10 degrees.
[0147] The angle between the first vector line segment and the second vector line segment Lj1 is 20 degrees.
[0148] S6022: Determine the candidate application icon corresponding to the second vector line segment having the smallest angle with the first vector line segment as the target application icon.
[0149] It should be noted here that: if there are multiple second vector line segments whose included angles with the first vector line segment are all minimum angles, calculate the length differences between the multiple second vector line segments and the first vector line segment; and determine the candidate application icon corresponding to the second vector line segment with the smallest length difference with the first vector line segment as the target application icon.
[0150] For example, referring to the above calculation results, it can be determined that the second vector line segment with the smallest angle with the first vector line segment is: the second vector line segment Lf1 and the second vector line segment Lg1, that is, there are two second vector line segments with the first vector line segment whose angles are the smallest angles. At this time, it is necessary to calculate the length difference between the second vector line segment Lf1 and the second vector line segment Lg1 and the first vector line segment respectively. Using a simple geometric calculation method, it is calculated that: the length difference between the second vector line segment Lf1 and the first vector line segment is 2cm, and the length difference between the second vector line segment Lg1 and the first vector line segment is 3.8cm. Based on determining the candidate application icon corresponding to the second vector line segment with the smallest length difference with the first vector line segment as the target application icon, the target application icon can be determined as the application icon f1.
[0151] like Fig.11 As shown, the first application icon (application icon a1) and the target application icon (application icon f1) are merged into the same folder, and the folder is displayed at the initial position corresponding to the first application icon.
[0152] It should be noted here that: this embodiment will not go into details about some implementation details, and implementers can refer to the corresponding contents of other embodiments.
[0153] It is particularly important to explain here that each application icon in each embodiment of the present application may not only be an application icon corresponding to a single application program, but may also be an application icon corresponding to a folder.
[0154] The embodiment of the present application provides a method for managing application icons. When the parameter of the first sliding instruction is the sliding end position, the target application icon is determined according to the parameter of the first sliding instruction and the type of application. The present embodiment determines the target application icon according to the sliding end position, and does not require the sliding track, so that the user can slide freely, which is convenient for the user.
[0155] Example 6
[0156] This embodiment provides a device for managing application icons, such as Fig.12 As shown, including:
[0157] The receiving module 71 is configured to receive a first sliding instruction for a first application icon, wherein the first application icon is an icon of a first application program.
[0158] The determination module 72 is used to determine a target application icon according to the parameters of the first sliding instruction and the type of the application program, wherein the target application icon is an icon of the target application program.
[0159] Wherein, the determination module 72 also includes:
[0160] The first submodule 721: The first submodule is used to determine, when the parameters of the first sliding instruction include at least a trajectory, an application icon whose distance from the trajectory is less than or equal to a first preset distance and whose application type has a similarity with the first application exceeding a preset threshold as a target application icon.
[0161] Second submodule 722: The second submodule is used to determine, as a target application icon, an application icon whose distance from the pause position is less than or equal to a second preset distance and whose application type has a similarity with the first application exceeding a preset threshold, when the parameters of the first sliding instruction include at least a pause position; wherein the pause position is a position where the pause time during the sliding process exceeds a first preset duration.
[0162] The third submodule 723: The third submodule is used to determine the first ray based on the direction with the initial position of the first application icon as the starting point when the parameters of the first sliding instruction include at least the direction; and determine the application icon that is located on the first ray and the application type has a similarity with the first application that exceeds a preset threshold as the target application icon.
[0163] Fourth submodule 724: The fourth submodule is used to calculate the angle between the first vector line segment and the second vector line segment when the parameters of the first sliding instruction include at least the sliding end position, wherein the first vector line segment is a vector line segment with the initial position of the first application icon as the starting point and the sliding end position as the end point, and the second vector line segment is a vector line segment with the initial position of the first application icon as the starting point and the position of the candidate application icon as the end point, wherein the candidate application icon is an icon of a candidate application, and the type similarity between the candidate application and the first application exceeds a preset threshold; the candidate application icon corresponding to the second vector line segment with the smallest angle with the first vector line segment is determined as the target application icon.
[0164] Among them, the candidate application icon corresponding to the second vector line segment with the smallest angle with the first vector line segment is determined as the target application icon, including: if there are multiple second vector line segments with the first vector line segment whose angles are all the smallest angles, calculating the length differences between the multiple second vector line segments and the first vector line segment; and determining the candidate application icon corresponding to the second vector line segment with the smallest length difference with the first vector line segment as the target application icon.
[0165] The merging module 73 is used to merge the first application icon and the target application icon into the same folder.
[0166] Display module 74: The display module is used to display the folder at a target location; wherein the target location is the initial location of the first application or the initial location of the last target application merged into the folder.
[0167] The embodiment of the present application provides a device for managing application icons, which first receives a first sliding instruction for a first application icon; secondly determines a target application icon according to the parameters of the first sliding instruction and the type of application; and finally merges the first application icon and the target application icon into the same folder. The first sliding instruction is generated according to a sliding operation of the user, and multiple target application icons can be determined according to the first sliding instruction, so that the user only needs one sliding operation to realize the one-time merging management of multiple application icons, and the operation steps are simple, which saves time and improves the user experience.
[0168] Furthermore, the display module of the embodiment of the present application displays the folders generated after merging intuitively and orderly, which is convenient for the user to search and use later, and the user experience is further improved while ensuring the neatness of the display interface.
[0169] It should be noted here that the device for managing application icons in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmentedreality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personaldigital assistant, PDA), etc., and can also be a server, a network attached storage (Network AttachedStorage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0170] The device for managing application icons in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0171] The device for managing application icons provided in the embodiment of the present application can achieve Figures 1 to 11 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0172] Example 7
[0173] The present application embodiment provides an electronic device for managing application icons, such as Fig.13 As shown, it includes a processor M01 and a memory M02. The memory M02 stores programs or instructions that can be run on the processor M01. When the program or instruction is executed by the processor M01, the various steps of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0174] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0175] The embodiment of the present application provides an electronic device for managing application icons, which first receives a first sliding instruction for a first application icon; secondly determines a target application icon according to the parameters of the first sliding instruction and the type of application; and finally merges the first application icon and the target application icon into the same folder. The first sliding instruction is generated according to a sliding operation of the user, and multiple target application icons can be determined according to the first sliding instruction, so that the user only needs one sliding operation to realize the one-time merging management of multiple application icons, and the operation steps are simple, which saves time and improves the user experience.
[0176] Fig.14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0177] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0178] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0179] The input unit 1004 is configured to generate a first sliding instruction for the first application icon.
[0180] Processor 1010, configured to determine a target application icon according to a parameter of the first sliding instruction and a type of application, wherein the target application icon is an icon of a target application;
[0181] The first application icon and the target application icon are merged into the same folder.
[0182] This application can realize the one-time merging management of multiple application icons. The operation steps are simple, which saves time and improves the user experience.
[0183] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0184] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0185] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0186] Example 8
[0187] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned method embodiment for managing application icons is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0188] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0189] In addition, an embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment for managing application icons, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0190] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0191] Furthermore, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the various processes of the method embodiment for managing application icons as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0192] The embodiment of the present application provides a readable storage medium, a chip, and a computer program product for managing application icons. First, a first sliding instruction for a first application icon is received; second, a target application icon is determined according to the parameters of the first sliding instruction and the type of application; and finally, the first application icon and the target application icon are merged into the same folder. The first sliding instruction is generated according to a sliding operation of the user, and multiple target application icons can be determined according to the first sliding instruction, so that the user only needs one sliding operation to realize the one-time merging management of multiple application icons, and the operation steps are simple, which saves time and improves the user experience.
[0193] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0194] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0195] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for managing application icons, characterized in that: include: receiving a first sliding instruction for a first application icon, wherein the first application icon is an icon of a first application program; determining a target application icon according to the parameters of the first sliding instruction and the type of the application, wherein the target application icon is an icon of the target application; Merging the first application icon and the target application icon into the same folder; In a case where the parameters of the first sliding instruction at least include a sliding end position, determining the target application icon according to the parameters of the first sliding instruction and the type of the application program includes: Calculating an angle between a first vector line segment and a second vector line segment, wherein the first vector line segment is a vector line segment starting from an initial position of the first application icon and ending at the sliding end position, and the second vector line segment is a vector line segment starting from an initial position of the first application icon and ending at a position of a candidate application icon, wherein the candidate application icon is an icon of a candidate application, and a type similarity between the candidate application and the first application exceeds a preset threshold; The candidate application icon corresponding to the second vector line segment having the smallest angle with the first vector line segment is determined as the target application icon.
2. The method according to claim 1, characterized in that In a case where the parameters of the first sliding instruction at least include a track, determining the target application icon according to the parameters of the first sliding instruction and the type of the application program includes: An application icon whose distance from the track is less than or equal to a first preset distance and whose application type has a similarity with the first application exceeding a preset threshold is determined as a target application icon.
3. The method according to claim 1, characterized in that In a case where the parameters of the first sliding instruction at least include a pause position, determining the target application icon according to the parameters of the first sliding instruction and the type of the application program includes: Determine an application icon whose distance from the pause position is less than or equal to a second preset distance and whose application type has a similarity with the first application exceeding a preset threshold as a target application icon; The pause position is a position where the pause time exceeds a first preset time length during the sliding process.
4. The method according to claim 1, characterized in that: In a case where the parameters of the first sliding instruction at least include a direction, determining the target application icon according to the parameters of the first sliding instruction and the type of the application program includes: Taking the initial position of the first application icon as a starting point, determining a first ray according to the direction; An application icon located on the first ray and having an application type similarity with the first application exceeding a preset threshold is determined as a target application icon.
5. The method according to claim 1, characterized in that The step of determining the candidate application icon corresponding to the second vector line segment having the smallest angle with the first vector line segment as the target application icon includes: If there are multiple second vector line segments whose included angles with the first vector line segment are all minimum included angles, calculating the length differences between the multiple second vector line segments and the first vector line segment; The candidate application icon corresponding to the second vector line segment having the smallest length difference with the first vector line segment is determined as the target application icon.
6. The method according to any one of claims 1 to 5, characterized in that: After merging the first application icon and the target application icon into the same folder, the method further includes: Displaying the folder at the target location; The target position is the initial position of the first application icon or the initial position of the last target application icon merged into the folder.
7. A device for managing application icons, characterized in that: include: A receiving module, configured to receive a first sliding instruction for a first application icon, wherein the first application icon is an icon of a first application program; a determination module, configured to determine a target application icon according to the parameters of the first sliding instruction and the type of application, wherein the target application icon is an icon of a target application; A merging module, used to merge the first application icon and the target application icon into the same folder; The determination module includes a fourth submodule; The fourth submodule is used to calculate the angle between the first vector line segment and the second vector line segment when the parameters of the first sliding instruction include at least the sliding end position, wherein the first vector line segment is a vector line segment with the initial position of the first application icon as the starting point and the sliding end position as the end point, and the second vector line segment is a vector line segment with the initial position of the first application icon as the starting point and the position of the candidate application icon as the end point, wherein the candidate application icon is an icon of a candidate application, and the type similarity between the candidate application and the first application exceeds a preset threshold; the candidate application icon corresponding to the second vector line segment with the smallest angle with the first vector line segment is determined as the target application icon.
8. The device according to claim 7, characterized in that The determination module includes a first submodule; The first submodule is used to determine, when the parameters of the first sliding instruction include at least a trajectory, an application icon whose distance from the trajectory is less than or equal to a first preset distance and whose application type has a similarity with the first application exceeding a preset threshold as a target application icon.
9. The device according to claim 7, characterized in that The determination module includes a second submodule; The second submodule is used to determine, as a target application icon, an application icon whose distance from the pause position is less than or equal to a second preset distance and whose application type has a similarity with the first application exceeding a preset threshold when the parameters of the first sliding instruction include at least a pause position; wherein the pause position is a position where the pause time during the sliding process exceeds a first preset duration.
10. The device according to claim 7, characterized in that The determination module includes a third submodule; The third submodule is used to, when the parameters of the first sliding instruction include at least a direction, take the initial position of the first application icon as the starting point, determine a first ray according to the direction; and determine an application icon that is located on the first ray and whose application type has a similarity with the first application that exceeds a preset threshold as a target application icon.
11. The device according to claim 7, characterized in that The method of determining the candidate application icon corresponding to the second vector line segment having the smallest angle with the first vector line segment as the target application icon includes: if there are multiple second vector line segments whose angles with the first vector line segment are all the smallest angles, calculating the length differences between the multiple second vector line segments and the first vector line segment; and determining the candidate application icon corresponding to the second vector line segment having the smallest length difference with the first vector line segment as the target application icon.
12. The device according to any one of claims 7 to 11, characterized in that: Also includes a display module; The display module is used to display the folder at a target location; wherein the target location is an initial location of the first application or an initial location of the last target application merged into the folder.
13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method for managing application icons as described in any one of claims 1 to 6 are implemented.
14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method for managing application icons as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and device for classifying application icons
CN106873856A