CN109271224B - Method and apparatus for determining position - Google Patents

Method and apparatus for determining position Download PDF

Info

Publication number
CN109271224B
CN109271224B CN201811066938.8A CN201811066938A CN109271224B CN 109271224 B CN109271224 B CN 109271224B CN 201811066938 A CN201811066938 A CN 201811066938A CN 109271224 B CN109271224 B CN 109271224B
Authority
CN
China
Prior art keywords
icon
application
identifier
icon position
index record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811066938.8A
Other languages
Chinese (zh)
Other versions
CN109271224A (en
Inventor
肖树山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zhangmen Science and Technology Co Ltd
Original Assignee
Shanghai Zhangmen Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN201811066938.8A priority Critical patent/CN109271224B/en
Publication of CN109271224A publication Critical patent/CN109271224A/en
Application granted granted Critical
Publication of CN109271224B publication Critical patent/CN109271224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application discloses a method and equipment for determining a position. One embodiment of the method comprises: acquiring an identifier of an application currently being installed; determining an icon position of the application currently being installed as a target icon position according to the identifier, wherein the icon position represents a position where the icon of the application is displayed on a desktop of the terminal device; an icon of the application currently being installed is displayed at the target icon position. This embodiment helps to increase the flexibility and variety in determining the icon display position.

Description

Method and apparatus for determining position
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and equipment for determining a position.
Background
With the rapid development of the mobile terminal, more and more mobile terminal applications are applied to various functions. The user can sort the icons of the applications displayed on the desktop of the used terminal equipment according to the use habit of the user.
Generally, when an application is newly installed, an icon of the application is generally displayed behind the last icon on the desktop of the terminal device by default; and after the installation is finished, allowing the user to adjust the display position of the icon of the application according to the use habit of the user.
Disclosure of Invention
The embodiment of the application provides a method and equipment for determining a position.
In a first aspect, an embodiment of the present application provides a method for determining a location, where the method is applied to a terminal device, and the method includes: acquiring an identifier of an application currently being installed; determining an icon position of the application currently being installed as a target icon position according to the identifier, wherein the icon position represents a position of the icon of the application displayed on a desktop of the terminal device; an icon of an application currently being installed is displayed at the target icon position.
In a second aspect, an embodiment of the present application provides an apparatus for determining a position, where the apparatus includes: an acquisition unit configured to acquire an identification of an application currently being installed; a determination unit configured to determine, as a target icon position, an icon position of an application currently being installed, according to the identification, wherein the icon position represents a position at which an icon of the application is displayed on a desktop of the terminal device; a display unit configured to display an icon of an application currently being installed at the target icon position.
In a third aspect, an embodiment of the present application provides a network device, where the network device includes: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, the present application provides a computer readable medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
According to the method and the device for determining the position, the identifier of the currently installed application is obtained first, and then the position of the icon of the currently installed application displayed on the desktop of the terminal device is determined and displayed according to the identifier, so that when an application is newly installed, the position of the icon displayed on the desktop can be determined according to the identifier of the application, the flexibility and the diversity of determining the position of the icon are improved, and the icon position is prevented from being determined according to the same processing logic for all newly installed applications.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for determining location according to the present application;
FIG. 3 is a flow chart of yet another embodiment of a method for determining location according to the present application;
FIG. 4 is a schematic illustration of an application scenario of a method for determining a location according to an embodiment of the present application;
FIG. 5 is a flow chart of yet another embodiment of a method for determining location according to the present application;
FIG. 6 is a block diagram of a terminal device computer system suitable for use in implementing embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary architecture 100 to which embodiments of the method for determining a position of the present application may be applied.
As shown in fig. 1, system architecture 100 may include terminal device 101, network 102, and network device 103. Network 102 is the medium used to provide communication links between terminal device 101 and network device 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal apparatus 101 interacts with the network apparatus 103 through the network 102 to receive or transmit messages and the like. Various client applications may be installed on the terminal device 101. Such as file transfer type applications, instant messaging tools, etc.
The terminal apparatus 101 may be hardware or software. When the terminal device 101 is hardware, it may be various electronic devices having a display screen and supporting adjusting the position of icons of installed applications, including but not limited to a smartphone, a tablet computer, a laptop portable computer, a desktop computer, and the like. When the terminal apparatus 101 is software, it can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
Network device 103 may be a variety of network devices communicatively connected to terminal device 101. The network device 103 may be various types of servers (servers may be integrated or distributed) that provide services for the terminal device 101. For example, the network device 103 may be a background server that receives and processes various requests (such as query requests) of the terminal device 101. Further, the network device 103 may also return the requested processing result (e.g., query result) to the terminal device 101.
It should be noted that the network device 103 may be hardware or software. When the network device 103 is hardware, it may be implemented as a distributed network device group formed by a plurality of network devices, or may be implemented as a single network device. When the network device 103 is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the terminal device 101 may be installed with an identifier processing application that can be used offline, and may be used to determine a position of the identifier of the application displayed on the desktop. The terminal device 101 itself may also be integrated with processing logic for determining the location of the display of the application's identity on the desktop. At this time, the network 102 and the network device 103 may not exist.
It should be noted that the method for determining the position provided by some embodiments of the present application is generally performed by the terminal device 101.
It should be understood that the number of terminal devices, networks, and network devices in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and network devices, as desired for an implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for determining location according to the present application is shown. The method for determining a position comprises the following steps:
step 201, obtaining the identification of the application currently being installed.
In the present embodiment, the identification of the application may be various information for identifying the application. For example, the identification of the application may be a unique identifier that the application sets at the time of development or packaging. For another example, the identifier of the application may be an identifier generated based on attribute information of the application (for example, information obtained by combining and/or encrypting information such as the name and developer of the application). The form of the mark includes, but is not limited to, numbers, character strings, special symbols, images, and combinations thereof.
In practice, an execution subject of the method for determining a position (such as the terminal device 101 shown in fig. 1) may acquire an identification of an application currently being installed using various methods upon detecting an event indicating installation of the application. For example, some existing applications that process the application program may be used to obtain the unique identifier of the application currently being installed, or the relevant configuration file of the application currently being installed may be analyzed to obtain the identifier.
And step 202, determining the icon position of the application currently being installed as a target icon position according to the identification.
In this embodiment, the icon position may represent a position where an icon of an application is displayed on the desktop of the terminal device. Specifically, the icon position may adopt various representation methods. For example, the icon position of one application may be represented using a page number and a lattice number, where the page number may represent the serial number of a page included on the terminal device, and the lattice number may represent the serial number of an area on the page where the icon is displayed. For another example, a serial number may be directly used to indicate the icon position of an application, where the serial number may indicate the serial number of the area on the page on the terminal device where the icon is displayed (e.g., numbering from top to bottom and from left to right in sequence from the home page).
In this embodiment, according to the identifier of the application currently being installed, various methods may be adopted to determine the icon position of the application currently being installed according to the actual application requirement.
For example, each time an application is installed on the terminal device, the identification of the installed application is recorded, so that the identification set of the application installed in history can be obtained. Then, when an event of installing the application currently occurs, a query can be made in the identifier set according to the identifier of the application currently being installed.
If the identifier of the currently installed application is found in the identifier set, which indicates that the currently installed application has been installed on the terminal device, an icon of the currently installed application may be displayed on a homepage of a desktop of the terminal device.
If the identifier of the application currently being installed is not found in the identifier set, which indicates that the application currently being installed is installed on the terminal device for the first time, the icon position of the application currently being installed may be determined according to an icon display rule default by the system, and the icon of the application currently being installed is displayed at the position.
The default icon display rule of the system may be a default icon display rule of an operating system of the terminal device. For example, many systems will typically default to displaying icons for newly installed applications after the last icon on the desktop.
In step 203, an icon of the application currently being installed is displayed at the target icon position.
The method provided by the above embodiment of the present application determines the icon position of the application currently being installed according to the identifier of the application currently being installed, thereby avoiding determining the icon position according to the same processing logic for all newly installed applications, and facilitating to improve the flexibility and diversity of determining the icon position.
With further reference to fig. 3, a flow 300 of yet another embodiment of a method for determining a location is shown. The process 300 of the method for determining a location includes the steps of:
step 301, acquiring an identifier of an application currently being installed.
The specific implementation process of this step can refer to the related description of step 201 in the corresponding embodiment of fig. 2, and is not repeated here.
Step 302, determining whether an icon position corresponding to the identifier exists in a preset position index record.
In this embodiment, the position index record may be used to represent a correspondence between an identifier of an application and a history icon position of the application. The historical icon position of the application can represent the position of the icon of the application displayed on the desktop when the application is installed on the terminal device before the current time.
The position index record may be stored locally in the terminal device, or may be stored in other storage devices (such as the network device 103 shown in fig. 1, an external database of the terminal device, other third-party storage devices, and the like).
Alternatively, when the location index record is stored in the terminal device, the terminal device may directly search, in the location index record, whether an icon location corresponding to the identifier of the application currently being installed exists.
Alternatively, when the location index record is stored in the server (e.g., the network device 103 shown in fig. 1), a request for obtaining the location index record may be sent to the server first. Then, the position index record returned by the server may be received, and whether an icon position corresponding to the identifier of the application currently being installed exists in the received position index record may be searched for.
Optionally, when the location index record is stored in the server, a request for requesting to query the location index record may be sent to the server. The request may include an identification of the application currently being installed. And then, receiving a query result returned by the server, and determining whether an icon position corresponding to the identifier of the application currently being installed exists according to the query result.
Step 303, in response to determining that the icon position corresponding to the identifier exists in the position index record, acquiring the icon position corresponding to the identifier as a target icon position.
In this embodiment, specifically, according to the storage location of the location index record, an icon location corresponding to the identifier of the application currently being installed may be obtained by sending a request for obtaining the icon location from the local or to the server.
When there is no icon position corresponding to the identifier of the application currently being installed in the position index record, the icon position of the application currently being installed may be determined in various ways, and the determined icon position is taken as the target icon position.
Alternatively, the icon position of the application currently being installed may be determined according to a preset icon position determination rule. The icon position determination rule may refer to an icon display rule that is default by an operating system of the terminal device, and specific reference may be made to relevant descriptions in step 202 in the embodiment corresponding to fig. 2, which are not described herein again.
Optionally, the type information of the application currently being installed may also be determined first. Then, the icon position of the application of the same type as that indicated by the type information, which is first retrieved from the home page of the desktop of the terminal device, can be acquired. Thereafter, an icon position of the application currently being installed may be determined as a target icon position around the retrieved icon position.
The type information may be used to indicate the type of the application currently being installed. In practice, the application may have different dimensionality division modes, and the types corresponding to the different division modes may also be different. For example, applications can be divided by function into: office, game, audio, and skin care, and can be divided into human, infant, and the elderly according to age. Specifically, applications in the same class may be further divided into a plurality of sub-classes, for example, applications in the game class may be further divided into an adventure class, an action class, an intelligence class, a puzzle class, and the like.
Wherein an empty region closest to the retrieved icon position may be determined as the icon position of the application currently being installed.
After the icon position corresponding to the identifier of the application currently being installed does not exist in the position index record and the target icon position corresponding to the application currently being installed is determined by various methods, the processing operation can be further executed on the target icon position and the identifier of the application currently being installed. The processing operation may be used to add a corresponding relationship between the position of the target icon and the identifier of the application currently being installed in the position index record.
Optionally, when the location index table is stored locally in the terminal device, the processing operation may include storing the location of the target icon in association with an identifier of the application currently being installed.
Optionally, when the location index table is stored in the server, the processing operation may further include sending a storage request for storing the location of the target icon and the identifier of the application currently being installed to the server. The storage request may include the location of the target icon and an identification of the application currently being installed. The server may then store the received target icon position and representation association.
The method has the advantages that the identifier of the application which does not exist in the position index table and the position of the target icon corresponding to the application are stored in a correlated mode in time, so that the content in the position index table can be enriched and updated continuously, and the timeliness and the integrity of the content stored in the undisplayed index table are guaranteed.
At step 304, an icon of the application currently being installed is displayed at the target icon location.
Alternatively, when an icon is currently displayed at the target icon position, the icon position of the application indicated by the icon currently displayed at the target icon position may be changed and the icon of the application currently being installed may be displayed at the target icon position.
With continued reference to fig. 4, fig. 4 is a schematic diagram 400 of an application scenario of the method for determining a position according to the present embodiment. In the application scenario of fig. 4, when the terminal device 401 detects that the user selects to install the application "K", the identifier "02" of the application "K" may be obtained first (as shown by reference numeral 402 in the figure).
Thereafter, the location index table 403 stored by the terminal device may be queried. As shown in the figure, the position index table 403 stores the correspondence between the identifier of the application and the position of the history icon corresponding to the application. The history icon position "L4" (as shown by reference numeral 404) corresponding to the identifier "02" can be found from the position index table 403. Then, an icon of the application K may be displayed at a position on the desktop of the terminal apparatus 401 indicated by "L4" (as indicated by reference numeral 406 in the drawing).
Specifically, the positions of the icons on the desktop of the terminal device 401 may be numbered from left to right and from top to bottom. As shown by reference numeral 405 in the figure, before the application K is installed, icons of the applications "a", "B", "C", "D", and "E" are sequentially displayed on the desktop of the terminal device, and the icon positions corresponding to the applications "a", "B", "C", "D", and "E" are "L1", "L2", "L3", "L4", and "L5", respectively. When the application K is installed, the icon of the application K is displayed at the icon position "L4", i.e., at the position where the icon of the application "D" before installation is displayed. At installation time, the icon positions of applications "D" and "E" may be moved back in sequence. As shown by reference numeral 406 in the drawing, the icons of the applications "D" and "E" are moved to the icon positions "L5" and "L6", respectively.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the flow 300 of the method for determining a location in the present embodiment highlights a step that an identification of an application currently being installed can be determined according to a preset location index table. Therefore, according to the scheme described in this embodiment, when the application currently being installed is previously uninstalled, the icon position corresponding to the previous installation on the terminal device can be found according to the position index table, and the found icon position is determined as the icon position corresponding to the current installation, so that when the application that has been uninstalled is installed, the icon of the application can be displayed at the position that has been displayed in the previous installation.
With further reference to fig. 5, a flow 500 of yet another embodiment of a method for determining a location is shown. The process 500 of the method for determining a position includes the steps of:
in step 501, it is detected whether an event indicating to uninstall the application or change the icon position occurs, if an event indicating to uninstall the application occurs, the following steps 5021, 5022, 50231, and 50232 may be performed, and if an event indicating to change the icon position occurs, the following steps 5031, 5032, 50331, and 50332 may be performed.
In this embodiment, the terminal device may continuously detect whether various events (such as user operations) indicate to uninstall an application or change an icon position.
Step 5021, obtaining an identifier for identifying the application currently being uninstalled and a current icon position of the application currently being uninstalled.
Step 5022, determine whether the identifier of the application currently being uninstalled exists in the location index record. If not, the following step 50231 may be performed, and if so, the following step 50232 may be performed.
In this step, similar to the foregoing, when the location index record is stored locally in the terminal device, it may be directly performed in the location index record to search whether there is an identifier of the application currently being uninstalled. When the location index record is stored in the server, a request for obtaining the location index record may be sent to the server, and after the location index record returned by the server is received, whether an identifier of the application currently being unloaded exists in the location index record may be retrieved. When the position index record is stored in the server, a query request can be sent to the server, and the server queries and returns a query result indicating whether the identifier of the application currently being unloaded exists in the position index record.
Step 50231, executing processing operation on the identifier of the application which is currently unloaded and the current icon position of the application which is currently unloaded, wherein the processing operation is used for adding the corresponding relation between the identifier of the application which is currently unloaded and the current icon position of the application which is currently unloaded in the position index record.
Step 50232, in response to determining that the current icon position of the application currently being unloaded is different from the icon position corresponding to the identifier of the application currently being unloaded in the position index record, performing a replacement operation on the identifier of the application currently being unloaded and the current icon position of the application currently being unloaded, wherein the replacement operation is used for replacing the icon position corresponding to the identifier of the application currently being unloaded in the position index record with the current icon position of the application currently being unloaded.
Step 5031, the identifier of the application indicated by the icon at the changed icon position and the changed icon position are obtained.
Step 5032, determine whether the location index record has an identifier of the application indicated by the icon that changes the location of the icon. If not, step 50331, described below, can be performed, and if present, step 50332, described below, can be performed.
In this step, similarly to the above, when the position index record is stored locally in the terminal device, the identifier of the application indicated by the icon indicating whether the icon position is changed may be directly searched in the position index record. When the position index record is stored in the server, a request for obtaining the position index record may be sent to the server, and after the position index record returned by the server is received, the position index record may be searched for whether an identifier of an application indicated by an icon for changing the position of the icon exists. When the position index record is stored in the server, a query request can be sent to the server, and the server queries and returns a query result of the application identifier indicated by the icon indicating whether the icon position is changed in the position index record.
Step 50331, executing a processing operation on the identifier of the application indicated by the icon at the changed icon position and the changed icon position, wherein the processing operation is used for storing the corresponding relation between the identifier of the application indicated by the icon at the changed icon position and the changed icon position.
Step 50332, in response to determining that the changed icon position and the icon position in the position index record corresponding to the identifier of the application indicated by the icon changing the icon position are different, performing a replacement operation on the identifier of the application indicated by the icon changing the icon position and the changed icon position, wherein the replacement operation is used for replacing the icon position in the position index record corresponding to the identifier of the application indicated by the icon changing the icon position with the changed icon position.
As can be seen from fig. 5, based on the embodiment corresponding to fig. 2, the flow 500 of the method for determining a location in this embodiment highlights the relevant step of updating the location index table. Therefore, the solution described in this embodiment may update the location index table in time when an event occurs, such as uninstalling an application or changing an icon location, that affects the arrangement of icons on the desktop of the terminal device, so as to store the latest correspondence between the application identifier and the icon location (including storing the identifier of a new application and a corresponding icon location, and changing the correspondence between the stored application identifier and the icon location). By updating the position index table in time, the integrity and timeliness of the content stored in the position index table are effectively guaranteed, and the user experience is further promoted.
Reference is now made to fig. 6, which is a block diagram illustrating a computer system 600 suitable for implementing a terminal device (e.g., terminal device 101 shown in fig. 1) of an embodiment of the present application. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
Note that the computer readable medium of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a determination unit, and a display unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, the acquisition unit may also be described as a "unit that acquires the identity of the application currently being installed".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the terminal device described in the above embodiments; or may exist separately without being assembled into the terminal device. The computer readable medium carries one or more programs which, when executed by the terminal device, cause the terminal device to: acquiring an identifier of an application currently being installed; determining an icon position of the application currently being installed as a target icon position according to the identifier, wherein the icon position represents a position where the icon of the application is displayed on a desktop of the terminal device; an icon of the application currently being installed is displayed at the target icon position.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (15)

1. A method for determining position is applied to a terminal device and comprises the following steps:
acquiring an identifier for uniquely identifying an application currently being installed, wherein the identifier is acquired from a configuration file of the application and is set during application development;
determining an icon position of the application currently being installed as a target icon position by using a preset position index record according to the identifier, wherein the icon position represents a position of the application icon displayed on a desktop of the terminal equipment, and the icon position is represented by a page number and a grid number;
in response to determining that an icon is currently displayed at the target icon position, altering an icon position of an application indicated by the currently displayed icon at the target icon position;
Displaying an icon of an application currently being installed at the target icon position;
the method further comprises the following steps: acquiring an application identifier indicated by an icon at a changed icon position and the changed icon position; determining whether an application identifier indicated by an icon for changing the icon position exists in a preset position index record; in response to determining that the identifier of the application indicated by the icon with the changed icon position exists in the position index record, and in response to determining that the changed icon position is different from the icon position in the position index record corresponding to the identifier of the application indicated by the icon with the changed icon position, performing a replacement operation on the identifier of the application indicated by the icon with the changed icon position and the changed icon position, wherein the replacement operation is used for replacing the icon position in the position index record corresponding to the identifier of the application indicated by the icon with the changed icon position;
in response to determining that the application currently being installed is a historically installed application, displaying an icon of the application currently being installed on a homepage of the desktop;
in response to determining that the icon position of the application currently being installed does not exist in the position index record, after determining the icon position of the application currently being installed, recording a corresponding relationship between the identifier of the application currently being installed and the determined icon position in the position index record.
2. The method of claim 1, wherein said determining an icon position of a currently installed application as a target icon position according to said identification comprises:
determining whether an icon position corresponding to the identifier exists in a preset position index record or not, wherein the position index record is used for representing the corresponding relation between the identifier of the application and the historical icon position of the application;
and in response to determining that the icon position corresponding to the identifier exists in the position index record, acquiring the icon position corresponding to the identifier as the target icon position.
3. The method of claim 2, wherein the location index record is stored at the terminal device; and
the determining whether an icon position corresponding to the identifier exists in a preset position index record includes:
and searching whether the icon position corresponding to the identifier exists in the position index record.
4. The method of claim 2, wherein the location index record is stored at a server; and
the determining whether an icon position corresponding to the identifier exists in a preset position index record includes:
Sending a request for acquiring the position index record to a server;
receiving a position index record returned by the server;
and searching whether the icon position corresponding to the identifier exists in the received position index record.
5. The method of claim 2, wherein the location index record is stored at a server; and
the determining whether an icon position corresponding to the identifier exists in a preset position index record includes:
sending a request for requesting to inquire the position index record to a server, wherein the request comprises the identifier;
receiving a query result returned by the server;
and determining whether the icon position corresponding to the identifier exists according to the query result.
6. The method of claim 2, wherein said determining an icon position of an application currently being installed as a target icon position according to said identification further comprises:
and in response to determining that no icon position corresponding to the identifier exists in the position index record, determining an icon position of the application currently being installed as the target icon position according to a preset icon position determination rule.
7. The method of claim 6, wherein after determining the icon position of the application currently being installed as the target icon position according to a preset icon position determination rule, further comprising:
and executing processing operation on the target icon position and the identifier of the application currently being installed, wherein the processing operation is used for adding the corresponding relation between the target icon position and the identifier of the application currently being installed in the position index record.
8. The method of claim 7, wherein the processing operation comprises:
and storing the target icon position and the identification of the application currently installed in an associated mode.
9. The method of claim 7, wherein the processing operation comprises:
and sending a storage request for storing the target icon position and the identifier of the application currently installed to a server, wherein the storage request comprises the target icon position and the identifier of the application currently installed.
10. The method of claim 2, wherein said determining an icon position of an application currently being installed as a target icon position according to said identification further comprises:
Determining type information of the application currently being installed in response to determining that the icon position corresponding to the identifier does not exist in the position index record;
acquiring the icon position of the application which is retrieved for the first time from the homepage of the desktop and has the same type as the type indicated by the type information;
determining an icon position of an application currently being installed around the retrieved icon position as the target icon position.
11. The method of claim 2, wherein the method further comprises:
acquiring an identifier for identifying an application currently being uninstalled and a current icon position of the application currently being uninstalled;
determining whether an identification of an application currently being uninstalled exists in the location index record;
in response to determining that the identifier of the application currently being uninstalled does not exist in the position index record, performing a processing operation on the identifier of the application currently being uninstalled and the current icon position of the application currently being uninstalled, wherein the processing operation is used for adding the corresponding relationship between the identifier of the application currently being uninstalled and the current icon position of the application currently being uninstalled in the position index record.
12. The method of claim 11, wherein the method further comprises:
in response to determining that the identifier of the application currently being uninstalled exists in the location index record, and in response to determining that the current icon position of the application currently being uninstalled is different from the icon position in the location index record corresponding to the identifier of the application currently being uninstalled, performing a replacement operation on the identifier of the application currently being uninstalled and the current icon position of the application currently being uninstalled, wherein the replacement operation is used for replacing the icon position in the location index record corresponding to the identifier of the application currently being uninstalled with the current icon position of the application currently being uninstalled.
13. The method of claim 1, wherein the method further comprises: in response to determining that the identifier of the application indicated by the icon for changing the icon position does not exist in the position index record, executing a processing operation on the identifier of the application indicated by the icon for changing the icon position and the changed icon position, wherein the processing operation is used for storing the corresponding relation between the identifier of the application indicated by the icon for changing the icon position and the changed icon position.
14. A network device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-13.
15. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-13.
CN201811066938.8A 2018-09-13 2018-09-13 Method and apparatus for determining position Active CN109271224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811066938.8A CN109271224B (en) 2018-09-13 2018-09-13 Method and apparatus for determining position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811066938.8A CN109271224B (en) 2018-09-13 2018-09-13 Method and apparatus for determining position

Publications (2)

Publication Number Publication Date
CN109271224A CN109271224A (en) 2019-01-25
CN109271224B true CN109271224B (en) 2022-06-10

Family

ID=65189361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811066938.8A Active CN109271224B (en) 2018-09-13 2018-09-13 Method and apparatus for determining position

Country Status (1)

Country Link
CN (1) CN109271224B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489689B (en) * 2021-08-26 2023-01-13 荣耀终端有限公司 Application program installation method and system, electronic equipment and server
CN116048710B (en) * 2023-04-03 2023-09-29 荣耀终端有限公司 Application identifier display method, electronic device and readable storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150071252A (en) * 2013-12-18 2015-06-26 삼성전자주식회사 Method and apparatus for controlling a composition of a picture in electronic device
CN104391724B (en) * 2014-12-05 2019-02-15 广州三星通信技术研究有限公司 The method and apparatus for reconfiguring picture mark position
CN105786310A (en) * 2015-11-17 2016-07-20 广东欧珀移动通信有限公司 Ranking method and device for application icons
CN106814931A (en) * 2015-11-27 2017-06-09 中移(杭州)信息技术有限公司 A kind of terminal and application program image target localization method
CN105930020B (en) * 2015-12-29 2019-09-17 中国银联股份有限公司 A kind of method and device of the icon of management terminal application program
CN106155743A (en) * 2016-06-30 2016-11-23 维沃移动通信有限公司 The control method of a kind of application program installation and mobile terminal
CN106339161A (en) * 2016-08-30 2017-01-18 维沃移动通信有限公司 Arrangement method of desktop icons and mobile terminal
CN106445335A (en) * 2016-09-07 2017-02-22 广东欧珀移动通信有限公司 Application icon processing method and device, and mobile terminal
CN106897069A (en) * 2017-02-28 2017-06-27 维沃移动通信有限公司 A kind of application program image target aligning method and mobile terminal

Also Published As

Publication number Publication date
CN109271224A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109600447B (en) Method, device and system for processing data
US9811327B2 (en) Dependency-aware transformation of multi-function applications for on-demand execution
CN109062563B (en) Method and device for generating page
CN108011949B (en) Method and apparatus for acquiring data
US10109094B2 (en) Interface to index and display geospatial data
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
US10242102B2 (en) Network crawling prioritization
CN112199007A (en) Menu display method and device, electronic equipment and storage medium
CN109271224B (en) Method and apparatus for determining position
US9934291B2 (en) Dynamic presentation of a results set by a form-based software application
CN111694629A (en) Information display method and device and electronic equipment
CN109992719B (en) Method and apparatus for determining push priority information
CN113076186B (en) Task processing method, device, electronic equipment and storage medium
CN109409419B (en) Method and apparatus for processing data
CN109885564B (en) Method and apparatus for transmitting information
CN109766392A (en) Data processing method and device
US11863635B2 (en) Enhanced processing of user profiles using data structures specialized for graphical processing units (GPUs)
CN107480269B (en) Object display method and system, medium and computing equipment
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium
CN111552715B (en) User query method and device
CN109408716B (en) Method and device for pushing information
CN113468354A (en) Method and device for recommending chart, electronic equipment and computer readable medium
CN109308299B (en) Method and apparatus for searching information
CN113157722A (en) Data processing method, device, server, system and storage medium
CN111857879B (en) Data processing method, device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant