WO2018170786A1 - 应用程序的更新方法 - Google Patents

应用程序的更新方法 Download PDF

Info

Publication number
WO2018170786A1
WO2018170786A1 PCT/CN2017/077675 CN2017077675W WO2018170786A1 WO 2018170786 A1 WO2018170786 A1 WO 2018170786A1 CN 2017077675 W CN2017077675 W CN 2017077675W WO 2018170786 A1 WO2018170786 A1 WO 2018170786A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
update
target application
server version
icon
Prior art date
Application number
PCT/CN2017/077675
Other languages
English (en)
French (fr)
Inventor
张爱娟
王博
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2017/077675 priority Critical patent/WO2018170786A1/zh
Priority to CN201780009591.0A priority patent/CN108701018A/zh
Publication of WO2018170786A1 publication Critical patent/WO2018170786A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present invention relates to the field of intelligent terminal technologies, and in particular, to a method and an apparatus for updating an application.
  • the application installed on the terminal is upgraded or updated through the application store installed on the terminal, that is, the user starts the corresponding application store, and checks whether an application can be upgraded through the corresponding application update page, and After confirming the upgrade, download the corresponding update package to update; this requires the user to download the application store in advance and manually start the application store to update the corresponding program, resulting in an application upgrade is relatively passive, and the operation is cumbersome.
  • this type of upgrade requires the user to manually find the corresponding update page in the application, which requires the user to input multiple operations to achieve, and not all applications have corresponding version update interfaces, that is, they cannot implement their own updates, that is, The user may enter multiple actions but cannot complete the application update.
  • the operation method of the application update installed on the existing smart terminal requires the user to input the corresponding operation actively, and the operation process requires the user to input multiple operations to complete the update trigger, that is, the existing one. There is a problem with insufficient convenience in the operation method of application update.
  • the first aspect of the embodiment of the present invention provides an application update method, which can detect a touch operation of an icon input by a user for a target application displayed on a desktop of the terminal, and then determine whether the detected touch operation meets a preset trigger condition. After the touch operation meets the preset trigger condition, the update address corresponding to the target application for the touch operation is obtained, and then the webpage client on the terminal accesses the update address corresponding to the target application to search for the target application.
  • the server version downloads the update packet corresponding to the server version when the local version of the target application is lower than the server version, thereby avoiding the need for the user to input multiple operations when updating the target application, thereby improving the convenience of operation. Sex.
  • the touch operation may be a long press operation, and during the touch operation of detecting the icon input of the target application displayed on the desktop of the terminal, the touch duration of the touch operation is also detected, and the detection is detected.
  • the pressing duration is greater than or equal to the preset duration
  • the preset trigger condition may be that the pressing duration of the touch operation is greater than or equal to the preset duration.
  • the touch point of the touch operation is also followed.
  • the location sets the position of the icon of the target application on the desktop, and then detects the position offset of the icon of the target application due to the change of the position of the touch point of the touch operation.
  • the necessary conditions for the preset trigger condition to be satisfied include the positional deviation.
  • the shift is less than or equal to the preset offset threshold, that is, if the position offset is greater than or equal to the preset offset threshold, the application is not updated, and the detection of the pressing duration of the touch operation may be terminated. Therefore, the long press operation input for the trigger of the update of the target application is distinguished from the technical solution of the icon of the long press application in the prior art to move the icon or uninstall the corresponding application, thereby reducing the input of the erroneous operation.
  • the number of target applications may be more than one.
  • the frame selection operation input by the user on the terminal desktop may be detected, and according to the user.
  • the input frame selection operation determines the frame selection area defined by the frame selection operation, and then determines the application icon included in the frame selection area according to the corresponding location area of the frame selection area on the terminal desktop, thereby determining the target application, thereby simultaneously Updating multiple applications further simplifies the operation of application updates and improves the ease of operation.
  • the process of determining the target application by determining the application icon included in the frame selection area according to the corresponding location area of the frame selection area on the terminal desktop may be obtained by acquiring all the application icons included in the frame selection area.
  • the target application does not require the user to operate one by one to improve the convenience of operation.
  • the process of detecting the touch operation of the icon input for the target application on the terminal desktop may be detecting the pressing operation input in the frame selection area.
  • the pressing operation is the touch operation of the icon input for the target application on the terminal desktop, that is, as long as the touch operation is input in the frame selection area, it can be considered as All the target application inputs determined by the frame selection area avoid the need for the user to input separately for each target application, which reduces the number of operations input and improves the convenience of operation.
  • the accessing the update address by the webpage client may be sending a message to the background process to instruct the background process to start the webpage client to access the update address, and downloading the update data packet corresponding to the server version, which may pass through the background.
  • the file monitoring process corresponding to the server version in the process monitoring webpage client obtains the file corresponding to the server version downloaded by the file downloading process of the webpage client when the file downloading process is completed, so that the download progress of the update data packet can be monitored.
  • the update packet download is completed, it is immediately known that the update packet has been downloaded.
  • the installed application may also be obtained, and the updated version of the installed application obtained by the web client access is used to find the server version corresponding to the installed application, and then according to whether the local version of the installed application is lower than the
  • the server version is used to determine whether the installed application is an installed application that needs to be updated, that is, when the local version of the installed application is lower than the server version, the corresponding installed application is used as an installed application that needs to be updated, so that the installed application can be targeted on the terminal.
  • a single application installed, or a partial application, or all installed applications are tested for the presence of an update so that the user can be prompted to update when there is an update to the application.
  • the background data process after downloading the update packet corresponding to the server version, the number of downloads that can be downloaded According to the package storage to the preset storage area, and then during the installation, the background data process obtains the update data packet corresponding to the server version from the preset storage area and installs it, and all the download update data packets can be performed by the background process. management.
  • the un-installed update data packet corresponding to the target application is searched in the preset storage area, and if not, the un-installed update data is obtained.
  • the package is installed using the un-installed update package, thereby avoiding repeated downloads when the update package has been downloaded, saving terminal resources and network resources.
  • the background data process acquires the update data packet corresponding to the server version from the preset storage area for installation, it is determined whether the preset installation condition is met, and if the preset installation condition is met, the use and The update data packet corresponding to the server version is installed, wherein the preset installation condition includes at least one of an instruction trigger condition, a time trigger condition, and a call trigger condition, so that the user can select the installation of the downloaded update data package according to the needs of the user. Timing to increase operational flexibility.
  • the second aspect of the embodiments of the present invention further provides an application updating apparatus, where the updating apparatus of the application includes an update of the application provided by performing the first aspect or any one of the possible implementation manners of the first aspect.
  • the module of the method is
  • a third aspect of embodiments of the present invention further provides a computer readable storage medium comprising computer instructions that, when executed on a computer, cause the computer to perform the first aspect or any one of the possible implementations of the first aspect The method of updating the application provided by the method.
  • a fourth aspect of the embodiments of the present invention further provides a terminal, including a processor and a memory, wherein the processor performs the first aspect or any one of the possible implementations of the first aspect by calling code or instructions in the memory.
  • the update method of the provided application is not limited to:
  • the user when the user needs to update the application installed on the terminal or detect whether there is an update, the user can meet the preset condition by using the icon input corresponding to the application displayed on the terminal desktop.
  • the touch operation for example, a long press operation in which the duration is greater than a preset value, triggers detection of whether there is an update to the application, and downloads and installs the corresponding update packet.
  • only one touch operation can be completed, in which the user must perform multiple operations on a specific operation page to complete the detection and update of the update of the application. The entire process simplifies the cumbersome steps of the input operation and improves the ease of operation of the application update.
  • FIG. 1 is a schematic diagram of an interface of a setting interface of an application in the related art
  • FIG. 2 is a schematic flow chart of an update method of an application in an embodiment
  • FIG. 3 is a schematic diagram of an interface of a display interface of a desktop on which a smartphone displays an application icon in an embodiment
  • FIG. 4 is a schematic diagram of an interface of a frame selection area in an embodiment
  • FIG. 5 is a schematic diagram of an interface of a frame selection area in an embodiment
  • FIG. 6 is a schematic diagram of an interface of a frame selection area in an embodiment
  • FIG. 7 is a schematic diagram of an interface of a frame selection area in an embodiment
  • FIG. 8 is a schematic diagram of a display interface of prompt information in an embodiment
  • FIG. 9 is a schematic diagram of a display interface of prompt information in an embodiment
  • FIG. 10 is a schematic diagram of adding a prompt identifier to an application icon area in an embodiment
  • FIG. 11 is a schematic diagram of adding a prompt identifier to an application icon area in an embodiment
  • FIG. 12 is a schematic diagram of adding a prompt identifier to an application icon area in an embodiment
  • FIG. 13 is a schematic diagram of a display interface of prompt information in an embodiment
  • FIG. 14 is a schematic diagram of a display interface of prompt information in an embodiment
  • Figure 15 is a schematic diagram showing the positional shift of an application icon in an embodiment
  • 16 is a schematic diagram of an interface of a display interface of a desktop on which a smartphone displays an application icon in an embodiment
  • 17 is a schematic diagram of interaction between terminal modules of an update method for running the above application in an embodiment
  • FIG. 18 is a schematic structural diagram of an apparatus for updating an application in an embodiment
  • FIG. 19 is a schematic structural diagram of a computer system for running an update method of the above application in an embodiment.
  • an update method of the application program is proposed.
  • the implementation of the method may depend on a computer program, which may be run on a computer system based on a von Neumann system, which may be an application management program based on an Android system, an IOS system, a Windows system, or the like.
  • the application updates the relationship program.
  • the computer system may be a terminal device such as a smart phone or a tablet computer that runs the above computer program.
  • the terminal device that performs the above method is a terminal device that is provided with a touch display screen, and the user can input a touch operation such as long press, click, and slide through the touch display screen.
  • the updating method of the foregoing application program includes the following steps:
  • Step S102 Detect a touch operation for an icon input of a target application on a terminal desktop.
  • an icon corresponding to all the applications installed on the terminal is displayed, and the user can start an application corresponding to the clicked icon by clicking the corresponding icon. Or, by long-pressing, double-clicking, dragging, and the like, the icons displayed on the desktop are used to perform operations corresponding to the input touch operations on the corresponding application.
  • the user may input a touch operation on the icon of the displayed application, and the application corresponding to the touch operation is Target should use.
  • the application icon area is also a non-application icon area on the desktop.
  • the area corresponding to the touch point is an icon area, it is determined that the application icon corresponding to the touch point and the application corresponding to the application icon are target applications.
  • FIG. 3 shows a desktop diagram of a smart phone.
  • the application corresponding to the number 3A is “Baidu Map”. "This is the target application.
  • an operation parameter corresponding to the touch operation is acquired.
  • the operating parameters corresponding to the touch operation may include one or more of operating parameters such as a pressing duration, a sliding trajectory, a displacement value, and a pressing force.
  • the number of target applications may be more than one, that is, multiple applications may be simultaneously applied as targets, and the multiple applications may be updated at the same time.
  • multiple application icons displayed on the desktop may be selected by inputting a sliding gesture, and the application corresponding to the multiple application icons may be operated.
  • the method further includes: detecting a frame selection operation input on the terminal desktop, and determining a frame selection area defined by the frame selection operation; The application icon contained in the box selection area determines the target application.
  • the frame selection operation may be a sliding gesture
  • the determination of the frame selection area may be an area surrounded by the sliding track corresponding to the sliding gesture.
  • the number S1 is a sliding track corresponding to the frame selection operation
  • the area surrounded by the sliding track indicated by the number S1 is the area indicated by the number P1, that is, the frame selection area.
  • the determination of the frame selection area may also be a rectangular area that is slid according to the start point of the sliding gesture and the line segment corresponding to the end point.
  • the line indicated by the number S2 (the line segment with the M and N points as the end points) is the sliding track corresponding to the sliding gesture corresponding to the frame selection operation, and the sliding track starts from The starting point is M and the ending point is N.
  • the rectangular area defined by the line segment MN is the area indicated by the number P2, that is, the frame selection area.
  • the icon corresponding to the frame selection area may be determined in the icon of the application displayed on the terminal desktop. For example, if an icon area corresponding to an application icon is included in the frame selection area, for example, in the figure In the application scenario shown in FIG. 4, the icon area corresponding to the application APP5 is the area indicated by the number X1, and is completely included in the frame selection area indicated by the number P1. Therefore, the application APP5 is the target application.
  • the target applications determined according to the frame selection area P1 are the applications indicated by the numbers APP5 to APP12.
  • the target applications determined according to the frame selection area P2 are the applications indicated by the numbers APP5 to APP12.
  • the application icon is considered to be included in the frame selection area, that is, the application corresponding to the application icon is the target application.
  • the icon area corresponding to the application identified by the number APP5 is the icon area indicated by the number X2.
  • the icon area indicated by the number X3 includes the number X3. Icon area and icon area of X4, there is a coincidence area between the icon area indicated by number X2 and the frame selection area indicated by number P3 (No.
  • X4 In the illustrated area, there is also a non-coincident area (ie, an area indicated by the number X3) that is not included in the frame selection area. In this case, if the overlap area indicated by the number X4 is not empty, it is considered
  • the application icon is included in the frame selection area, that is, the application identified as APP5 is the target application.
  • the target applications determined according to the frame selection area P3 are the applications indicated by the numbers APP5-APP7 and APP9-APP11.
  • the application type of the application icon included in the frame selection area may also be obtained, and the target type is determined; in the application corresponding to the application icon included in the frame selection area, the application type is obtained as The target type of application is the target application.
  • the frame selection area may include multiple application icons corresponding to multiple applications, but the multiple applications may belong to different types.
  • the frame selection area indicated by the number P3 includes five Game app, 2 social apps, 1 news client app.
  • the manner of determining the target type may also include various forms:
  • the target type may be determined according to the proportion of the number of applications corresponding to the application type of the application icon included in the frame selection area.
  • the number of apps of the game type is 5 (accounting for 5/8)
  • the number of apps of the social type is 2 (accounting for 1/4)
  • the number of apps of the news client type is 1 ( The ratio is 1/8).
  • the application type with the largest number of APPs can be selected as the target type, that is, the game type is used as the target type, and the target application that needs to be updated is the five APPs belonging to the game application.
  • the application type of the application icon included in the frame selection area may be obtained, and then displayed to the user, and the user may determine the target type to be updated by selecting the corresponding application type.
  • the user's frame selection area includes five game apps, two social apps, and one news client app.
  • a selection box can be displayed, including options for game type, social type, and news type (the source of the option is based on the type of the application in the box selection area), if the user selects the option of the social type
  • the social type is used as the target type, and the target application that needs to be updated is the two APPs belonging to the social application.
  • the application type corresponding to the page where the frame selection operation is located may be obtained as the target type.
  • the user's desktop can be divided into multiple pages. If the user sets a type classification for each page in advance (for example, in the title of the page, the attribute parameter is set in the middle position), the type is taken as the target type. You can also get all the applications included in the page where the box is selected. The application type with the largest number of applications is the page. As mentioned above, if the page where the boxing operation is located contains 20 apps, 12 of which are social apps, the target type is social type, even if the framed area contains only two social apps, the two socials will be APP is the target application.
  • the manner of determining the target type is not limited to the above three modes.
  • the touch operation when the number of target applications is more than one, when the touch operation is input for the target application, the icon is not input for a specific target application, in an optional implementation.
  • the object inputting the touch operation may be an icon of any one of the plurality of target applications, that is, detecting any one of the plurality of target applications on the desktop.
  • the touch operation is considered to be input for all target applications.
  • the detecting the touch operation for the icon input of the target application on the terminal desktop further includes: detecting a pressing operation input in the frame selection area, wherein the pressing operation is the targeted operation The touch operation of the icon input of the target application on the terminal desktop.
  • the user only needs to input a touch operation in the frame selection area of the target application, and the touch operation can be performed.
  • the touch operation input in the frame selection area may be a pressing operation or other touch operation.
  • Step S104 Acquire an update address corresponding to the target application if the touch operation meets the preset trigger condition.
  • any touch operation that is not detected is given a response, and it is also required to determine whether the touch operation meets a preset trigger condition, that is, whether the operation parameter of the detected touch operation is determined or not.
  • the set value is matched and the next step of the application update is performed only if the operational parameters match the preset values.
  • the operation parameter for acquiring the touch operation includes a duration of pressing, and comparing the operation parameter with the preset value to determine whether the two are matched, that is, determining whether the pressing duration is greater than or equal to
  • the preset duration that is, when the pressing duration is greater than or equal to the preset duration, it is determined that the detected operating parameter of the touch operation matches the preset value, that is, the touch operation satisfies the preset trigger condition, and the pressing duration is When the preset duration is less than the preset duration, it is determined that the operation parameter of the detected touch operation does not match the preset value, that is, the touch operation does not satisfy the preset trigger condition.
  • the update address corresponding to the target application is obtained, and the server version corresponding to the target application can be determined by using the update address (corresponding to the target application) The latest version) and download the server version.
  • the update address may be an official download address corresponding to the target application, or may be a file download address corresponding to the target application in the preset application store; and the update address may be acquired from the terminal in advance.
  • the correspondence between the application identifier and the update address in the storage area is determined, for example, the update address corresponding to the application identifier of the target application is searched for as the update address corresponding to the target application.
  • Step S106 Accessing the update address by the webpage client to find a server version corresponding to the target application.
  • the application downloading method can also download the application by accessing the web server or FTP resource server of the website where the application is published (for example, the official homepage), and the terminal can be accessed through the http protocol, https protocol or ftp protocol.
  • the web server or FTP resource server to download the application.
  • the web client is a client program for the terminal to access the web server or the FTP resource server, such as a browser program, an FTP client program, a web crawler, a system component having the http protocol, the https protocol, or the ftp protocol parsing capability, and the developer is based on Programs for downloading files on a web server or FTP resource server written by the http protocol, https protocol, or ftp protocol.
  • the browser When accessing the update address through the browser installed on the terminal, the browser may be the default browser that is provided on the terminal, or may be a third-party browser installed on the terminal, and the browser may access the update address, or Download the file from the update address.
  • the scenario in which the web client is the browser is taken as an example to illustrate the download process of the application update package.
  • the update address is accessed by the browser on the terminal, and the data corresponding to the update address is obtained, for example, the version information corresponding to the target application in the webpage data corresponding to the update address, that is, Server version.
  • a file corresponding to the server version that is, an update packet, is further included in the data corresponding to the update address.
  • the background process may be instructed to start a webpage client to access the update address by sending a message to the background process. That is to say, the operating system background can continuously run a background process.
  • the message is sent to the background process, and the message may include the identifier or package name of the target application, and the background process is
  • the default browser or other web client can initiate a network access request, which can include the target application. Package name, version number and other information.
  • Step S108 Download an update data packet corresponding to the server version if the local version of the target application is lower than the server version.
  • the local version of the target application is the version corresponding to the installation package corresponding to the target application installed on the terminal.
  • the local version can be obtained from the installation information or version information of the target application.
  • the current version v5.6.2-b262 corresponding to the target application is obtained from the setting interface of the application itself shown in FIG. 1 to determine the local version of the target application.
  • the server version of the target application A found in step S106 is "Android-9.7.1.788" According to the rule of increasing version number, the server version is higher than the local version, and the target application A installed on the terminal can be updated to the above server version.
  • the server version is the same as the local version, it means that there is no server version higher than the local version after the local version of the target application installed on the terminal, and no update is required. If the server version is higher than the local version, the target application is high.
  • the server version of the local version can be used to update the target application installed on the terminal, that is, the target application installed on the terminal needs to be updated; and, generally speaking, the server version is lower than the local version, and In this case, there is no need to update the application installed on the terminal.
  • the update packet corresponding to the server version is downloaded by the browser on the terminal to access the update address corresponding to the target application. After the update packet is downloaded, the downloaded update packet can be installed.
  • the downloading the update data packet corresponding to the server version further includes: storing the downloaded update data packet corresponding to the server version to a preset storage area; The update data packet corresponding to the server version is obtained in the preset storage area for installation.
  • the update packet when the update packet is downloaded by the browser, the update packet is downloaded to a preset storage area, for example, a cache area corresponding to the browser. After the update packet download is completed, the downloaded update packet is obtained from the preset storage area for installation.
  • a preset storage area for example, a cache area corresponding to the browser.
  • the corresponding update data packet may be deleted. That is to say, the process of detecting and installing the update packet is deleted after the update packet is installed.
  • the obtaining, by the background process, the update data packet corresponding to the server version is obtained from the preset storage area, and the installation may be performed by using the server version corresponding to the preset installation condition.
  • the data package is updated for installation, and the preset installation condition includes at least one of an instruction trigger condition, a time trigger condition, and a call trigger condition.
  • the instruction trigger condition is that after the update data packet is downloaded to the storage area, the user can wait for the corresponding instruction to be input, and after the user inputs the instruction for triggering the operation of installing the update data packet, the update data packet corresponding to the server version is used. Install it.
  • the time trigger condition is that the terminal detects the system time.
  • the update packet corresponding to the server version is used for installation.
  • the preset time range may be 0 to 7 points, when the terminal detects (for example, by the alarm mechanism) to the system time. After 0:00 to 7:00, the application can be updated.
  • the trigger condition is called, and the update packet is installed only when it is detected that another application calls the target application, or the target application invokes a preset specific system component.
  • the update packet download is completed, it may not be installed immediately, but the operation of installing the update packet is triggered according to various installation conditions preset by the user, so that the operation of updating the packet does not affect the operation.
  • the user uses the terminal normally, which improves the convenience of operation and user experience.
  • the prompt information of whether to update the data packet is also displayed, and the user may select whether to delete the updated update data packet according to the displayed prompt information.
  • the prompt information shown in FIG. 8 is displayed, and the user can click the “confirm” or “cancel” button in the prompt information. To choose to remove the installation package or not remove the installation package.
  • the downloading of the update data packet is completed by the file downloading process in the webpage client. Therefore, in this embodiment, when the update data packet corresponding to the server version of the target application is downloaded through the browser, the file download process corresponding to the update data packet of the server version in the browser is used (the browser may simultaneously Downloading multiple files), therefore, monitoring the file download process, and when the file download process is completed, obtaining a file corresponding to the server version downloaded by the file download process (ie, an update packet corresponding to the server version), Then install it.
  • the update data packet corresponding to the server version needs to be downloaded for installation; however, the terminal currently In the mobile data network or other files are currently being downloaded, in order to avoid excessive consumption of mobile data traffic or affect the download speed of other files being downloaded, in this embodiment, the user may also choose not to download the update data temporarily. package.
  • the prompt message of whether to download the update data packet is displayed by using a bullet box, and the user may select whether to download the detected update according to the prompt information displayed. data pack.
  • the prompt information shown in FIG. 9 is displayed, and the user can click the “confirm” or “cancel” button in the prompt information.
  • the user clicks the button corresponding to "confirm” in the prompt message in FIG. 9 it is equivalent to inputting a confirmation command, and when receiving the confirmation command, the terminal generates an update packet download command, and accesses and targets through the browser of the terminal. Applying the corresponding update address to download the update data packet corresponding to the server version; when the user clicks the button corresponding to “Cancel” in the prompt message in FIG.
  • the icon corresponding to the target application is corresponding to the icon of the target application on the terminal desktop.
  • Add a prompt identifier to the area for example, add the prompt identifier as shown in Figure 10-12.
  • the user may select whether to display the prompt information by using the prompt information displayed. Install the update package.
  • the user selects to click the "confirm” button to download the update data packet, and when it is detected that the file download process corresponding to the server version in the browser is completed, that is, corresponding to the server version.
  • the update packet download is completed, the update packet can be installed after the update packet is downloaded.
  • the prompt information shown in FIG. 13 is displayed to prompt the user whether to install the downloaded target application update. data pack.
  • the button corresponding to "confirm” in the prompt information in FIG. 13 it is equivalent to inputting a confirmation command, that is, the first confirmation command, and when receiving the confirmation command, the terminal generates an update packet installation command and updates the update packet.
  • the data packet is installed; when the user clicks the button corresponding to "Cancel” in the prompt information in FIG. 13, it is equivalent to inputting, for example, a cancel command, that is, the update data packet is not temporarily installed.
  • the update data packet that has been downloaded but not immediately installed is installed when the update operation of the application is started next time.
  • the method further includes: searching, in the preset storage area, an unmounted update data packet corresponding to the target application, where the In case, the found unmounted update data packet is obtained from the preset storage area for installation.
  • step S102 in the case where the touch operation for the icon input of the target application on the terminal desktop is detected, and the touch operation satisfies the preset trigger condition, the update of the application is stored in the terminal.
  • Searching for the unmounted update data packet corresponding to the target application in the preset storage area of the data packet, if not found, performing obtaining the update address corresponding to the target application, and if found, from the storage area Obtain the un-installed update package for installation without the need to determine the server version and update the installation of the package.
  • an operation of an icon for an application displayed on a desktop includes an operation of opening an application, moving an icon location, uninstalling an application corresponding to the icon, and the like, in step S102.
  • the touch operation is a long press operation
  • the long press operation input for the above update application is confused with the long press operation of the mobile application icon position or the uninstall application.
  • the application update mode is set and the terminal is turned on.
  • the operation triggered by the user inputting the long press operation is the update method of the application in the embodiment, and in the case that the application update mode is not enabled in the terminal, the operation triggered by the user inputting the long press operation is the mobile Apply the icon location or uninstall the app instead of updating the target app.
  • the long-press operation of the icon of the target application displayed on the terminal desktop may trigger an event.
  • the position of the icon of the mobile app drag the icon to the moved position or area, and uninstall the target reference. Drag the icon to a preset area, such as the area at the top of the desktop.
  • the detecting the duration of the pressing operation of the touch operation further includes: setting a position of the target application on the desktop by following a touch point position of the touch operation; and detecting an icon generated by the target application
  • the positional offset, the preset triggering condition includes at least: the positional offset is less than or equal to a preset offsetting threshold.
  • the application in the case that the position offset is greater than or equal to the preset offset threshold, the application is not updated, and the detection of the pressing duration of the touch operation may be terminated, thereby causing the triggering of the update of the target application.
  • the input long press operation distinguishes with the prior art long press application icon to move the position of the icon or unload the corresponding application technical solution, thereby reducing the input of the erroneous operation.
  • the touch point position of the touch operation is detected in real time, and the position of the target application icon on the desktop is re-set according to the position of the touch point. For example, when the position of the touch point changes, the icon of the target application is The location on the desktop also follows the corresponding changes.
  • the location of the target application's icon on the terminal's desktop changes, it indicates that the location of the target application's icon is offset from that before the location change occurred.
  • the track indicated by the number S3 is the change track of the position of the touch point of the detected touch operation.
  • the target application is “ The icon position of Baidu Map will also follow the change as shown in Figure 15.
  • the change in the position corresponding to the trajectory S3 is the positional shift generated by the icon of the target application.
  • the positional shift of the icon of the target application in the case where the positional shift of the icon of the target application is small, it can be considered as an erroneous operation caused by a user's erroneous operation or hand shake, etc., thereby ignoring the positional shift.
  • the positional offset generated by the icon of the target application exceeds a certain value, the positional offset cannot be directly ignored, that is, if the positional offset is greater than or equal to the preset offset threshold, the user is determined to target
  • the icon input touch action of the app is not to trigger an update operation for the target app, but to trigger other actions. In this case, the detection of the pressing duration of the touch operation is terminated, and the updating method of the above application is terminated.
  • the way to traverse all installed applications on the terminal can be to obtain all the applications installed on the terminal through the local application list.
  • an update address of the installed application may be obtained, for example, an update address corresponding to the installed application is determined according to a correspondence between an application identifier stored in the terminal and an update address. Then, the browser accesses the update address to find the server version corresponding to the application, determines the local version of the installed application, and determines whether the local version is lower than the found server version. If yes, the installed application is The installed app that needs to be updated, otherwise the installed app is an installed app that does not need to be updated.
  • the step of searching for the installed application that needs to be updated in the determined installed application according to the server version downloading the updated application for each installed application that needs to be updated separately
  • the update package corresponding to the server version of the installed application is installed.
  • the corresponding update data package is not immediately downloaded for installation, but a prompt identifier is added to the display area of the icon corresponding to the installed application that needs to be updated displayed on the terminal desktop to prompt the user to The app has an update.
  • the determined installed applications that need to be updated include “Baidu Application”, “WeChat”, and “Iqiyi”, and the interface of the application icon is displayed on the terminal desktop.
  • the application scenario shown in FIG. 16 is displayed, that is, the prompt identifier shown in FIG. 11 is added to the icon area corresponding to the icons corresponding to the “Baidu Application”, “WeChat”, and “Iqiyi” applications, that is, as shown in FIG. 16 is shown.
  • the triggering of the operation for detecting whether the update is detected for all installed applications on the terminal may be that the user inputs and applies to all applications on the terminal and the operation page managed by the application.
  • the triggering of the update detection is triggered.
  • the triggering of the operation for detecting whether the updated application is detected for all the installed applications on the terminal may be automatically triggered by the terminal, for example, according to a preset detection period. Triggers the detection of updates to all installed applications on the terminal. Specifically, in the permission management setting of the application, the timing detection application update is started, and the corresponding detection period is set, for example, 24 hours, and the detection of whether there is an update of all installed applications in the terminal is performed every 24 hours, and execution is performed.
  • Obtaining a local application list determining an installed application according to the local application list, searching a server version corresponding to the installed application by using a browser, and searching for the determined installed application according to the server version
  • An updated installed application a prompt identifier is added to an area corresponding to the icon of the installed application that needs to be updated on the terminal desktop.
  • the user may not care whether there are updates to some applications installed on the terminal, for example, for some infrequently used applications, if each time an installed application in the terminal is detected for an update. All of these applications that are infrequently used or that are not of interest to the user are detected for detection, which causes a waste of terminal resources and network resources.
  • whether the automatic detection update is enabled may be separately set for each installed application on the terminal, and only when the above-mentioned installed application for the terminal has an update detection is performed. Automatically detect updated installed apps.
  • the application that has been used in the preset time is detected, that is, the application that has not been used for a long time is The detection of whether or not there is an update described above is not performed. For example, if the preset time is set to 1 month, before the step of searching for the server version corresponding to the installed application by the browser, it is necessary to determine whether each installed application is used within 1 month, and Only the installed application that has been used within 1 month performs the step of finding the server version corresponding to the installed application through the browser.
  • the process of detecting the touch operation of the icon input for the target application on the terminal desktop in step S102 is performed by a launcher process (Laucher) on the terminal, that is, Laucher real-time detection.
  • a launcher process Laucher real-time detection.
  • the operation parameters of the touch operation are acquired and sent to the background process of the terminal.
  • the background process sends an instruction to the browser installed on the terminal to search for the server version corresponding to the target application through the browser, and returns information about the server version to the server.
  • the background process when the target application needs to be updated, the background process sends an instruction to the browser, and the browser downloads the update data packet with the server version, and is installed by the background process after the download is completed, and the background process is in progress.
  • the prompt information is displayed to the user by means of a bullet box, and the relevant operation is performed by Laucher after detecting the user's operation.
  • an update device of the application program includes a touch operation detecting module 102, an update address determining module 104, a server version searching module 106, and an application updating module 108, wherein:
  • the touch operation detecting module 102 is configured to detect a touch operation of an icon input for a target application on a terminal desktop;
  • the update address determining module 104 is configured to acquire an update address corresponding to the target application if the touch operation meets the preset trigger condition;
  • the server version search module 106 is configured to access an update address by using a webpage client to find a server version corresponding to the target application;
  • the application update module 108 is configured to download an update data packet corresponding to the server version if the local version of the target application is lower than the server version.
  • the touch operation detecting module 102 is further configured to detect a pressing duration of the touch operation; the preset triggering condition is: a pressing duration of the touch operation is greater than or equal to a preset The duration of the pressing operation of the touch operation is greater than or equal to the preset duration.
  • the touch operation detection module 102 is further configured to: follow a touch point position of the touch operation to set a position of the icon of the target application on the desktop; and detect a position offset generated by the icon of the target application,
  • the preset trigger condition includes at least: the position offset is less than or equal to a preset offset threshold.
  • the number of the target applications is at least one.
  • the foregoing apparatus further includes a target application determining module 110, configured to detect a frame selection operation input on the terminal desktop, and determine a frame selection. The designated frame selection area is determined; the target application is determined according to the application icon included in the frame selection area.
  • the target application determining module 110 is further configured to acquire an application type of the application icon included in the frame selection area, determine a target type, and correspond to an application icon included in the frame selection area. In the application, an application whose application type is the target type is obtained as a target application.
  • the touch operation detection module 102 is further configured to detect a pressing operation input in the frame selection area, and the pressing operation is a touch operation input on an icon of the target application on the terminal desktop.
  • the server version search module 106 is further configured to send a message to the background process, instructing the background process to start a webpage client to access the update address
  • the application update module 108 is further configured to pass the background.
  • the process monitors the file downloading process corresponding to the server version in the webpage client, and acquires a file corresponding to the server version downloaded by the file downloading process of the webpage client when the file downloading process is completed.
  • the foregoing apparatus further includes an update detection module 112, configured to acquire an installed application, access an update address of the installed application by using a webpage client, and search for the The server version corresponding to the installed application is installed; if the local version of the installed application is lower than the server version, the installed application is an installed application that needs to be updated.
  • an update detection module 112 configured to acquire an installed application, access an update address of the installed application by using a webpage client, and search for the The server version corresponding to the installed application is installed; if the local version of the installed application is lower than the server version, the installed application is an installed application that needs to be updated.
  • the application update module 108 is further configured to: download the downloaded corresponding to the server version.
  • the update data packet is stored in a preset storage area; the update data packet corresponding to the server version is obtained from the preset storage area through a background process for installation.
  • the foregoing apparatus further includes an update packet search module 114, configured to obtain, in the preset storage area, an unmounted corresponding to the target application.
  • an update packet search module 114 configured to obtain, in the preset storage area, an unmounted corresponding to the target application.
  • an update packet search module 114 configured to obtain, in the preset storage area, an unmounted corresponding to the target application.
  • the application update module 108 is further configured to install, by using the update data packet corresponding to the server version, if the preset installation condition is met, where the preset installation condition includes At least one of an instruction trigger condition, a time trigger condition, and a call trigger condition.
  • the user when the user needs to update the application installed on the terminal or detect whether there is an update, the user can meet the preset condition by using the icon input corresponding to the application displayed on the terminal desktop.
  • the touch operation for example, a long press operation in which the duration is greater than a preset value, triggers detection of whether there is an update to the application, and downloads and installs the corresponding update packet.
  • only one touch operation can be completed, in which the user must perform multiple operations on a specific operation page to complete the detection and update of the update of the application. The entire process simplifies the cumbersome steps of the input operation and improves the ease of operation of the application update.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • a software program it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)) or the like.
  • a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
  • an optical medium eg, a DVD
  • a semiconductor medium such as a solid state disk (SSD)
  • FIG. 19 illustrates a terminal of a von Neumann system-based computer system that runs an update method of the above-described application.
  • the computer system can be a terminal device such as a smartphone, a tablet, a palmtop, a laptop, or a personal computer.
  • an external input interface 1001, a processor 1002, a memory 1003, and an output interface 1004 connected through a system bus may be included.
  • the external input interface 1001 can optionally include at least a network interface 10012.
  • the memory 1003 may include an external memory 10032 (eg, a hard disk, an optical disk, or a floppy disk, etc.) and an internal memory 10034.
  • the output interface 1004 can include at least a device such as a display 10042.
  • the operation of the method is based on a computer program whose program file is stored in the external memory 10032 of the aforementioned von Neumann system-based computer system, loaded into the internal memory 10034 at runtime, and then After being compiled into a machine code, it is passed to the processor 1002 for execution, so that a logic touch operation detection module 102, an update address determination module 104, and a server version lookup are formed in the von Neumann system-based computer system.
  • the input parameters are received by the external input interface 1001 and transferred to the cache in the memory 1003, and then input to the processor 1002 for processing, and the processed result data is cached in the memory 1003. Subsequent processing is performed or passed to the output interface 1004 for output.
  • processor 1002 is configured to perform the following operations:
  • the processor 1002 is further configured to detect a pressing duration of the touch operation, and determine the touch operation when detecting that the pressing duration of the touch operation is greater than or equal to a preset duration The preset trigger condition is met.
  • the processor 1002 is further configured to: follow a touch point position of the touch operation to set a position of an icon of the target application on the desktop; and detect a positional deviation generated by an icon of the target application. In the case that the position offset is greater than or equal to a preset offset threshold, the detection of the pressing duration of the touch operation is terminated.
  • the processor 1002 is further configured to detect a frame selection operation input on the terminal desktop, determine a frame selection area delimited by the frame selection operation, and determine a target according to the application icon included in the frame selection area. application.
  • the processor 1002 is further configured to acquire an application type of the application icon included in the frame selection area, determine a target type, and acquire an application in an application corresponding to the application icon included in the frame selection area.
  • An application whose type is the target type is the target application.
  • the processor 1002 is further configured to detect a pressing operation input in the frame selection area, where the pressing operation is the touch operation of the icon input for the target application on the terminal desktop.
  • the processor 1002 is further configured to send a message to the background process, instructing the background process to start a webpage client to access the update address; and downloading an update data packet corresponding to the server version:
  • the file downloading process corresponding to the server version in the webpage client is monitored by the background process, and when the file downloading process is completed, the file downloading process downloaded by the webpage client is obtained, corresponding to the server version. file.
  • the processor 1002 is further configured to acquire an installed application, access an update address of the installed application by using a webpage client, and search for a server version corresponding to the installed application; In the case where the local version is lower than the server version, the installed application is an installed application that needs to be updated.
  • the processor 1002 is further configured to store the downloaded update data packet corresponding to the server version to a preset storage area, and obtain, by the background process, the preset storage area from the preset storage area.
  • the update package corresponding to the server version is installed.
  • the processor 1002 is further configured to use the un-installed update data packet if an un-installed update data packet corresponding to the target application is acquired in the preset storage area. Install it.
  • the processor 1002 is further configured to install, by using the update data packet corresponding to the server version, if the preset installation condition is met, where the preset installation condition includes an instruction trigger condition, Time At least one of a trigger condition and a call trigger condition.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了一种应用程序的更新方法,包括:检测针对终端桌面上的目标应用的图标输入的触控操作;在所述触控操作满足预设触发条件的情况下,获取与所述目标应用对应的更新地址;通过网页客户端访问所述更新地址,查找与所述目标应用对应的服务器版本;在所述目标应用的本地版本低于所述服务器版本的情况下,下载与所述服务器版本对应的更新数据包。此外,本发明实施例还公开了一种应用程序的更新装置。采用本发明,可提高应用程序更新的操作便利性。

Description

应用程序的更新方法 技术领域
本发明涉及智能终端技术领域,特别是涉及一种应用程序的更新方法及装置。
背景技术
随着应用市场上的应用不断的丰富,用户在智能终端上安装的应用程序越来越多,为了适应用户需求的变化和操作系统的运行环境的更新,相应的应用程序开发者会对应用程序进行不定期的更新或升级。一般来讲,应用程序的新版本中增加或者完善了部分功能,为了保证用户的良好使用体验以及提高用户的使用体验,用户需要对终端上安装的应用程序对应的进行升级。
现有技术中,对智能终端上安装的应用程序进行升级或者更新的方式主要有以下两种。一是,通过终端上安装的应用程序商店对终端上已安装的应用程序进行升级或者更新,即用户启动相应的应用程序商店,并通过相应的应用程序更新页面查看某一个应用是否能升级,并在确认升级之后下载相应的更新包进行更新;这就需要用户预先下载应用程序商店并手动的启动该应用程序商店后对相应程序进行更新操作,导致应用升级比较被动,且操作繁琐。二是,在打开某一个应用程序后,在如图1所示的应用自身的设置界面,找到与检测更新相关的按钮或者入口,手动的进行更新操作,查看是否存在新版本可供更新。但是,该种升级方式需要用户手动在应用中查找相应的更新页面,需要用户输入多次操作才能实现,并且,不是所有的应用中都存在相应的版本更新接口,即无法实现自身的更新,即用户可能输入多次操作却无法完成应用程序的更新。
综上所述,现有的智能终端上安装的应用程序更新的操作方法均需要用户主动地输入相应的操作才能进行,并且操作过程需要用户输入多次操作才能完成更新的触发,即现有的应用程序更新的操作方法存在便利性不足的问题。
发明内容
基于此,为解决相关技术方案中对智能终端上安装的应用程序更新的操作方法存在的便利性不足的技术问题,特提出了一种应用程序的更新方法及装置。
本发明实施例第一方面提供了一种应用程序的更新方法,可以检测用户针对终端桌面上展示的目标应用的图标输入的触控操作,然后判断检测到的触控操作是否满足预设触发条件,在触控操作满足预设触发条件的情况下,获取与触控操作针对的目标应用对应的更新地址,然后通过终端上的网页客户端访问与目标应用对应的更新地址来查找与目标应用对应的服务器版本,在目标应用的本地版本低于服务器版本的情况下,下载与服务器版本对应的更新数据包,从而避免了用户在对目标应用进行更新时需要输入多次操作,提高了操作的便利性。
在一个实施例中,触控操作可以是长按操作,在检测用户针对终端桌面上展示的目标应用的图标输入的触控操作的过程中,还检测该触控操作的按压时长,在检测到的按压时长大于或等于预设时长的情况下,确定检测到的触控操作满足预设触发条件,也就是说, 预设触发条件可以是触控操作的按压时长大于或等于预设时长。用户可以通过输入一个长按操作来触发对应用的更新,提高了操作的便利性。
在一个实施例中,在检测用户针对终端桌面上展示的目标应用的图标输入的触控操作的过程中,例如在检测触控操作的按压时长的过程中,还跟随触控操作的触控点位置设置目标应用的图标在桌面上的位置,然后检测目标应用的图标因为触控操作的触控点的位置的改变产生的位置偏移,此时预设触发条件需要满足的必要条件包括位置偏移小于或等于预设的偏移阈值,也就是说,在位置偏移大于或等于预设的偏移阈值的情况下,不会对应用进行更新,可终止对于触控操作的按压时长的检测,从而使得对于目标应用的更新的触发所输入的长按操作与现有技术中的长按应用的图标来移动图标的位置或者卸载对应的应用的技术方案进行区分,减少了误操作的输入。
在一个实施例中,目标应用的数量可以不止一个,在前述检测针对终端桌面上的目标应用的图标输入的触控操作之前,还可以检测用户在终端桌面上输入的框选操作,并根据用户输入的框选操作来确定该框选操作划定的框选区域,然后根据框选区域在终端桌面上对应的位置区域来确定框选区域中包含的应用图标,从而确定目标应用,从而可以同时对多个应用程序进行更新,进一步的简化了应用更新的操作,提高了操作的便利性。
在一个实施例中,根据框选区域在终端桌面上对应的位置区域来确定框选区域中包含的应用图标来确定目标应用的过程,可以是获取框选区域中包含的所有的应用图标的所对应的应用类型,并确定与框选区域对应的目标类型,并将框选区域中包含的应用图标所对应的应用中与目标类型对应的应用作为目标应用,可以根据目标类型来确定需要进行更新的目标应用,不需要用户逐个进行操作,提高操作便利性。
在一个实施例中,在目标应用是根据框选区域来确定的情况下,检测针对终端桌面上的目标应用的图标输入的触控操作的过程,可以是检测在框选区域中输入的按压操作的过程,并且,该按压操作即为上述针对终端桌面上的目标应用的图标输入的触控操作,也就是说,只要是在框选区域中输入的触控操作,即可被认为是针对根据框选区域确定的所有的目标应用输入的,避免了用户需要分别针对每一个目标应用进行输入,减少了操作的输入次数,提高了操作便利性。
在一个实施例中,通过网页客户端访问所述更新地址可以是向后台进程发送消息来指示后台进程启动网页客户端来访问更新地址,而下载与服务器版本对应的更新数据包中,可以通过后台进程监测网页客户端中与服务器版本对应的文件下载进程,在文件下载进程完成时,获取网页客户端的文件下载进程下载的与服务器版本对应的文件,从而可在更新数据包的下载进度进行监控,在更新数据包下载完成时即时获知更新数据包已下载完成。
在一个实施例中,还可以获取已安装应用,通过网页客户端访问获取到的已安装应用的更新地址来查找与已安装应用对应的服务器版本,然后根据已安装应用的本地版本是否低于该服务器版本来判断是否将该已安装应用作为需要更新的已安装应用,即在已安装应用的本地版本低于服务器版本时将对应的已安装应用作为需要更新的已安装应用,从而可以针对终端上安装的单个应用、或者部分应用、或者所有的已安装应用进行是否存在更新的检测,从而可以在应用存在更新时提示用户进行更新。
在一个实施例中,在下载与服务器版本对应的更新数据包之后,可以将下载的更新数 据包存储至预设的存储区域,然后在安装时,通过后台进程从预设的存储区域中获取与服务器版本对应的更新数据包并进行安装,可以通过后台进程对所有的下载更新数据包进行管理。
在一个实施例中,在获取与目标应用对应的更新地址之前,先在预设的存储区域中查找与目标应用对应的未安装的更新数据包,若查找到,则获取该未安装的更新数据包,并使用该未安装的更新数据包进行安装,从而避免了在已经下载了更新数据包的情况下进行重复下载,节省了终端资源和网络资源。
在一个实施例中,通过后台进程从预设的存储区域中获取与服务器版本对应的更新数据包进行安装时,判断是否满足预设安装条件,并在满足预设安装条件的情况下,使用与服务器版本对应的更新数据包进行安装,其中,预设安装条件包括指令触发条件、时间触发条件和调用触发条件中的至少一种,从而使得用户可以根据自己的需求选择下载的更新数据包的安装时机,提高操作的灵活性。
本发明实施例第二方面还提供了一种应用程序的更新装置,该应用程序的更新装置包括用于执行第一方面或第一方面的任意一种可能的实现方式所提供的应用程序的更新方法的模块。
本发明实施例第三方面还提供了一种计算机可读存储介质,包括计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行第一方面或第一方面的任意一种可能的实现方式所提供的应用程序的更新方法。
本发明实施例的第四方面还提供了一种终端,包括处理器和存储器,其中处理器通过调用存储器中的代码或指令以执行第一方面或第一方面的任意一种可能的实现方式所提供的应用程序的更新方法。
综上所述,实施本发明实施例,将具有如下有益效果:
采用上述应用程序的更新方法及装置之后,用户在需要对终端上安装的应用程序进行更新或者检测其是否存在更新时,可以通过在终端桌面上展示的与应用程序对应的图标输入满足预设条件的触控操作,例如,按压时长大于预设值的长按操作,来触发对该应用程序是否存在更新的检测,并下载和安装相应的更新数据包。相对于传统技术中的用户必须在特定的操作页面进行多次操作才能完成对某一个应用程序的更新的检测以及更新的技术方案,在本发明实施例中,只需要一次触控操作即可完成整个过程,简化了输入的操作的繁琐步骤,提高了应用程序更新的操作便利性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
其中:
图1为相关技术中一种应用程序的设置界面的界面示意图;
图2为一个实施例中一种应用程序的更新方法的流程示意图;
图3为一个实施例中智能手机展示应用图标的桌面的显示界面的界面示意图;
图4为一个实施例中框选区域的界面示意图;
图5为一个实施例中框选区域的界面示意图;
图6为一个实施例中框选区域的界面示意图;
图7为一个实施例中框选区域的界面示意图;
图8为一个实施例中一种提示信息的展示界面的示意图;
图9为一个实施例中一种提示信息的展示界面的示意图;
图10为一个实施例中应用图标区域添加提示标识的示意图;
图11为一个实施例中应用图标区域添加提示标识的示意图;
图12为一个实施例中应用图标区域添加提示标识的示意图;
图13为一个实施例中一种提示信息的展示界面的示意图;
图14为一个实施例中一种提示信息的展示界面的示意图;
图15为一个实施例中应用图标产生位置偏移的示意图;
图16为一个实施例中智能手机展示应用图标的桌面的显示界面的界面示意图;
图17为一个实施例中运行上述应用程序的更新方法的终端模块之间的交互示意图;
图18为一个实施例中一种应用程序的更新装置的结构示意图;
图19为一个实施例中运行上述应用程序的更新方法的计算机系统的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
为解决相关技术方案中对智能终端上安装的应用程序更新的操作方法存在的便利性不足的技术问题,特提出了一种应用程序的更新方法。该方法的实现可依赖于计算机程序,该计算机程序可运行于基于冯诺依曼体系的计算机系统之上,该计算机程序可以是基于Android系统、IOS系统、Windows系统等系统下的应用程序管理程序或者应用程序更新关系程序。该计算机系统可以是运行上述计算机程序的例如智能手机、平板电脑等终端设备。
需要说明的是,在本实施例中,执行上述方法的终端设备为设置有触控显示屏的终端设备,用户可以通过该触控显示屏输入长按、点击、滑动等触控操作。
具体的,如图2所示,上述应用程序的更新方法包括如下步骤:
步骤S102:检测针对终端桌面上的目标应用的图标输入的触控操作。
一般来讲,在智能手机、平板电脑或者个人电脑等终端的桌面上展示有终端上已安装的所有的应用程序对应的图标,用户可以通过点击相应的图标来启动与点击的图标对应的应用程序,或者通过长按、双击、拖曳等触控操作来对桌面上展示的图标来对相应的应用程序进行与输入的触控操作对应的操作。
在本实施例中,在终端的显示界面显示的是包含了多个应用程序的图标的桌面时,用户可以针对展示的应用程序的图标输入触控操作,与该触控操作对应的应用程序为目标应 用。
具体的,在检测到用户通过终端桌面输入一个触控操作时,获取与该触控操作的触控点,并确定该触控点在桌面上对应的区域是桌面上展示的某一个图标所对应的应用图标区域还是桌面上的非应用图标区域,在该触控点对应的区域为图标区域时,确定与该触控点对应的应用图标以及该应用图标对应的应用程序为目标应用。
例如,在如图3所示的应用场景中,图3展示了一个智能手机的桌面示意图,在用户针对编号3A所示的应用图标输入触控操作时,编号3A所对应的应用程序“百度地图”即为目标应用。
进一步的,在本实施例中,在检测到用户输入的针对目标应用的图标输入的触控操作之后,获取与该触控操作对应的操作参数。例如,在一个具体的实施例中,与该触控操作对应的操作参数可以包括按压时长、滑动轨迹、位移值、按压力度等操作参数中的一种或多种。
需要说明的是,在本实施例中,目标应用的数量可以不止一个,也就是说,可以同时将多个应用程序作为目标应用,并同时对这多个应用程序进行更新。具体的,在一个可选的实施例中,可以通过输入一个滑动手势选择桌面上展示的多个应用图标,并对着多个应用图标对应的应用程序进行操作。
具体的,上述检测针对终端桌面上的目标应用的图标输入的触控操作之前还包括:检测在终端桌面上输入的框选操作,确定所述框选操作划定的框选区域;根据所述框选区域中包含的应用图标确定目标应用。
具体实施中,框选操作可以是滑动手势,框选区域的确定可以是根据滑动手势所对应的滑动轨迹所包围的区域。例如,在如图4所示的应用场景中,编号S1为框选操作对应的滑动轨迹,编号S1所示的滑动轨迹所包围的区域即为编号P1所示的区域,即框选区域。
在另一个实施例中,框选区域的确定还可以是根据滑动手势的起始点和终止点对应的线段所滑动的矩形区域。例如,在如图5所示的应用场景中,编号S2所示的线条(以M、N两点为端点的线段)为框选操作对应的滑动手势所对应的滑动轨迹,该滑动轨迹的起始点为M、终止点为N,线段MN所划定的矩形区域为编号P2所示的区域,即框选区域。
在框选区域确定之后,即可在终端桌面上展示的应用程序的图标中确定框选区域对应的图标,例如,若某一个应用图标对应的图标区域包含在框选区域中,例如,在图4所示的应用场景中,应用APP5对应的图标区域为编号X1所示的区域,是完全包含在编号P1所示的框选区域之中的,因此,应用APP5为目标应用。例如,在图4所示的应用场景中,根据框选区域P1所确定的目标应用为编号APP5至APP12所示的应用程序。在图5所示的应用场景中,根据框选区域P2所确定的目标应用为编号APP5至APP12所示的应用程序。
在另一个实施例中,若应用图标对应的图标区域与框选区域之间存在重合区域,则认为该应用图标包含在框选区域中,即该应用图标对应的应用程序为目标应用。例如,在图6所示的应用场景中,编号APP5所标识的应用程序对应的图标区域为编号X2所示的图标区域,从图6中可以知道,编号X3所示的图标区域包括编号X3的图标区域和X4的图标区域,编号X2所示的图标区域与编号P3所示的框选区域之间存在重合区域(编号X4所 示的区域),也存在不包含在框选区域中的非重合区域(即编号X3所示的区域),在此种情况下,在编号X4所示的重合区域不为空的情况下,认为该应用图标包含在框选区域中,即标识为APP5的应用为目标应用。例如,在图6所示的应用场景中,根据框选区域P3所确定的目标应用为编号APP5-APP7以及APP9-APP11所示的应用程序。
在图4或图5中所示的场景中,还可获取框选区域中包含的应用图标的应用类型,确定目标类型;在框选区域中包含的应用图标对应的应用中,获取应用类型为目标类型的应用作为目标应用。
如前所述,框选区域中可包含多个应用图标,对应多个应用,但该多个应用可能属于不同的类型,例如图7中,编号P3所示的框选区域中包含了5个游戏APP、2个社交APP、1个新闻客户端APP。
在本实施例中,确定目标类型的方式也可包括多种形式:
在第一种确定目标类型的方式中,可根据框选区域中包含的应用图标的应用类型对应的应用数量的占比来确定目标类型。如前所述,框选区域中,游戏类型的APP数量为5(占比5/8),社交类型的APP数量为2(占比1/4),新闻客户端类型的APP数量为1(占比1/8)。那么,可选择APP数量占比最大的应用类型作为目标类型,即将游戏类型作为目标类型,则需要进行更新的目标应用即为属于游戏应用的5个APP。
在第二种确定目标类型的方式中,可获取框选区域中包含的应用图标的应用类型,然后展示给用户,用户通过选择相应的应用类型,即可确定需要更新的目标类型。例如,如图7所示,用户的框选区域中包含了5个游戏APP、2个社交APP、1个新闻客户端APP。用户框选结束后,可展示选择框,其中包括游戏类型、社交类型和新闻类型的选项(选项的来源为根据框选区域中的应用的类型归类得到),若用户选择了社交类型的选项,则将社交类型作为目标类型,需要进行更新的目标应用即为属于社交应用的2个APP。
在第三种确定目标类型的方式中,可获取框选操作所在的页面对应的应用类型作为目标类型。例如,用户桌面可分为多页,若用户预先为每个页面设置类型分类(例如页面的标题中、属性参数中等位置设置),则将该类型作为目标类型。也可以获取框选操作所在页面中包含的所有应用,这些应用中,对应的应用数量最多的应用类型作为该页面。如前所述,若框选操作所在的页面中包含20个APP,其中12个为社交APP,则目标类型为社交类型,即使框选区域中只包含两个社交APP,也将这两个社交APP作为目标应用。
需要说明的是,在其他实施例中,确定目标类型的方式并不限于上述三种方式。
需要说明的是,在本实施例中,在目标应用的数量不止一个时,针对目标应用输入触控操作时,不再是针对某一个特定的目标应用的图标进行输入,在一个可选的实施例中,在目标应用确定的情况下,输入触控操作的对象可以是多个目标应用中的任意一个应用的图标,也就是说,在检测到针对桌面上的多个目标应用中的任意一个应用的图标输入触控操作时,即认为该触控操作是针对所有的目标应用输入的。
在另一个可选的实施例中,上述检测针对终端桌面上的目标应用的图标输入的触控操作还包括:检测在所述框选区域中输入的按压操作,所述按压操作为所述针对终端桌面上的目标应用的图标输入的触控操作。
也就是说,用户只需要在确定目标应用的框选区域中输入触控操作,即可将该触控操 作作为针对所有的目标应用输入的触控操作,且在本实施例中,在框选区域中输入的触控操作可以是按压操作,或者其他触控操作。
步骤S104:在触控操作满足预设触发条件的情况下,获取与目标应用对应的更新地址。
在本实施例中,并不是检测到的任意的触控操作均给予响应,还需要判断该触控操作是否符合预设的触发条件,即,判断检测到的触控操作的操作参数是否与预设值是匹配的,并且只有操作参数与预设值匹配时才执行应用程序更新的下一步操作。
在一个具体的实施例中,上述获取触控操作的操作参数包括按压时长,则在将操作参数与预设值进行比对来判断二者是否匹配的过程,即为判断按压时长是否大于或者等于预设时长,也就是说,在按压时长大于或等于预设时长时,确定检测到的触控操作的操作参数与预设值是匹配的,即触控操作满足预设触发条件,在按压时长小于预设时长时,确定检测到的触控操作的操作参数与预设值是不匹配的,即触控操作不满足预设触发条件。
在本实施例中,在检测到的触控操作满足预设触发条件的情况下,获取与目标应用对应的更新地址,通过该更新地址,可以确定与目标应用对应的服务器版本(与目标应用对应的最新的版本)并下载该服务器版本。
具体实施例中,更新地址可以是与目标应用对应的官方下载地址,也可以是预设的应用商店中与目标应用对应的文件下载地址;并且,更新地址的获取可以是从预先存储在终端的存储区域中应用标识与更新地址之间的对应关系中确定的,例如,在上述对应关系中查找与目标应用的应用标识对应的更新地址作为与目标应用对应的更新地址。
步骤S106:通过网页客户端访问所述更新地址,查找与所述目标应用对应的服务器版本。
应用程序的下载途径除了一些应用市场程序以外,也可以通过访问发布这些应用的网站(例如官方主页)的web服务器或FTP资源服务器来下载应用程序,终端可通过http协议、https协议或ftp协议访问web服务器或FTP资源服务器来下载应用。网页客户端即为终端访问web服务器或FTP资源服务器的客户端程序,例如浏览器程序、FTP客户端程序、网络爬虫程序、具有http协议、https协议或ftp协议解析能力的系统组件,开发者基于http协议、https协议或ftp协议编写的可下载web服务器或FTP资源服务器上的文件的程序。
在通过终端上安装的浏览器访问更新地址时,该浏览器可以是终端上自带的默认浏览器,也可以是终端上安装的第三方浏览器,通过该浏览器可以访问更新地址,也可以从更新地址下载文件。为方便说明,后续以网页客户端为浏览器的场景为例来说明应用更新包的下载过程。
在更新地址确定之后,即可通过终端上的浏览器访问该更新地址,获取与该更新地址对应的数据,例如,包含在该更新地址所对应的网页数据中与目标应用对应的版本信息,即服务器版本。在另一个实施例中,在与更新地址对应的数据中还包括有与服务器版本对应的文件,即更新数据包。
具体的,可通过向后台进程发送消息,指示后台进程启动网页客户端访问更新地址。也就是说,操作系统后台可持续运行一个后台进程,当检测到触摸操作满足预设的触发条件时,则向该后台进程发送消息,消息中可包含目标应用的标识或者包名,后台进程则可启动系统默认的浏览器或其他网页客户端发起网络访问请求,该请求中可包含目标应用的 包名、版本号等信息。
步骤S108:在目标应用的本地版本低于所述服务器版本的情况下,下载与所述服务器版本对应的更新数据包。
目标应用的本地版本即为终端上安装的与目标应用对应的安装包对应的版本,本地版本的确定可以从目标应用的安装信息或者版本信息中获取。例如,从图1所示的应用自身的设置界面中获取目标应用对应的“当前版本v5.6.2-b262”,从而确定目标应用的本地版本。
在一个具体的实施例中,若终端上安装的目标应用A的本地版本为“Android-9.7.1.784”,而在步骤S106中查找到的目标应用A的服务器版本为“Android-9.7.1.788”,按照版本号递增的规律,服务器版本高于本地版本,终端上安装的目标应用A可以更新至上述服务器版本。
若服务器版本与本地版本相同,则说明在终端上安装的目标应用的本地版本之后不存在高于本地版本的服务器版本,不需要进行更新;若服务器版本高于本地版本,则说明目标应用存在高于本地版本的服务器版版本可用于对终端上安装的目标应用进行更新,即终端上安装的目标应用需要进行更新;并且,一般来讲,不会出现服务器版本低于本地版本的情况,并且,该种情况下也不需要对终端上安装的应用程序进行更新。
在本实施例中,在本地版本低于服务器版本因此需要对目标应用进行更新的情况下,通过终端上的浏览器访问与目标应用对应的更新地址来下载与服务器版本对应的更新数据包。在更新数据包下载完毕之后,可对下载的更新数据包进行安装。
具体的,在一个可选的实施例中,上述下载与服务器版本对应的更新数据包还包括:将下载的与所述服务器版本对应的更新数据包存储至预设的存储区域;通过后台进程从所述预设的存储区域中获取与所述服务器版本对应的更新数据包进行安装。
也就是说,通过浏览器下载更新数据包时,是将该更新数据包下载至预设的存储区域,例如,与浏览器对应的缓存区域。在更新数据包下载完成之后,从预设的存储区域中获取下载的更新数据包进行安装。
需要说明的是,在本实施例中,为了节省终端的存储资源,在下载的更新数据包安装完毕之后,可以将相应的更新数据包删除。也就是说,检测与安装更新数据包的进程,在更新数据包安装完毕之后,将该更新数据包删除。
进一步的,在一个实施例中,通过后台进程从预设的存储区域中获取与服务器版本对应的更新数据包进行安装还可为:在满足预设安装条件的情况下,使用与服务器版本对应的更新数据包进行安装,所述预设安装条件包括指令触发条件、时间触发条件和调用触发条件中的至少一种。
指令触发条件即为当更新数据包下载到存储区域之后,可等待用户输入相应的指令,在用户输入了用来触发安装更新数据包的操作的指令后,才使用与服务器版本对应的更新数据包进行安装。
时间触发条件即为,终端检测系统时间,当系统时间抵达预设的时间范围的情况下,再使用与服务器版本对应的更新数据包进行安装。例如,用户希望更新之后的安装操作均在半夜执行,从而不影响终端的正常使用,则预设的时间范围可以是0点到7点,当终端检测(例如通过闹钟机制检测)到系统时间处于0点到7点后,则可对应用进行更新。
调用触发条件即为,只有在检测到当有其他应用调用该目标应用,或者目标应用调用了预设的特定的系统组件时,才安装更新数据包。
也就是说,更新数据包下载完成后,也可不立即安装,而是根据用户预先设定的多种安装条件来触发安装更新数据包的操作,这样就使的更新数据包的操作不会影响到用户正常使用终端,提升了操作的便利性和用户体验。
可选的,在删除已经安装完毕的更新数据包之前,在本实施例中,还展示是否删除更新数据包的提示信息,用户可以根据展示的提示信息来选择是否删除该安装完毕的更新数据包。例如,在图8所示的应用场景中,在目标应用对应的更新数据包已经安装完毕时,展示如图8所示的提示信息,用户可以点击提示信息中的“确认”或“取消”按钮来选择删除该安装包或者不删除该安装包。
进一步的,在本实施例中,更新数据包的下载是由网页客户端中的文件下载进程来完成的。因此,在本实施例中,在通过浏览器下载目标应用的与服务器版本对应的更新数据包时,是通过该浏览器中与服务器版本的更新数据包对应的文件下载进程(浏览器可能会同时下载多个文件)执行的,因此,监测该文件下载进程,并在文件下载进程完成时,获取通过该文件下载进程下载的与服务器版本对应的文件(即与服务器版本对应的更新数据包),然后进行安装。
需要说明的是,在本实施例中,在检测到与目标应用对应的服务器版本且服务器版本高于目标应用的本地版本时,需要下载与服务器版本对应的更新数据包进行安装;但是,终端当前正处于移动数据网络下或者当前正在下载其他文件,为了避免对移动数据流量的过多的消耗或者影响正在下载的其他文件的下载速度,在本实施例中,用户还可以选择暂时不下载更新数据包。
在一个具体的实施例中,在下载相应的更新数据包之前,还需要通过弹框的方式展示与是否下载更新数据包的提示消息,用户可以根据展示的提示信息来选择是否下载检测到的更新数据包。
例如,在图9所示的应用场景中,在确定目标应用的本地版本低于服务器版本时,展示如图9所示的提示信息,用户可以点击提示信息中的“确认”或“取消”按钮来选择是否下载与目标应用对应的更新数据包。用户点击图9中提示消息中与“确认”对应的按钮时,相当于输入了一个确认指令,终端在接收到该确认指令时,生成更新数据包下载指令,并通过终端的浏览器访问与目标应用对应的更新地址来下载与服务器版本对应的更新数据包;用户点击图9中提示消息中与“取消”对应的按钮时,相当于输入例如一个取消指令,即暂时不下载与目标应用的服务器版本对应的更新数据包。在另一个具体的实施例中,若已经检测到目标应用的本地版本低于服务器版本时,但是用户选择暂时不下载相应的更新数据包,在此种情况下,为了避免在下次对目标应用进行更新操作时重复的执行查找服务器版本的操作,可以对终端桌面上展示的目标应用的图标进行标识,以便提示用户该应用存在更新。
具体的,在上述通过弹框的方式展示与是否下载更新数据包的提示消息的步骤之后,若检测到针对该展示的提示消息输入的取消指令,则在终端桌面上与目标应用的图标对应的区域添加提示标识,例如,添加如图10-12所示的提示标识。
另外,在对某一个应用进行更新时,需要花费一定的时间,并且在进行更新数据包安装的同时,用户是无法使用该应用的,因此,在更新数据包下载完毕之后,用户可能不希望马上安装该更新数据包。在此种情况下,用户可以选择是否安装下载完毕的更新数据包。
具体的,在监测所述浏览器中与所述服务器版本对应的文件下载进程之后,在所述文件下载进程完成之后,展示是否安装更新数据包的提示信息,用户可以通过展示的提示信息选择是否安装该更新数据包。
例如,在如图9所示的应用场景中,用户选择了点击“确认”按钮来下载更新数据包,在检测到浏览器中与服务器版本对应的文件下载进程完成时,即与服务器版本对应的更新数据包下载完成时,更新数据包下载完毕之后即可安装该更新数据包,在此之前,展示如图13所示的提示信息,用来提示用户是否需要安装已下载完毕的目标应用的更新数据包。用户点击图13中提示信息中与“确认”对应的按钮时,相当于输入了一个确认指令,即第一确认指令,终端在接收到该确认指令时,生成更新数据包安装指令,并对更新数据包进行安装;用户点击图13中提示信息中与“取消”对应的按钮时,相当于输入例如一个取消指令,即暂时不安装该更新数据包。
需要说明的是,在本实施例中,对于已经下载但是不立即安装的更新数据包,在下次启动对该应用程序的更新操作时进行安装。
具体的,上述检测针对终端桌面上的目标应用的图标输入的触控操作之后还包括:在所述预设的存储区域中查找与所述目标应用对应的未安装的更新数据包,在查找到的情况下,从所述预设的存储区域中获取所述查找到的未安装的更新数据包进行安装。
也就是说,在步骤S102中,在检测到针对终端桌面上的目标应用的图标输入的触控操作,且触控操作满足预设触发条件的情况下,在终端中用来存储应用程序的更新数据包的预设的存储区域中查找与目标应用对应的未安装的更新数据包,若未查找到,则执行获取与所述目标应用对应的更新地址,若查找到,则从该存储区域中获取该未安装的更新数据包进行安装,而不需要进行服务器版本的确定以及更新数据包的安装的相关操作。
例如,在图3所示的应用场景中,若检测到如图3所示的针对编号为3A的“百度地图”应用的图标输入触控操作时,获取检测到的触控操作的操作参数,并在操作参数与预设值匹配时,在终端中预设的存储更新数据包的存储区域中查找与“百度地图”应用对应的更新数据包,若查找到,则进行更新数据包的安装。在另一个可选的实施例中,在查找到与“百度地图”应用对应的未安装的更新数据包时,展示如图14所示的提示消息,用户可以通过展示的提示消息来选择是否安装查找到的未安装的更新数据包。
一般来讲,在现有的智能终端的常用操作中,针对桌面上展示的应用程序的图标的操作包括了打开应用、移动图标位置、卸载与图标对应的应用程序等操作,在步骤S102中的触控操作为长按操作的情况下,为了上述更新应用程序输入的长按操作与移动应用图标位置或卸载应用的长按操作混淆,在本实施例中,设置应用更新模式,在终端开启了应用更新模式的情况下,用户输入长按操作触发的操作即为本实施例中的应用程序的更新方法,而在终端未开启应用更新模式的情况下,用户输入长按操作触发的操作为移动应用图标位置或者卸载应用程序,而不是对目标应用进行更新。
需要说明的是,针对终端桌面上展示的目标应用的图标的长按操作,可能触发的事件 主要有以下两种:一是,对目标应用进行版本更新,在此种情况下,不需要在长按操作之后拖动目标应用的图标至其他区域;二是,移动目标应用的图标的位置或者卸载目标应用,在此种情况下,在长按应用之后均需要拖曳目标应用的图标至其他区域,移动目标应用的图标的位置中是将该图标拖曳至移动后的位置或区域,卸载目标引用是将该图标拖曳至预设的区域,例如桌面顶端的区域。
为了区分上述针对终端桌面上目标应用的图标的不同的长按操作,在本实施例中,在检测触控操作的按压时长时,还需要检测触控操作是否存在位置偏移。具体的,上述检测所述触控操作的按压时长还包括:跟随所述触控操作的触控点位置设置所述目标应用的图标在所述桌面上的位置;检测所述目标应用的图标产生的位置偏移,预设触发条件则至少包括:位置偏移小于或等于预设的偏移阈值。也就是说,在位置偏移大于或等于预设的偏移阈值的情况下,不会对应用进行更新,可终止对于触控操作的按压时长的检测,从而使得对于目标应用的更新的触发所输入的长按操作与现有技术中的长按应用的图标来移动图标的位置或者卸载对应的应用的技术方案进行区分,减少了误操作的输入。
具体实施例中,实时检测触控操作的触控点位置,并根据触控点的位置重新设置目标应用的图标在桌面上的位置,例如,在触控点位置变化时,目标应用的图标在桌面上的位置也跟随着发生相应的变化。
如果目标应用的图标在终端桌面上的位置发生了变化,即说明了目标应用的图标的位置相较于没有发生位置变化之前产生了位置偏移。例如,在如图15所示的应用场景中,编号S3所示的轨迹即为检测到的触控操作的触控点的位置的变化轨迹,在图15所示的应用场景中,目标应用“百度地图”的图标位置也会跟随着发生如图15中所示的改变。在图15中,轨迹S3所对应的位置的变化即为目标应用的图标产生的位置偏移。
在本实施例中,在目标应用的图标产生的位置偏移很小的情况下,可以认为是用户的误操作或者手抖等情况下产生的误操作,从而忽略该位置偏移。在目标应用的图标产生的位置偏移超过一定值的情况下,位置偏移不能直接被忽略,也就是说,在位置偏移大于或等于预设的偏移阈值的情况下,确定用户针对目标应用的图标输入触控操作不是为了触发针对目标应用的更新操作,而是触发其他操作。在此种情况下,终止对触控操作的按压时长的检测,并且终止上述应用程序的更新方法。
在另一个可选的实施例中,也可以对终端上已安装的应用程序是否存在更新进行检测。
例如,可在某个已安装应用启动时,监测该已安装的应用是否需要更新,也可以遍历终端上安装的所有已安装应用,判断这些已安装应用是不是需要进行更新。而遍历终端上所有已安装应用的方式,可以是通过本地应用程序列表来获取终端上安装的所有应用。
而对于某个已安装应用,可获取该已安装应用的更新地址,例如,根据在终端中存储的应用标识与更新地址之间的对应关系,确定与该已安装应用对应的更新地址。然后,通过浏览器访问该更新地址来查找与该应用对应的服务器版本,确定该已安装应用的本地版本,并确定该本地版本是否低于查找到的服务器版本,若是,则该已安装应用为需要更新的已安装应用,反之,则该已安装应用为不需要更新的已安装应用。
而若要检测终端上所有的已安装应用中是否存在需要更新的应用,则如前所述,可遍历本地应用程序列表中的已安装应用,并执行上述方法,即可检测到终端上所有需要更新 的已安装应用。
在本实施例中,在上述根据所述服务器版本在所述确定的已安装应用中查找需要更新的已安装应用的步骤之后,针对每一个需要更新的已安装应用,分别下载与该需要更新的已安装应用的服务器版本对应的更新数据包进行安装。在另一个实施例中,并不即刻下载相应的更新数据包进行安装,而是在终端桌面上展示的与需要更新的已安装应用对应的图标的展示区域中,添加提示标识,以提示用户该应用存在更新。
例如,通过对终端上的已安装应用是否存在更新进行检测之后,确定的需要更新的已安装应用包括“百度应用”、“微信”以及“爱奇艺”,则在终端桌面展示应用图标的界面中,展示如图16所示的应用场景,即在“百度应用”、“微信”以及“爱奇艺”应用对应的图标对应的图标区域中添加如图11所示的提示标识,即如图16所示。
需要说明的是,在本实施例中,上述针对终端上所有的已安装应用是否存在更新进行检测的操作的触发,可以是用户在终端上与应用程序管理的操作页面中输入与对所有的应用进行更新检测的指令触发的,在另一个实施例中,上述针对终端上所有的已安装应用是否存在更新进行检测的操作的触发还可以是终端自动触发的,例如,按照预设的检测周期定时触发对终端上所有的已安装应用是否存在更新的检测。具体的,在应用程序的权限管理设置中,开启定时检测应用更新,并设置相应的检测周期,例如,24小时,则每隔24小时针对终端中所有的已安装应用是否存在更新进行检测,执行上述获取本地应用程序列表,根据所述本地应用程序列表确定已安装应用;通过浏览器查找与所述已安装应用对应的服务器版本,根据所述服务器版本在所述确定的已安装应用中查找需要更新的已安装应用;在所述终端桌面上与所述需要更新的已安装应用的图标对应的区域添加提示标识。
需要说明的是,用户可能并不关心终端上安装的某些应用程序是否存在更新,例如,对于某些不常使用的应用程序,如果每次对终端中的已安装应用是否存在更新进行检测时,都对这些不常使用或者用户不关心的应用程序是否存在更新进行检测,会对终端资源以及网络资源造成一定的浪费。
因此,在一个可选的实施例中,可以针对终端上的每一个已安装应用,分别设置是否开启自动检测更新,在上述针对终端上的已安装应用是否存在更新进行检测时,仅针对开启了自动检测更新的已安装应用。
在另一个可选的实施例中,在上述针对终端上的已安装应用是否存在更新进行检测时,仅针对预设时间内使用过的应用程序进行检测,即长时间没有使用过的应用程序并不进行上述是否存在更新的检测。例如,可以设置预设时间为1个月,则在上述通过浏览器查找与所述已安装应用对应的服务器版本的步骤之前,需要确定每一个已安装应用是否在1个月内使用过,并且只有在1个月内使用过的已安装应用才执行通过浏览器查找与所述已安装应用对应的服务器版本的步骤。
需要说明的是,在本实施例中,步骤S102中检测针对终端桌面上的目标应用的图标输入的触控操作的过程,是通过终端上的启动器进程(Laucher)完成的,即Laucher实时检测用户是否有长按操作等触控操作,在检测到长按操作等触控操作时,获取触控操作的操作参数,并发送给终端的后台进程。如图17所示,后台进程给终端上安装的浏览器发送指令,以通过浏览器查找与目标应用对应的服务器版本,并将服务器版本的相关信息返回给 后台进程,在需要对目标应用进行更新时,由后台进程发送指令给浏览器,由浏览器下载与服务器版本的更新数据包,并在下载完毕之后由后台进程进行安装,并且,后台进程在进行下载、安装等指令的发送之前,还通过弹框的方式展示提示信息给用户,由Laucher检测用户的操作之后再执行相关操作。
此外,为解决相关技术方案中对智能终端上安装的应用程序更新的操作方法存在的便利性不足的技术问题,在本实施例中,还提供了一种应用程序的更新装置。如图18所示,上述应用程序的更新装置包括触控操作检测模块102、更新地址确定模块104、服务器版本查找模块106以及应用更新模块108,其中:
触控操作检测模块102,用于检测针对终端桌面上的目标应用的图标输入的触控操作;
更新地址确定模块104,用于在触控操作满足预设触发条件的情况下,获取与目标应用对应的更新地址;
服务器版本查找模块106,用于通过网页客户端访问更新地址,查找与目标应用对应的服务器版本;
应用更新模块108,用于在目标应用的本地版本低于服务器版本的情况下,下载与服务器版本对应的更新数据包。
可选的,在一个实施例中,触控操作检测模块102还用于检测所述触控操作的按压时长;所述预设触发条件为:所述触控操作的按压时长大于或等于预设时长所述触控操作的按压时长大于或等于预设时长。
可选的,在一个实施例中,触控操作检测模块102还用于跟随触控操作的触控点位置设置目标应用的图标在桌面上的位置;检测目标应用的图标产生的位置偏移,所述预设触发条件至少包括:所述位置偏移小于或等于预设的偏移阈值。
可选的,在一个实施例中,目标应用的数量为至少一个;如图18所示,上述装置还包括目标应用确定模块110,用于检测在终端桌面上输入的框选操作,确定框选操作划定的框选区域;根据框选区域中包含的应用图标确定目标应用。
可选的,在一个实施例中,目标应用确定模块110还用于获取所述框选区域中包含的应用图标的应用类型,确定目标类型;在所述框选区域中包含的应用图标对应的应用中,获取应用类型为所述目标类型的应用作为目标应用。
可选的,在一个实施例中,触控操作检测模块102还用于检测在框选区域中输入的按压操作,按压操作为针对终端桌面上的目标应用的图标输入的触控操作。
可选的,在一个实施例中,服务器版本查找模块106还用于向后台进程发送消息,指示所述后台进程启动网页客户端访问所述更新地址;应用更新模块108还用于通过所述后台进程监测所述网页客户端中与所述服务器版本对应的文件下载进程,在所述文件下载进程完成时,获取所述网页客户端的文件下载进程下载的与所述服务器版本对应的文件。
可选的,在一个实施例中,如图18所示,上述装置还包括更新检测模块112,用于获取已安装应用,通过网页客户端访问所述已安装应用的更新地址,查找与所述已安装应用对应的服务器版本;在所述已安装应用的本地版本低于该服务器版本的情况下,所述已安装应用为需要更新的已安装应用。
可选的,在一个实施例中,应用更新模块108还用于将下载的与所述服务器版本对应 的更新数据包存储至预设的存储区域;通过后台进程从所述预设的存储区域中获取与所述服务器版本对应的更新数据包进行安装。
可选的,在一个实施例中,如图18所示,上述装置还包括更新数据包查找模块114,用于在所述预设的存储区域中获取到与所述目标应用对应的未安装的更新数据包的情况下,使用所述未安装的更新数据包进行安装
可选的,在一个实施例中,应用更新模块108还用于在满足预设安装条件的情况下,使用所述与所述服务器版本对应的更新数据包进行安装,所述预设安装条件包括指令触发条件、时间触发条件和调用触发条件中的至少一种。
综上,实施本发明实施例,将具有如下有益效果:
采用上述应用程序的更新方法及装置之后,用户在需要对终端上安装的应用程序进行更新或者检测其是否存在更新时,可以通过在终端桌面上展示的与应用程序对应的图标输入满足预设条件的触控操作,例如,按压时长大于预设值的长按操作,来触发对该应用程序是否存在更新的检测,并下载和安装相应的更新数据包。相对于传统技术中的用户必须在特定的操作页面进行多次操作才能完成对某一个应用程序的更新的检测以及更新的技术方案,在本发明实施例中,只需要一次触控操作即可完成整个过程,简化了输入的操作的繁琐步骤,提高了应用程序更新的操作便利性。
在上述实施例中,可以全部或部分的通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或者数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或半导体介质(例如固态硬盘Solid State Disk(SSD))等。
在一个实施例中,如图19所示,图19展示了一种运行上述应用程序的更新方法的基于冯诺依曼体系的计算机系统的终端。该计算机系统可以是智能手机、平板电脑、掌上电脑、笔记本电脑或个人电脑等终端设备。具体的,可包括通过系统总线连接的外部输入接口1001、处理器1002、存储器1003和输出接口1004。其中,外部输入接口1001可选的可至少包括网络接口10012。存储器1003可包括外存储器10032(例如硬盘、光盘或软盘等)和内存储器10034。输出接口1004可至少包括显示屏10042等设备。
在本实施例中,本方法的运行基于计算机程序,该计算机程序的程序文件存储于前述基于冯诺依曼体系的计算机系统的外存储器10032中,在运行时被加载到内存储器10034中,然后被编译为机器码之后传递至处理器1002中执行,从而使得基于冯诺依曼体系的计算机系统中形成逻辑上的触控操作检测模块102、更新地址确定模块104、服务器版本查找 模块106、应用更新模块108、目标应用确定模块110、更新检测模块112以及更新数据包查找模块114。且在上述应用程序的更新方法执行过程中,输入的参数均通过外部输入接口1001接收,并传递至存储器1003中缓存,然后输入到处理器1002中进行处理,处理的结果数据或缓存于存储器1003中进行后续地处理,或被传递至输出接口1004进行输出。
具体的,处理器1002用于执行如下操作:
检测针对终端桌面上的目标应用的图标输入的触控操作;
在所述触控操作满足预设触发条件的情况下,获取与所述目标应用对应的更新地址;
通过网页客户端访问所述更新地址,查找与所述目标应用对应的服务器版本;
在所述目标应用的本地版本低于所述服务器版本的情况下,下载与所述服务器版本对应的更新数据包。
在其中一个实施例中,处理器1002还用于检测所述触控操作的按压时长,在检测到所述触控操作的按压时长大于或等于预设时长的情况下,确定所述触控操作满足所述预设触发条件。
在其中一个实施例中,处理器1002还用于跟随所述触控操作的触控点位置设置所述目标应用的图标在所述桌面上的位置;检测所述目标应用的图标产生的位置偏移,在所述位置偏移大于或等于预设的偏移阈值的情况下,终止检测所述触控操作的按压时长。
在其中一个实施例中,处理器1002还用于检测在终端桌面上输入的框选操作,确定所述框选操作划定的框选区域;根据所述框选区域中包含的应用图标确定目标应用。
在其中一个实施例中,处理器1002还用于获取所述框选区域中包含的应用图标的应用类型,确定目标类型;在所述框选区域中包含的应用图标对应的应用中,获取应用类型为所述目标类型的应用作为目标应用。
在其中一个实施例中,处理器1002还用于检测在所述框选区域中输入的按压操作,所述按压操作为所述针对终端桌面上的目标应用的图标输入的触控操作。
在其中一个实施例中,处理器1002还用于向后台进程发送消息,指示所述后台进程启动网页客户端访问所述更新地址;下载与所述服务器版本对应的更新数据包为:
通过所述后台进程监测所述网页客户端中与所述服务器版本对应的文件下载进程,在所述文件下载进程完成时,获取所述网页客户端的文件下载进程下载的与所述服务器版本对应的文件。
在其中一个实施例中,处理器1002还用于获取已安装应用,通过网页客户端访问所述已安装应用的更新地址,查找与所述已安装应用对应的服务器版本;在所述已安装应用的本地版本低于该服务器版本的情况下,所述已安装应用为需要更新的已安装应用。
在其中一个实施例中,处理器1002还用于将下载的与所述服务器版本对应的更新数据包存储至预设的存储区域;通过后台进程从所述预设的存储区域中获取与所述服务器版本对应的更新数据包进行安装。
在其中一个实施例中,处理器1002还用于在所述预设的存储区域中获取到与所述目标应用对应的未安装的更新数据包的情况下,使用所述未安装的更新数据包进行安装。
在其中一个实施例中,处理器1002还用于在满足预设安装条件的情况下,使用所述与所述服务器版本对应的更新数据包进行安装,所述预设安装条件包括指令触发条件、时间 触发条件和调用触发条件中的至少一种。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims (34)

  1. 一种应用程序的更新方法,其特征在于,包括:
    检测针对终端桌面上的目标应用的图标输入的触控操作;
    在所述触控操作满足预设触发条件的情况下,获取与所述目标应用对应的更新地址;
    通过网页客户端访问所述更新地址,查找与所述目标应用对应的服务器版本;
    在所述目标应用的本地版本低于所述服务器版本的情况下,下载与所述服务器版本对应的更新数据包。
  2. 根据权利要求1所述的方法,其特征在于,所述检测针对终端桌面上的目标应用的图标输入的触控操作为:
    检测所述触控操作的按压时长;
    所述预设触发条件为:所述触控操作的按压时长大于或等于预设时长。
  3. 根据权利要求1或2所述的方法,其特征在于,所述检测针对终端桌面上的目标应用的图标输入的触控操作包括:
    跟随所述触控操作的触控点位置设置所述目标应用的图标在所述桌面上的位置;
    检测所述目标应用的图标产生的位置偏移;
    所述预设触发条件至少包括:所述位置偏移小于或等于预设的偏移阈值。
  4. 根据权利要求1所述的方法,其特征在于,所述目标应用的数量为至少一个;
    所述检测针对终端桌面上的目标应用的图标输入的触控操作之前还包括:
    检测在终端桌面上输入的框选操作,确定所述框选操作划定的框选区域;
    根据所述框选区域中包含的应用图标确定目标应用。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述框选区域中包含的应用图标确定目标应用为:
    获取所述框选区域中包含的应用图标的应用类型,确定目标类型;
    在所述框选区域中包含的应用图标对应的应用中,获取应用类型为所述目标类型的应用作为目标应用。
  6. 根据权利要求4所述的方法,其特征在于,所述检测针对终端桌面上的目标应用的图标输入的触控操作为:
    检测在所述框选区域中输入的按压操作,所述按压操作为所述针对终端桌面上的目标应用的图标输入的触控操作。
  7. 根据权利要求1所述的方法,其特征在于,所述通过网页客户端访问所述更新地址为:
    向后台进程发送消息,指示所述后台进程启动网页客户端访问所述更新地址;
    下载与所述服务器版本对应的更新数据包为:
    通过所述后台进程监测所述网页客户端中与所述服务器版本对应的文件下载进程,在所述文件下载进程完成时,获取所述网页客户端的文件下载进程下载的与所述服务器版本对应的文件。
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取已安装应用,通过网页客户端访问所述已安装应用的更新地址,查找与所述已安 装应用对应的服务器版本;
    在所述已安装应用的本地版本低于该服务器版本的情况下,所述已安装应用为需要更新的已安装应用。
  9. 根据权利要求1所述的方法,其特征在于,所述下载与所述服务器版本对应的更新数据包之后还包括:
    将下载的与所述服务器版本对应的更新数据包存储至预设的存储区域;
    通过后台进程从所述预设的存储区域中获取与所述服务器版本对应的更新数据包进行安装。
  10. 根据权利要求9所述的方法,其特征在于,所述获取与所述目标应用对应的更新地址之前,还包括:
    在所述预设的存储区域中获取到与所述目标应用对应的未安装的更新数据包的情况下,使用所述未安装的更新数据包进行安装。
  11. 根据权利要求9所述的方法,其特征在于,所述通过后台进程从所述预设的存储区域中获取与所述服务器版本对应的更新数据包进行安装为:
    在满足预设安装条件的情况下,使用所述与所述服务器版本对应的更新数据包进行安装,所述预设安装条件包括指令触发条件、时间触发条件和调用触发条件中的至少一种。
  12. 一种应用程序的更新装置,其特征在于,包括:
    触控操作检测模块,用于检测针对终端桌面上的目标应用的图标输入的触控操作;
    更新地址确定模块,用于在所述触控操作满足预设触发条件的情况下,获取与所述目标应用对应的更新地址;
    服务器版本查找模块,用于通过网页客户端访问所述更新地址,查找与所述目标应用对应的服务器版本;
    应用更新模块,用于在所述目标应用的本地版本低于所述服务器版本的情况下,下载与所述服务器版本对应的更新数据包进行安装。
  13. 根据权利要求12所述的装置,其特征在于,所述触控操作检测模块还用于检测所述触控操作的按压时长;
    所述预设触发条件为:所述触控操作的按压时长大于或等于预设时长所述触控操作的按压时长大于或等于预设时长。
  14. 根据权利要求12或13所述的装置,其特征在于,所述触控操作检测模块还用于跟随所述触控操作的触控点位置设置所述目标应用的图标在所述桌面上的位置;检测所述目标应用的图标产生的位置偏移;
    所述预设触发条件至少包括:所述位置偏移小于或等于预设的偏移阈值。
  15. 根据权利要求12所述的装置,其特征在于,所述目标应用的数量为至少一个;
    所述装置还包括目标应用确定模块,用于检测在终端桌面上输入的框选操作,确定所述框选操作划定的框选区域;根据所述框选区域中包含的应用图标确定目标应用。
  16. 根据权利要求15所述的装置,其特征在于,所述目标应用确定模块还用于获取所述框选区域中包含的应用图标的应用类型,确定目标类型;在所述框选区域中包含的应用图标对应的应用中,获取应用类型为所述目标类型的应用作为目标应用。
  17. 根据权利要求15所述的装置,其特征在于,所述触控操作检测模块还用于检测在所述框选区域中输入的按压操作,所述按压操作为所述针对终端桌面上的目标应用的图标输入的触控操作。
  18. 根据权利要求12所述的装置,其特征在于,所述服务器版本查找模块还用于向后台进程发送消息,指示所述后台进程启动网页客户端访问所述更新地址;
    所述应用更新模块还用于通过所述后台进程监测所述网页客户端中与所述服务器版本对应的文件下载进程,在所述文件下载进程完成时,获取所述网页客户端的文件下载进程下载的与所述服务器版本对应的文件。
  19. 根据权利要求12所述的装置,其特征在于,所述装置还包括更新检测模块,用于获取已安装应用,通过网页客户端访问所述已安装应用的更新地址,查找与所述已安装应用对应的服务器版本;在所述已安装应用的本地版本低于该服务器版本的情况下,所述已安装应用为需要更新的已安装应用。
  20. 根据权利要求12所述的装置,其特征在于,所述应用更新模块还用于将下载的与所述服务器版本对应的更新数据包存储至预设的存储区域;通过后台进程从所述预设的存储区域中获取与所述服务器版本对应的更新数据包进行安装。
  21. 根据权利要求20所述的装置,其特征在于,所述装置还包括更新数据包查找模块,用于在所述预设的存储区域中获取到与所述目标应用对应的未安装的更新数据包的情况下,使用所述未安装的更新数据包进行安装。
  22. 根据权利要求20所述的装置,其特征在于,所述应用更新模块还用于在满足预设安装条件的情况下,使用所述与所述服务器版本对应的更新数据包进行安装,所述预设安装条件包括指令触发条件、时间触发条件和调用触发条件中的至少一种。
  23. 一种计算机可读存储介质,包括计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如权利要求1-11所述的方法。
  24. 一种终端,其特征在于,包括:
    包括处理器、存储器和触控显示屏,其中:
    所述存储器用于存储代码或指令;
    所述处理器调用存储在所述存储器中的指令执行如下操作:
    通过所述触控显示屏检测针对终端桌面上的目标应用的图标输入的触控操作;
    在所述触控操作满足预设触发条件的情况下,获取与所述目标应用对应的更新地址;
    通过网页客户端访问所述更新地址,查找与所述目标应用对应的服务器版本;
    在所述目标应用的本地版本低于所述服务器版本的情况下,下载与所述服务器版本对应的更新数据包。
  25. 根据权利要求24所述的终端,其特征在于,所述处理器通过所述触控显示屏检测针对终端桌面上的目标应用的图标输入的触控操作为:
    所述处理器通过所述触摸显示屏检测所述触控操作的按压时长;
    所述预设触发条件为:所述触控操作的按压时长大于或等于预设时长。
  26. 根据权利要求25所述的终端,其特征在于,所述处理器通过所述触摸显示屏检测针对终端桌面上的目标应用的图标输入的触控操作包括:
    所述处理器跟随所述触控操作的触控点位置设置所述目标应用的图标在所述桌面上的位置;检测所述目标应用的图标产生的位置偏移;
    所述预设触发条件至少包括:所述位置偏移小于或等于预设的偏移阈值。
  27. 根据权利要求24所述的终端,其特征在于,所述目标应用的数量为至少一个;
    所述处理器通过所述触控显示屏检测针对终端桌面上的目标应用的图标输入的触控操作之前还包括:
    所述处理器通过所述触控显示屏检测在终端桌面上输入的框选操作,确定所述框选操作划定的框选区域;根据所述框选区域中包含的应用图标确定目标应用。
  28. 根据权利要求27所述的终端,其特征在于,所述处理器根据所述框选区域中包含的应用图标确定目标应用为:
    所述处理器获取所述框选区域中包含的应用图标的应用类型,确定目标类型;在所述框选区域中包含的应用图标对应的应用中,获取应用类型为所述目标类型的应用作为目标应用。
  29. 根据权利要求26所述的终端,其特征在于,所述处理器通过所述触控显示屏检测针对终端桌面上的目标应用的图标输入的触控操作为:
    所述处理器通过所述触控显示屏检测在所述框选区域中输入的按压操作,所述按压操作为所述针对终端桌面上的目标应用的图标输入的触控操作。
  30. 根据权利要求24所述的终端,其特征在于,所述处理器通过网页客户端访问所述更新地址为:
    所述处理器向后台进程发送消息,指示所述后台进程启动网页客户端访问所述更新地址;
    所述处理器下载与所述服务器版本对应的更新数据包为:
    所述处理器通过所述后台进程监测所述网页客户端中与所述服务器版本对应的文件下载进程,在所述文件下载进程完成时,获取所述网页客户端的文件下载进程下载的与所述服务器版本对应的文件。
  31. 根据权利要求24所述的终端,其特征在于,所述处理器还用于获取已安装应用,通过网页客户端访问所述已安装应用的更新地址,查找与所述已安装应用对应的服务器版本;在所述已安装应用的本地版本低于该服务器版本的情况下,所述已安装应用为需要更新的已安装应用。
  32. 根据权利要求24所述的终端,其特征在于,所述处理器下载与所述服务器版本对应的更新数据包之后,还包括:
    所述存储器将下载的与所述服务器版本对应的更新数据包存储至预设的存储区域;所述处理器通过后台进程从所述预设的存储区域中获取与所述服务器版本对应的更新数据包进行安装。
  33. 根据权利要求32所述的终端,其特征在于,所述处理器获取与所述目标应用对应的更新地址之前,还包括:
    所述处理器在所述预设的存储区域中获取到与所述目标应用对应的未安装的更新数据包的情况下,使用所述未安装的更新数据包进行安装。
  34. 根据权利要求32所述的终端,其特征在于,所述处理器通过后台进程从所述预设的存储区域中获取与所述服务器版本对应的更新数据包进行安装为:
    在满足预设安装条件的情况下,所述处理器使用所述与所述服务器版本对应的更新数据包进行安装,所述预设安装条件包括指令触发条件、时间触发条件和调用触发条件中的至少一种。
PCT/CN2017/077675 2017-03-22 2017-03-22 应用程序的更新方法 WO2018170786A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/077675 WO2018170786A1 (zh) 2017-03-22 2017-03-22 应用程序的更新方法
CN201780009591.0A CN108701018A (zh) 2017-03-22 2017-03-22 应用程序的更新方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/077675 WO2018170786A1 (zh) 2017-03-22 2017-03-22 应用程序的更新方法

Publications (1)

Publication Number Publication Date
WO2018170786A1 true WO2018170786A1 (zh) 2018-09-27

Family

ID=63584979

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077675 WO2018170786A1 (zh) 2017-03-22 2017-03-22 应用程序的更新方法

Country Status (2)

Country Link
CN (1) CN108701018A (zh)
WO (1) WO2018170786A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153211A (zh) * 2019-06-28 2020-12-29 北京智明星通科技股份有限公司 游戏app的下载方法及系统
CN112542166A (zh) * 2020-11-27 2021-03-23 广州橙行智动汽车科技有限公司 一种语音交互的方法和装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347412B (zh) * 2019-06-27 2023-05-30 中国第一汽车股份有限公司 电子控制单元固件升级管理方法、装置、设备和存储介质
CN110750724B (zh) * 2019-10-24 2022-08-19 北京思维造物信息科技股份有限公司 数据处理方法、装置、设备和存储介质
CN113553050A (zh) * 2020-04-26 2021-10-26 华为技术有限公司 代码执行方法和设备
CN114222261B (zh) * 2022-02-16 2022-06-10 深圳市森歌数据技术有限公司 应用更新控制方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932777A (zh) * 2012-10-24 2013-02-13 华为终端有限公司 一种终端应用的更新方法和用户终端
CN103067484A (zh) * 2012-12-25 2013-04-24 深圳市天维尔通讯技术有限公司 一种自动升级应用程序的方法和系统
US9467533B2 (en) * 2014-03-21 2016-10-11 Ptc Inc. System and method for developing real-time web-service objects
CN106293327A (zh) * 2016-07-28 2017-01-04 西安酷派软件科技有限公司 终端应用程序快速操作方法及系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081474A (zh) * 2009-11-30 2011-06-01 英业达股份有限公司 触控屏幕的控制方法
KR101690595B1 (ko) * 2010-09-01 2016-12-28 엘지전자 주식회사 이동 단말기 및 이동 단말기의 아이콘 관리 방법
CN102480501A (zh) * 2010-11-26 2012-05-30 华为终端有限公司 应用资源下载方法及相关设备
CN102141882A (zh) * 2010-12-07 2011-08-03 华为终端有限公司 触摸屏终端上框选操作的实现方法及触摸屏终端
CN102654877B (zh) * 2011-03-04 2015-06-24 联想(北京)有限公司 数据管理方法和数据管理设备
CN103337024A (zh) * 2013-05-27 2013-10-02 北京百纳威尔科技有限公司 应用软件获取方法、浏览器和应用商店服务器
CN103500062A (zh) * 2013-09-17 2014-01-08 华为技术有限公司 一种终端、终端控制方法及装置
CN103699405B (zh) * 2013-12-05 2018-07-03 广东欧珀移动通信有限公司 智能终端快捷升级应用程序的方法及装置
CN104375856A (zh) * 2014-09-24 2015-02-25 腾讯科技(深圳)有限公司 应用更新方法和装置
CN105573587B (zh) * 2015-12-22 2019-07-30 魅族科技(中国)有限公司 一种图标管理的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932777A (zh) * 2012-10-24 2013-02-13 华为终端有限公司 一种终端应用的更新方法和用户终端
CN103067484A (zh) * 2012-12-25 2013-04-24 深圳市天维尔通讯技术有限公司 一种自动升级应用程序的方法和系统
US9467533B2 (en) * 2014-03-21 2016-10-11 Ptc Inc. System and method for developing real-time web-service objects
CN106293327A (zh) * 2016-07-28 2017-01-04 西安酷派软件科技有限公司 终端应用程序快速操作方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153211A (zh) * 2019-06-28 2020-12-29 北京智明星通科技股份有限公司 游戏app的下载方法及系统
CN112542166A (zh) * 2020-11-27 2021-03-23 广州橙行智动汽车科技有限公司 一种语音交互的方法和装置

Also Published As

Publication number Publication date
CN108701018A (zh) 2018-10-23

Similar Documents

Publication Publication Date Title
WO2018170786A1 (zh) 应用程序的更新方法
JP7018463B2 (ja) アプリケーションコンテナを使用するコードおよび従属データの送達の管理
CN108958844B (zh) 一种应用程序的控制方法及终端
EP3493059B1 (en) Application data migration method and device
CN106708557B (zh) 一种针对终端应用的更新处理方法及装置
CN108984225B (zh) 快速启动寄宿应用的方法及设备
EP2732380B1 (en) Mobile web browser for pre-loading web pages
CN108363528B (zh) 应用页面的启动方法、装置、存储介质及电子设备
US8386955B1 (en) User-optimized content for web browsing windows
US10712915B2 (en) Information presentation using a client on a terminal
TW201640342A (zh) 應用程式頁面快速存取方法及應用其的行動終端
CN108287917B (zh) 文件打开方法、装置、存储介质及电子设备
CN111427596B (zh) 一种软件升级的方法、装置及终端设备
CN109522500B (zh) 网页显示方法、装置、终端和存储介质
CN106201610A (zh) Web应用访问终端原生功能的方法及装置
WO2019165828A1 (zh) 处理方法、存储介质及电子设备
CN109117153B (zh) 应用程序的处理方法、装置、终端和存储介质
CN108334330B (zh) 应用卸载方法、装置、存储介质及电子设备
CN106599257B (zh) 一种页面快捷方式的实现方法及电子设备
CN106302531B (zh) 安全防护方法、装置及终端设备
US9910662B2 (en) Selectively migrating applications during an operating system upgrade
CN111538922B (zh) 链接跳转方法、应用客户端、设备及存储介质
CN108563476B (zh) 应用程序运行方法、装置、存储介质及电子设备
WO2021057411A1 (zh) 一种组件加载方法、装置及系统
US20140282057A1 (en) System for applying applications of different operating systems in one electronic device and method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17902569

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17902569

Country of ref document: EP

Kind code of ref document: A1