WO2017028572A1 - 程序信息的推送方法及装置 - Google Patents

程序信息的推送方法及装置 Download PDF

Info

Publication number
WO2017028572A1
WO2017028572A1 PCT/CN2016/082380 CN2016082380W WO2017028572A1 WO 2017028572 A1 WO2017028572 A1 WO 2017028572A1 CN 2016082380 W CN2016082380 W CN 2016082380W WO 2017028572 A1 WO2017028572 A1 WO 2017028572A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
open
file
recommended
default
Prior art date
Application number
PCT/CN2016/082380
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 腾讯科技(深圳)有限公司
Publication of WO2017028572A1 publication Critical patent/WO2017028572A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of software, and in particular to a method and apparatus for pushing program information.
  • the embodiment of the invention provides a method and a device for pushing program information, so as to at least solve the technology in the prior art that the file cannot be opened normally because the program for opening the file is not installed. problem.
  • a method for pushing program information including: acquiring a file type by scanning a file at a predetermined location; and querying whether a system default default opening for opening a file exists according to a type of the file
  • the program opens the recommended open file of the file that allows the open type when the default open program is not queried; pushes the recommended information corresponding to the recommended open program to the front-end application for display.
  • a device for pushing program information including: a first acquiring module, configured to acquire a file type by scanning a file at a predetermined location; and a query module, configured to The type query has a default default open program for opening a file; the second obtaining module is configured to obtain a recommended open program for allowing a file of an open type when the default open program is not queried; the first push module is configured to: Push the recommendation information corresponding to the recommended open program to the front-end application for display.
  • the file is obtained by scanning a predetermined location, and the type of the file is obtained. According to the type of the file, it is queried whether there is a default default open program for opening the file; when the default open program is not queried, the permission is obtained.
  • Open the recommended open file of the file push the recommended information corresponding to the open program to the front-end application for display, and use the first obtaining module to obtain the file type by scanning the file at the predetermined location; Query whether there is a default default open program for opening a file according to the type of the file; and a second obtaining module, configured to obtain a recommended open program of the file of the open type when the default open program is not queried; the first push The module is configured to push the recommendation information corresponding to the recommended open program to the front-end application for display, thereby achieving the purpose of facilitating the user and improving the user experience, thereby implementing a technology for generating recommendation information for opening the program according to the type of the scanned file. Effect, which solves the prior art No installation program for opening files, leading to technical problems the file can not be opened properly.
  • FIG. 1 is a block diagram showing the hardware structure of a computer terminal for running a picture matching software according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for pushing program information according to a first embodiment of the present invention
  • FIG. 3 is a detailed flowchart of an optional method for pushing program information according to a first embodiment of the present invention
  • FIG. 4 is a schematic diagram of an optional prompt window according to a first embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an optional prompt window according to a first embodiment of the present invention.
  • FIG. 6 is a detailed flowchart of an optional method for pushing program information according to a first embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a program information pushing apparatus according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic structural diagram of an optional program information pushing apparatus according to Embodiment 2 of the present embodiment.
  • FIG. 9 is a schematic structural diagram of an apparatus for pushing program information according to an embodiment of the present invention.
  • a method embodiment of a method for pushing program information is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 1 is a hardware block diagram of a computer terminal of a method for pushing program information according to an embodiment of the present invention.
  • computer terminal 10 may include one or more (only one shown) processor 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA)
  • processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA)
  • a memory 104 for storing data
  • a transmission module 106 for communication functions.
  • computer terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the memory 104 can be used to store software programs and modules of the application software, such as program instructions/modules corresponding to the push method of the program information in the embodiment of the present invention, and the processor 102 executes by executing the software programs and modules stored in the memory 104.
  • Various function applications and data processing that is, a method of pushing the above program information.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be connected via a network To the computer terminal 10. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is for receiving or transmitting data via a network.
  • the network specific examples described above may include a wireless network provided by a communication provider of the computer terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 2 is a flow chart of a method of pushing program information according to a first embodiment of the present invention.
  • an optional solution of the computer terminal for executing the push method of the program information includes the following implementation steps:
  • step S21 the type of the file is obtained by scanning the file of the predetermined location.
  • the predetermined location may be one or more storage locations for storing files in the operating system, and the type of the file in the predetermined location may be obtained by scanning the predetermined location.
  • the predetermined location may be a local storage location in the system, or a network storage location of the network storage after the system is connected to the network storage, and of course, the external storage externally after the system is connected to the external storage.
  • the storage location may of course include other preset locations, which are not described herein.
  • the predetermined location is a storage location of the download client for storing the downloaded file
  • the downloaded file may be the file being downloaded or the downloaded file.
  • the portion of the file that has been downloaded is saved as a temporary file containing at least one original file name and type in the file name.
  • the temporary file is converted to a file with the same name, type, and content as the original file. Therefore, once the download client starts downloading the file, the name of the temporary file can be passed. Said to perform the analysis, or directly obtain the type of the file from the file name after the download is completed.
  • step S23 it is queried according to the type of the file whether there is a default default open program for opening the file.
  • step S23 when a program is installed on the system, the program usually registers the type that it can open in the system, and registers it as the default open program used by the system to open the file of that type. So that when you open this type of file, you don't need to ask the user how to open the file of this type, the system can directly call the program to open the file. Therefore, by step S23, when the type of the file at the predetermined location is acquired, it is checked whether there is a default open program corresponding to the file type that has been registered in the system.
  • the above-mentioned system may be an operating system or a system for synchronizing user usage habits through the cloud technology, and may be other types of systems, which are not specifically limited herein.
  • the system is an operating system
  • the local system configuration is queried to determine whether there is a default open program corresponding to the type of the file, for example, a Windows system, an Android system, or the like.
  • the above system is a system for synchronizing user usage habits through cloud technology, it is determined whether there is a default open program corresponding to an unseen type by querying a system configuration stored in the cloud.
  • step S25 when the default open program is not queried, the recommended open program of the file of the open type is obtained.
  • the system configuration is queried through step S25, and when the default open program corresponding to the type of the file is not queried, the recommended open program for opening the file of the type is obtained.
  • the recommended open program is a program that allows files of the above type to be opened.
  • the recommended open program can be obtained from the web server, or can be cached locally beforehand, and obtained directly from the local when the local client does not query the default open program.
  • the manner in which the network server stores the recommended open program includes at least the following two methods: mode one, which can be directly stored in the network server. At least one open program for opening each type of file is stored; and second, a mapping table for opening each type of recommended open program information and a storage address is stored in the network server.
  • the network server When the first method is used to obtain the recommended open program from the server, when the local client does not query the default open program, and sends the file type to the network server, the network server directly opens the network server according to the type of the file corresponding to the type. The program returns to the local client as a recommended open program, thereby implementing the function of obtaining a recommended open program that allows open type files.
  • the recommended open program is directly stored in the network server, which has high reliability, but has high requirements on the processing performance and storage space of the network server.
  • the network server queries the mapping table for the recommended open program corresponding to the type according to the type of the file.
  • the information is returned to the local client by the storage address corresponding to the recommended open program, and the local client downloads the recommended open program according to the returned storage address, thereby implementing the function of obtaining the recommended open program of the file of the open type.
  • the network server in the foregoing mode 2 only stores the mapping table of the recommended open program information and the storage address, and does not directly store the open program.
  • the local client when pre-cached locally, when the local client does not query the default open program and directly obtains from the local, the local client will use the local system, the network or the network server idle period, and will be used to open the recommendation of the predetermined type of file.
  • the open program is cached from the web server side to a predetermined local location for storage.
  • the local client does not query the default open program, and directly obtains the pre-cached recommended open program from the local, the function of obtaining the recommended open program of the file of the open type can be realized.
  • the local system After the local client is installed to the local, the local system is first queried, and the type of the file corresponding to the default open program in the system is obtained, or the default open program in the system and the recommended open program stored in the network server are stored.
  • a recommendation opening program corresponding to the above type is downloaded from the web server to a predetermined local location during the idle period.
  • the download client downloads a file of the above type, It can be obtained directly from a local location.
  • step S27 the recommendation information corresponding to the recommendation opening program is pushed to the front end application for display.
  • step S27 recommendation information is generated according to the recommendation opening program, and the recommendation information is pushed to the front-end application for display, wherein the recommendation information may include a name of the recommended opening program, a download amount, a program size, and the like for opening the program to the recommendation. Describe the information.
  • the front-end application may be the download client itself or the program management software, which is not further limited herein.
  • the manner for displaying also includes various types, for example, prompting a recommended opening program corresponding to the type of the file in the form of a pop-up window.
  • the content in the pop-up window may include recommendation information to prompt the user to download and install the recommendation opening program, or may include a download and installation prompt button generated directly according to the recommended information.
  • a computer housekeeper installed in the Windows operating system is taken as an example for detailed description.
  • FIG. 3 first, the file type of the downloaded file is obtained, and the query is performed in the configuration file of the operating system according to the file type, and the default open program for opening the file type file exists in the operating system.
  • the program information of the default open program is passed through the prompt window of the computer housekeeper, and the generated in the prompt window is opened by the default open program.
  • the computer housekeeper directly calls the system to open the program by default to open the download file.
  • the recommendation information of the recommendation program is passed through the prompt window of the computer housekeeper, and a button for opening the download file by the recommendation program is generated in the prompt window to guide the user to install and open the file of the file type by the recommendation program.
  • the computer housekeeper installs the recommended program and sets the recommended program as the new default in the system. Open the program and open the download file with the recommender.
  • the file is a downloading client that is downloading or downloading the completed file, and the number of the files is at least two, after the file is obtained by scanning the file at the predetermined location in step S21,
  • the above methods also include:
  • step S211 it is determined whether the types of files simultaneously downloaded are the same.
  • step S213 when the types of the simultaneously downloaded files are the same, the step of executing the execution of the default open program for opening the file by the system according to the type of the file is entered.
  • step S211 to step S213 when the number of files simultaneously downloaded by the download client exceeds one, the type of the downloaded file is judged to determine whether they are the same.
  • step S23 is executed to query whether there is a default default open program for opening the file according to the type of the file.
  • the download type is different, after the file download in the download client is completed, information for prompting to open the folder stored in the file can be directly generated and pushed to the front-end application for display.
  • the recommended open programs may be obtained according to the type of the downloaded files, and the recommended information corresponding to all the recommended open programs is pushed to the front-end application for display.
  • the download client refers to the application used to download files. Usually the download client downloads the file from the server to the local storage based on the server address where the file is stored.
  • the download client may be a function module for implementing a download function in a web browser, or may be a separate application specifically for downloading, which is not specifically limited herein.
  • the download method of the download client may also be any one of the existing download methods, for example, P2P mode, FTP mode, HTTP mode, and the like.
  • a computer housekeeper installed in the Windows operating system is taken as an example for detailed description.
  • the computer housekeeper judges the number of files downloaded at the same time. When the number of files downloaded at the same time is greater than one, it is first determined whether the files downloaded at the same time are of the same type. When the files downloaded at the same time are not the same type of files, Open the folder where the file is located. When the files downloaded at the same time are files of the same type, the system performs a query according to the type of the file, and queries whether there is a default open program for opening the file type file in the operating system.
  • the program information of the default open program is passed through the prompt window of the computer housekeeper, and the file opened by the default open program is simultaneously opened in the prompt window.
  • Button When there is no default open program for opening the file type file in the operating system, it is determined that the type of the file is a type unknown to the system, and the recommended information of the recommended program is passed through the prompt window of the computer housekeeper and generated in the prompt window. The recommender also opens the button for the above downloaded file at the same time.
  • the number of downloaded files is judged, and when the number of downloaded files exceeds one, the type of the downloaded file is further judged to achieve the purpose of different processing for different situations, thereby improving the accuracy of obtaining the recommended open program. Sex.
  • the recommended open program for obtaining the file of the open type is included, including:
  • Step S51 Obtain program description information of at least one open program of the file of the open type, wherein the program description information includes one or more of: download amount, popularity, favorable rate, and program size.
  • Step S53 Filter the open program according to the program description information according to the preset filter condition, and determine a predetermined number of open programs as the recommended open program.
  • step S51 to step S53 at least one program description information of an open program that can be used to open the file of the above type is first acquired according to the type of the file.
  • the open program is filtered by the program description information.
  • a predetermined number of recommended open programs are determined by screening.
  • the screening condition can be set in advance according to the user's preference; of course, it can also be set in the system by default.
  • the download amount, popularity, favorable rate, program size and other information to sort the open program determine the preset recommended open program; of course, you can also pre-set some open programs as the default recommended program set, when the access is allowed to open
  • the program of the type is recommended to open the program, the recommended open program corresponding to the type is directly obtained from the set of recommended programs.
  • the open program is filtered according to the program description information, and the predetermined number of open programs are determined as the recommended open program, including:
  • Step S531 calculating a recommended value corresponding to the open program according to the program description information of the open program.
  • Step S533 determining, according to the recommended value, a preset number of open programs with the highest recommended value as the recommended open program.
  • the opening program in the program description information is used to perform weighting operations corresponding to various parameters to obtain recommended values corresponding to the respective open programs.
  • the open program is sorted in descending order according to the recommended value, and then the preset number of open programs with the highest recommended value are used as the recommended open program.
  • the preset number may be one or multiple. When the preset number is one, the open program with the highest recommended value can be directly used as the recommended open program.
  • the predetermined number of recommended opening programs acquired may be pushed to the user in the form of a list. To guide the user to install any of the recommended open programs.
  • step S23 according to the type of the file, whether there is a default default open program for opening the file, when the default open program is queried, the method further includes:
  • Step S241 acquiring program description information of at least one open program of the file allowing the open type.
  • Step S243 calculating a recommended value corresponding to the open program according to the program description information of the open program.
  • Step S245 Determine, according to the recommended value, a preset number of open programs with the highest recommended value as the recommended open program.
  • step S247 the default open program is compared with the recommended open program, and it is determined whether the default open program is the same as the recommended open program.
  • step S249 when the default open program is different from the recommended open program, the recommended information corresponding to the recommended open program is pushed to the front-end application for display.
  • the processing is performed.
  • the default open program is the same as the obtained recommended open program.
  • the recommended information corresponding to the open open program is pushed to the front-end application for display to guide the user to install the recommended open program.
  • the default opening program and the recommended open program are the same judgment standard, which can determine whether the default open program and the recommended open program are the same program, or after determining the same program, determine the version number and recommendation of the default open program.
  • the version number of the open program is the same.
  • the default open program and the recommended open program are the same program software, so that the software with high recommendation value and good feedback from the user is recommended to the user, and the user is guided to install it to improve the user's use.
  • the method further includes:
  • Step S28 obtaining a recommendation opening program according to the recommendation information.
  • step S29 the obtained recommended open program is set as the default default open program of the system.
  • the recommendation opening program is acquired according to the recommendation information, and the recommendation opening program is installed into the system, and the recommendation opening program is registered in the system as a default opening program of the file of the corresponding type. Therefore, in the case that there is no default open program corresponding to the type of the downloaded file in the system, the download file can be directly opened by using the recommended open program to improve the user experience.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • the device includes: a first obtaining module 31, a query module 33, and a second acquiring. Module 35 and first push module 37.
  • the first obtaining module 31 is configured to obtain a file type by scanning a file at a predetermined location, and the query module 33 is configured to query, according to the type of the file, whether a system default is used for playing The default opening program of the open file; the second obtaining module 35 is configured to obtain a recommended open program of the file of the open type when the default open program is not queried; the first pushing module 37 is configured to recommend the recommended open program The information is pushed to the front-end application for display.
  • the first obtaining module 31, the querying module 33, the second obtaining module 35, and the first pushing module 37 can obtain the recommended opening program corresponding to the type of the file, and generate the recommended information according to the recommended opening program in the front-end application. Display. Therefore, the technical effect of generating the recommendation information for opening the program according to the type of the scanned file is achieved, and the purpose of facilitating the user and improving the user experience is achieved, and the program for opening the file is not installed in the prior art, thereby causing The technical issue that the file does not open properly.
  • the device further includes: a determining module 321.
  • the determining module 321 is configured to determine whether the types of the simultaneously downloaded files are the same.
  • the query module 33 performs a query according to the type of the file to check whether there is a default default open program for opening the file. A step of.
  • the determining module 321 determines the type of the downloaded file when the number of files downloaded by the downloading client exceeds one, and determines whether the file is the same.
  • the downloaded types are the same, it is executed by the query module 33 to query whether there is a system default default open program step for opening the file according to the type of the file.
  • the download type is different, after the file download in the download client is completed, information for prompting to open the folder stored in the file can be directly generated and pushed to the front-end application for display.
  • the recommended open programs may be obtained according to the type of the downloaded files, and the recommended information corresponding to all the recommended open programs is pushed to the front-end application for display.
  • the number of downloaded files is judged, and when the number of downloaded files exceeds one, the type of the downloaded file is further judged to achieve the purpose of different processing for different situations, thereby improving the accuracy of obtaining the recommended open program. Sex.
  • the foregoing second obtaining module 35 includes: a sub-acquisition module 51 and a sub-screening module 53.
  • the sub-acquisition module 51 is configured to acquire program description information of at least one open program that allows an open type of file, where the program description information includes one or more of: download amount, popularity, favorable rate, and program size;
  • the sub-screening module 53 is configured to filter the open program according to the program description information according to the preset filter condition, and determine a predetermined number of open programs as the recommended open program.
  • the program description information of at least one open program that can be used to open the file of the above type is first acquired according to the type of the file.
  • the open program is filtered by the program description information.
  • a predetermined number of recommended open programs are determined by screening.
  • the screening condition may be set in advance according to the user's preference; of course, the default setting may be set in the system according to the download amount, the popularity, the favorable rate, the program size, and the like, and the predetermined recommended opening is determined after the opening program is sorted.
  • the program of course, some open programs may be used as a default recommended program set.
  • the recommended open program for the file of the open type is obtained, the recommended open program corresponding to the type is directly obtained from the recommended program set.
  • the sub-screening module 53 includes a sub-calculation module 531 and a sub-determination module 533.
  • the sub-calculation module 531 is configured to calculate a recommended value corresponding to the open program according to the program description information of the open program, and the sub-determination module 533 is configured to determine, according to the recommended value, a preset number of open programs with the highest recommended value as the recommended Open the program.
  • the sub-calculation module 531 and the sub-determination module 533 use the open program in the program description information to perform weighting operations corresponding to various parameters to obtain recommended values corresponding to the respective open programs.
  • the open program is sorted in descending order according to the recommended value, and then the preset number of open programs with the highest recommended value are used as the recommended open program.
  • the preset number may be one or multiple. When the preset number is one, the open program with the highest recommended value can be directly used as the recommended open program.
  • the predetermined number of recommended opening programs acquired may be pushed to the user in the form of a list. To guide the user to install any of the recommended open programs.
  • the foregoing apparatus further includes: a third obtaining module 341, a calculating module 343, a determining module 345, a comparing module 347, and a second pushing module 349.
  • the third obtaining module 341 is configured to acquire program description information of at least one open program that allows the file of the open type; the calculating module 343 is configured to calculate a recommended value corresponding to the open program according to the program description information of the open program; The module 345 is configured to determine, according to the recommended value, a preset number of open programs with the highest recommended value as the recommended open program; the comparison module 347 is configured to compare the default open program with the recommended open program, and determine whether the default open program is The recommended open program is the same; when the default open program is different from the recommended open program, the recommended information corresponding to the recommended open program is pushed to the front-end application for display by the second push module 349.
  • the foregoing third obtaining module 341, the calculating module 343, the determining module 345, the comparing module 347, and the second pushing module 349 are performed when the system default default opening program for opening the file exists in the system. deal with.
  • the obtained recommendation open program By comparing the obtained recommendation open program with the default open program in the system, it is determined whether the default open program is the same as the obtained recommended open program.
  • the recommended information corresponding to the open open program is pushed to the front-end application for display to guide the user to install the recommended open program.
  • the default opening program and the recommended open program are the same judgment standard, which can determine whether the default open program and the recommended open program are the same program, or after determining the same program, determine the version number and recommendation of the default open program.
  • the version number of the open program is the same.
  • the foregoing apparatus further includes: a fourth obtaining module 38 and a setting module 39.
  • the fourth obtaining module 38 is configured to obtain a recommended open program according to the recommended information.
  • the setting module 39 is configured to set the obtained recommended open program as a default default open program of the system.
  • the recommended opening program is obtained according to the recommendation information, and the recommended opening program is installed into the system, and the recommended opening program is registered in the system as the default of the corresponding type file. Open the program. Therefore, in the case that there is no default open program corresponding to the type of the downloaded file in the system, the download file can be directly opened by using the recommended open program to improve the user experience.
  • Embodiments of the present invention also provide a storage medium.
  • the storage medium may be used to save the program code executed by the pushing method of the program information in the first embodiment.
  • the foregoing storage medium 402 may be located in at least one of a plurality of network devices in a network of the computer.
  • the storage medium 402 is configured to store program code for performing the following steps: acquiring a type of a file downloaded by the download client, wherein the downloaded file is a file being downloaded or downloaded; Query whether there is a default default open program for opening a file according to the type of the file; when the default open program is not queried, obtain a recommended open program for the file of the open type; push the recommended information corresponding to the recommended open program to the front end Application display
  • the storage medium 402 is also arranged to store program code for performing the following steps: When the number of downloaded files is at least two, after obtaining the type of the file downloaded by the download client, the method further includes: determining whether the types of the simultaneously downloaded files are the same; and when the types of the simultaneously downloaded files are the same, entering the execution basis
  • the file type query has the system default step for opening the file's default opener.
  • the storage medium 402 is further configured to store program code for performing the following steps: when the default open program is not queried, obtaining a recommended open program for allowing a file of the open type, including: obtaining a file of an open type allowed At least one program description information of the open program, wherein the program description information includes one or more of: download amount, popularity, favorable rate, program size; according to preset screening conditions, open the program according to the program description information Filter to determine a predetermined number of open programs as recommended open programs.
  • the storage medium 402 is further configured to store program code for performing the following steps: screening the open program according to the program description information according to a preset filter condition, and determining a predetermined number of open programs as the recommended open program, The method includes: calculating, according to the program description information of the open program, a recommended value corresponding to the open program; and determining, according to the recommended value, a preset number of open programs with the highest recommended value as the recommended open program.
  • the storage medium 402 is further configured to store program code for performing the following steps: after querying whether the system default default open program for opening the file exists according to the type of the file, when the default open program is queried,
  • the method further includes: obtaining program description information of at least one open program of the file allowing the open type; calculating a recommended value corresponding to the open program according to the program description information of the open program; and determining a preset number with the highest recommended value according to the recommended value Open the program as a recommended open program; compare the default open program with the recommended open program, determine whether the default open program is the same as the recommended open program; when the default open program is different from the recommended open program, it will recommend opening the recommended information corresponding to the program Push to the front-end application for display.
  • the storage medium 402 is further configured to store program code for performing the following steps: after the recommendation information corresponding to the recommended open program is pushed to the front-end application for display, the method further includes: obtaining the recommended open program according to the recommended information. ; will get the recommended open program Set as the system default default open program.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the integrated unit in the above embodiment if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in the above-described computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause one or more computer devices (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the disclosed client may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place. Square, or it can be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种程序信息的推送方法及装置。其中,该方法包括:通过扫描预定位置的文件,获取文件的类型(S21);根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序(S23);当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序(S25);将推荐打开程序对应的推荐信息推送给前端应用进行显示(S27)。解决了现有技术中因未安装用于打开文件的程序,导致该文件无法正常打开的技术问题。

Description

程序信息的推送方法及装置
本申请要求2015年8月14日提交至中国知识产权局的,申请号为201510502022.2,名称为“程序信息的推送方法及装置”的中国发明专利申请的优先权,其全部公开内容结合于此作为参考。
技术领域
本发明涉及软件领域,具体而言,涉及一种程序信息的推送方法及装置。
背景技术
近年来,随着计算机、智能终端的普及,软件行业也一同快速的发展。其中,从应用程序的类型和数量上即可体现出来。
目前,随着应用程序的类型和数量的快速增长,虽然使用户在选择的时候,有了更大的选项空间。但是,有些软件公司在开发应用程序的同时,会为该应用程序设置与其对应的特有类型的文件,例如:pdf文档文件、word文档文件等。对于这些特有类型的文件,在没有配置与其对应的应用程序时,在系统中并没有用于打开上述类型文件的应用程序。因此,如果此时下载了该类型的文件,文件将无法被打开。此时,用户还要根据文件的类型,下载或购买用于打开此类型的应用程序。这无疑将影响用户的正常使用,降低了工作效率。
针对现有技术中因未安装用于打开文件的程序,导致该文件无法正常打开的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种程序信息的推送方法及装置,以至少解决现有技术中因未安装用于打开文件的程序,导致该文件无法正常打开的技术 问题。
根据本发明实施例的一个方面,提供了一种程序信息的推送方法,包括:通过扫描预定位置的文件,获取文件的类型;根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序;当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序;将推荐打开程序对应的推荐信息推送给前端应用进行显示。
根据本发明实施例的另一方面,还提供了一种程序信息的推送装置,包括:第一获取模块,用于通过扫描预定位置的文件,获取文件的类型;查询模块,用于根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序;第二获取模块,用于当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序;第一推送模块,用于将推荐打开程序对应的推荐信息推送给前端应用进行显示。
在本发明实施例中,采用通过扫描预定位置的文件,获取文件的类型;根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序;当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序;将推荐打开程序对应的推荐信息推送给前端应用进行显示的方式,通过第一获取模块,用于通过扫描预定位置的文件,获取文件的类型;查询模块,用于根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序;第二获取模块,用于当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序;第一推送模块,用于将推荐打开程序对应的推荐信息推送给前端应用进行显示,达到了方便用户,提升用户体验的目的,从而实现了根据扫描到的文件的类型生成用于打开程序的推荐信息的技术效果,进而解决了现有技术中因未安装用于打开文件的程序,导致该文件无法正常打开的技术问题。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一 部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是本发明实施例的一种运行图片的匹配软件的计算机终端的硬件结构框图;
图2是根据本发明实施例一的一种程序信息的推送方法的流程图;
图3是根据本发明实施例一的一种可选的程序信息的推送方法的详细流程图;
图4是根据本发明实施例一的一种可选的提示窗口的示意图;
图5是根据本发明实施例一的一种可选的提示窗口的示意图;
图6是根据本发明实施例一的一种可选的程序信息的推送方法的详细流程图;
图7是根据本法实施例二的一种程序信息的推送装置的结构示意图;
图8是根据本法实施例二的一种可选的程序信息的推送装置的结构示意图;以及
图9是根据本法实施例二的一种可选的程序信息的推送装置的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或 先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
实施例1
根据本发明实施例,提供了一种程序信息的推送方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图1是本发明实施例的一种程序信息的推送方法的计算机终端的硬件结构框图。如图1所示,计算机终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输模块106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。
存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的程序信息的推送方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的程序信息的推送方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接 至计算机终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
在上述运行环境下,本申请提供了如图2所示的程序信息的推送方法。图2是根据本发明实施例一的程序信息的推送方法的流程图。
如图2所示,用于执行该程序信息的推送方法的计算机终端一种可选的方案包括如下实施步骤:
步骤S21,通过扫描预定位置的文件,获取文件的类型。
具体的,在操作系统中,预定位置可以是操作系统中一个或多个用于存储文件的存储位置,可以通过对预定位置进行扫描,从而获取预定位置内的文件的类型。
其中,在实际应用当中,预定位置可以是系统中的本地存储位置,也可以是在系统连接网络存储器后,网络存储器的网络存储位置,当然还可以是在系统连接外部存储器后,外部存储的外部存储位置,当然还可以包括其他的预设位置,此处不做赘述。
作为一种可选的实施例,预定位置为下载客户端用于存储下载的文件的存储位置,而下载的文件可以为正在下载的文件或下载完成的文件。当下载客户端处于下载文件的过程中,会将文件已经下载的部分,保存为至少一个文件名称内至少包含原始文件名称和类型的临时文件。当下载完成后,再将临时文件在转换为与原始文件的名称、类型、内容都相同的文件。因此,一旦下载客户端开始对文件进行下载时,即可通过对临时文件的名 称进行分析,或者从下载完成后的文件名称中直接获取该文件的类型。
步骤S23,根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序。
具体的,在系统中安装程序时,该程序通常会将其可以打开的类型在系统中进行注册,注册为系统用于打开该类型文件的默认打开程序。以便在打开该类型的文件时,无需询问用户如何打开该类型文件,系统就可以直接调用该程序将文件打开。因此,通过步骤S23,在获取到预定位置的文件的类型时,通过查询系统中是否存在已经注册过的与该文件类型对应的默认打开程序。
其中,上述的系统既可以是操作系统,也可以是用于通过云技术同步用户使用习惯的系统,当然还可以是其它类型的系统,此处不做具体限定。当上述系统为操作系统时,通过对本地的系统配置进行查询,确定是否存在与文件的类型对应的默认打开程序,例如:Windows系统、Android系统等。当上述系统为用于通过云技术同步用户使用习惯的系统时,通过对存储于云端的系统配置进行查询,确定是否存在与未见的类型对应的默认打开程序。
步骤S25,当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序。
具体的,通过步骤S25在对系统配置进行查询,在未查询到与该文件的类型对应的默认打开程序时,获取用于打开该类型的文件的推荐打开程序。其中,推荐打开程序是允许打开上述类型的文件的程序。
在实际应用当中,推荐打开程序可以从网络服务器中获取,也可以通过预先缓存于本地,在本地客户端未查询到默认打开程序时直接从本地获取。如下,对上述两种情况进行详细说明:
其中,当推荐打开程序从网络服务器中获取时,网络服务器存储推荐打开程序的方式至少包括如下两种:方式一、在网络服务器中可以直接存 储至少一个用于打开每种类型的文件的打开程序;方式二、在网络服务器中存储用于打开每种类型的推荐打开程序信息与存储地址的映射表。
利用方式一从服务器中获取推荐打开程序时,当本地客户端未查询到默认打开程序,向网络服务器发送文件的类型,网络服务器直接根据文件的类型将网络服务器中存储的与该类型对应的打开程序作为推荐打开程序返回至本地客户端,从而实现获取允许打开类型的文件的推荐打开程序的功能。上述方式一将推荐打开程序直接存储于网络服务器,具有较高的可靠性,但对网络服务器的处理性能和存储空间有较高的需求。
利用方式二从服务器中获取推荐打开程序时,当本地客户端未查询到默认打开程序,向网络服务器发送文件的类型,网络服务器根据文件的类型在映射表中查询与该类型对应的推荐打开程序信息,并将推荐打开程序对应的存储地址返回至本地客户端,本地客户端根据返回的存储地址下载推荐打开程序,从而实现获取允许打开类型的文件的推荐打开程序的功能。上述方式二中的网络服务器只存储推荐打开程序信息与存储地址的映射表并不直接存储打开程序,在接收到本地客户端发送的文件的类型时,只负责根据文件的类型查询与之相应的推荐打开程序的存储地址,降低了对服务器处理性能和存储空间的需求。
其中,当通过预先缓存于本地,在本地客户端未查询到默认打开程序时直接从本地获取时,本地客户端在本地系统、网络或者网络服务器空闲时段,将用于打开预定类型的文件的推荐打开程序从网络服务器端缓存至预定的本地位置中进行存储。当本地客户端未查询到默认打开程序,直接从本地获取预先缓存的推荐打开程序,即可实现获取允许打开类型的文件的推荐打开程序的功能。其中,可以在本地客户端安装至本地后,先对本地的系统进行查询,查询获取系统中没有默认打开程序对应的文件的类型,或系统内的默认打开程序与网络服务器端存储的推荐打开程序不一致的文件的类型。将与上述类型对应的推荐打开程序,在空闲时段从网络服务器下载至预定的本地位置。当下载客户端下载与上述类型的文件时,即 可直接从本地位置进行获取。通过上述方法,不仅可以提升了获取的速度和用户体验,还能对本地系统、网络或者网络服务器的空闲时段进行合理的利用。
当然,还可以以其他的形式对推荐打开程序进行获取,此处不做详细赘述。
步骤S27,将推荐打开程序对应的推荐信息推送给前端应用进行显示。
具体的,通过步骤S27,根据推荐打开程序生成推荐信息,并将推荐信息推送至前端应用进行显示,其中,推荐信息可以包括推荐打开程序的名称、下载量、程序大小等用于对推荐打开程序进行描述的信息。其中,前端应用可以是下载客户端本身,也可以是程序管理软件,此处不做进一步限定。用于显示的方式也包括多种,例如:以弹出视窗的形式提示与文件的类型对应的推荐打开程序。弹出视窗中的内容,可以包括推荐信息以提示用户自行下载并安装推荐打开程序,也可以包括直接根据推荐信息生成的下载、安装的提示按钮。
在实际应用中,以安装于Windows操作系统中的电脑管家为例进行详细说明。如图3所示,首先,获取下载文件的文件类型,并根据该文件类型在操作系统的配置文件中进行查询,查询操作系统中是否存在用于打开该文件类型文件的默认打开程序。当操作系统中存在用于打开该文件类型文件的默认打开程序时,如图4所示,将默认打开程序的程序信息通过电脑管家的提示窗口,并在提示窗口中生成通过默认打开程序打开该下载文件的按钮,以提示用户以默认打开程序打开该文件类型的文件。当用户点击该按钮时,电脑管家直接调用系统默认打开程序打开下载文件。当操作系统中不存在用于打开该文件类型文件的默认打开程序时,确定该文件类型为系统未知的类型。如图5所示,将推荐程序的推荐信息通过电脑管家的提示窗口,并在提示窗口中生成通过推荐程序打开该下载文件的按钮,以引导用户安装并以推荐程序打开该文件类型的文件。当用户点击该按钮时,电脑管家安装推荐程序,并将推荐程序设置为系统中的新的默认 打开程序,以推荐程序打开该下载文件。
通过上述步骤S21至步骤S27,可以实现在获取与文件的类型对应的推荐打开程序,并根据推荐打开程序生成推荐信息在前端应用中进行显示。从而实现了根据扫描到的文件的类型生成用于打开程序的推荐信息的技术效果,达到了方便用户,提升用户体验的目的,解决了现有技术中因未安装用于打开文件的程序,导致该文件无法正常打开的技术问题。
作为一个可选的实施例,在文件为下载客户端正在下载或下载完成的文件,且文件的数量为至少两个的情况下,在步骤S21通过扫描预定位置的文件,获取文件的类型之后,上述方法还包括:
步骤S211,判断同时下载的文件的类型是否相同。
步骤S213,当同时下载的文件的类型相同时,进入执行根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序的步骤。
具体的,通过步骤S211至步骤S213,在当下载客户端同时下载的文件数量超过一个时,对下载的文件的类型进行判断,判断其是否相同。当下载的类型相同时,执行步骤S23根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序。当下载的类型不同时,在下载客户端中的文件下载完成后,可以直接生成提示打开该文件所存储的文件夹的信息,并将其推送至前端应用进行显示。当然,当下载的类型不同时,也可以分别根据下载的文件的类型,获取与之相应的推荐打开程序,并将全部的推荐打开程序对应的推荐信息推送至前端应用进行显示。
在操作系统中,下载客户端是指用于下载文件的应用程序。通常下载客户端会根据文件存储的服务器地址,将文件从服务器下载至本地存储器当中。其中,下载客户端可以为网页浏览器中用于实现下载功能的功能模块,也可以是专门用于下载的独立的应用程序,此处并不做具体限定。并且下载客户端的下载方式也可以是现有下载方式的任意一种,例如,P2P方式、FTP方式、HTTP方式等。
在实际应用中,还以安装于Windows操作系统中的电脑管家为例进行详细说明。如图6所示,电脑管家对同时下载的文件数量进行判断,当同时下载的文件数量大于一个时,首先判断同时下载的文件是否为相同类型,当同时下载的文件不是相同类型的文件时,打开文件所在的文件夹。当同时下载的文件是相同类型的文件时,根据文件的类型在操作系统的配置文件中进行查询,查询操作系统中是否存在用于打开该文件类型文件的默认打开程序。当操作系统中存在用于打开该文件类型文件的默认打开程序时,将默认打开程序的程序信息通过电脑管家的提示窗口,并在提示窗口中生成通过默认打开程序同时打开上述同时下载的文件的按钮。当操作系统中不存在用于打开该文件类型文件的默认打开程序时,确定该文件的类型为系统未知的类型,将推荐程序的推荐信息通过电脑管家的提示窗口,并在提示窗口中生成通过推荐程序同时打开上述同时下载的文件的按钮。
通过上述步骤对下载的文件数量进行判断,并在下载的文件数量超过一个时,进一步地对下载的文件的类型进行判断,来实现对不同情况区别处理的目的,从而提高获取推荐打开程序的准确性。
在本申请提供的另外一种可选实施例中,在步骤S25当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序中,包括:
步骤S51,获取允许打开类型的文件的至少一个打开程序的程序描述信息,其中,程序描述信息包括其中的一个或多个:下载量、热门度、好评率、程序大小。
步骤S53,按照预先设定的筛选条件,根据程序描述信息对打开程序进行筛选,确定预定数量的打开程序作为推荐打开程序。
通过步骤S51至步骤S53,首先根据文件的类型,获取至少一个可以用于打开上述类型文件的打开程序的程序描述信息。通过程序描述信息,对打开程序进行筛选。通过筛选确定预定数量的推荐打开程序。其中,筛选条件可以预先根据用户的喜好进行设置;当然也可以在系统中默认设置 按照下载量、热门度、好评率、程序大小等信息对打开程序进行排序后,确定出预先设定的推荐打开程序;当然还可以预先将一些打开程序作为默认的推荐程序集合,当获取允许打开类型的文件的推荐打开程序时,直接从上述推荐程序集合中获取与该类型对应的作为推荐打开程序。
作为一个可选的实施例,在上述步骤S53按照预先设定的筛选条件,根据程序描述信息对打开程序进行筛选,确定预定数量的打开程序作为推荐打开程序中,包括:
步骤S531,根据打开程序的程序描述信息,计算与打开程序对应的推荐值。
步骤S533,根据推荐值,确定推荐值最高的预设数量的打开程序作为推荐打开程序。
具体的,通过步骤S531至步骤S533,利用程序描述信息中的打开程序对应各种参数进行加权运算,以获得与各个打开程序对应的推荐值。根据推荐值的大小,将打开程序按照推荐值进行降序排序,进而将推荐值最高的预设数量的打开程序作为推荐打开程序。其中,预设数量既可以是一个,也可以是多个。当预设数量为一个时,直接将推荐值最高的打开程序作为推荐打开程序即可。
在实际应用中,为了使用户可以根据喜好来选择推荐打开程序,可以在获取允许打开类型的文件的推荐打开程序时,同时将获取到的预定数量的推荐打开程序以列表的形式推送给用户,以引导用户安装推荐打开程序之中的任意一个。
在本申请提供的另外一种可选实施例中,在步骤S23根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序之后,当查询到默认打开程序时,方法还包括:
步骤S241,获取允许打开类型的文件的至少一个打开程序的程序描述信息。
步骤S243,根据打开程序的程序描述信息,计算与打开程序对应的推荐值。
步骤S245,根据推荐值,确定推荐值最高的预设数量的打开程序作为推荐打开程序。
步骤S247,将默认打开程序与推荐打开程序进行比对,判断默认打开程序是否与推荐打开程序相同。
步骤S249,当默认打开程序与推荐打开程序不相同时,将推荐打开程序对应的推荐信息推送给前端应用程序进行显示。
具体的,通过上述步骤S241至步骤S249,对当查询到系统中存在系统默认的用于打开文件的默认打开程序时进行处理。通过将获取到的推荐打开程序与系统中的默认打开程序进行比对,来确定默认打开程序是否与获取到的推荐打开程序相同。当默认打开程序与推荐打开程序不相同时,将推荐打开程序对应的推荐信息推送给前端应用程序进行显示,以引导用户对推荐打开程序进行安装。其中,默认打开程序与推荐打开程序是否相同的判断标准,既可以判断默认打开程序与推荐打开程序是否为同一个程序,也可以在确定为同一个程序后,判断默认打开程序的版本号与推荐打开程序的版本号是否相同。
在实际应用当中,可以通过判断默认打开程序与推荐打开程序是否为同一个程序软件,从而将推荐值高、用户反馈好的软件推荐给用户,并引导用户对其进行安装,以提升用户的使用体验。还可以在确定为同一个程序后,判断默认打开程序的版本号与推荐打开程序的版本号是否相同,在默认打开程序的版本号低于推荐打开程序的版本号时,提示用户对程序进行更新。从而引导用户及时对程序进行更新,以提升用户的使用体验。
在本申请提供的另外一种可选实施例中,在步骤S27将推荐打开程序对应的推荐信息推送给前端应用程序进行显示之后,上述方法还包括:
步骤S28,根据推荐信息获取推荐打开程序。
步骤S29,将获取到的推荐打开程序设置为系统默认的默认打开程序。
具体的,通过步骤S28至步骤S29,根据推荐信息获取推荐打开程序,并将推荐打开程序安装至系统当中,并将推荐打开程序在系统中注册为与之相应类型文件的默认打开程序。从而实现当系统中即使不存在与下载文件的类型相应的默认打开程序的情况下,也可以通过上述方法直接使用推荐打开程序打开下载文件,来提升用户体验。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
实施例2
根据本发明实施例,还提供了一种用于实施上述程序信息的推送方法的程序信息的推送装置,如图7所示,该装置包括:第一获取模块31、查询模块33、第二获取模块35和第一推送模块37。
其中,第一获取模块31,用于通过扫描预定位置的文件,获取文件的类型;查询模块33,用于根据文件的类型查询是否存在系统默认的用于打 开文件的默认打开程序;第二获取模块35,用于当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序;第一推送模块37,用于将推荐打开程序对应的推荐信息推送给前端应用进行显示。
通过上述第一获取模块31、查询模块33、第二获取模块35和第一推送模块37,可以实现在获取与文件的类型对应的推荐打开程序,并根据推荐打开程序生成推荐信息在前端应用中进行显示。从而实现了根据扫描到的文件的类型生成用于打开程序的推荐信息的技术效果,达到了方便用户,提升用户体验的目的,解决了现有技术中因未安装用于打开文件的程序,导致该文件无法正常打开的技术问题。
作为一个可选的实施例,如图8所示,在文件为下载客户端正在下载或下载完成的文件,且文件的数量为至少两个的情况下,装置还包括:判断模块321。
其中,判断模块321用于判断同时下载的文件的类型是否相同;当同时下载的文件的类型相同时,通过查询模块33执行根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序的步骤。
具体的,通过判断模块321,在当下载客户端同时下载的文件数量超过一个时,对下载的文件的类型进行判断,判断其是否相同。当下载的类型相同时,通过查询模块33执行根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序步骤。当下载的类型不同时,在下载客户端中的文件下载完成后,可以直接生成提示打开该文件所存储的文件夹的信息,并将其推送至前端应用进行显示。当然,当下载的类型不同时,也可以分别根据下载的文件的类型,获取与之相应的推荐打开程序,并将全部的推荐打开程序对应的推荐信息推送至前端应用进行显示。
通过上述步骤对下载的文件数量进行判断,并在下载的文件数量超过一个时,进一步地对下载的文件的类型进行判断,来实现对不同情况区别处理的目的,从而提高获取推荐打开程序的准确性。
在本申请提供的另外一种可选实施例中,上述第二获取模块35包括:子获取模块51和子筛选模块53。
其中,子获取模块51,用于获取允许打开类型的文件的至少一个打开程序的程序描述信息,其中,程序描述信息包括其中的一个或多个:下载量、热门度、好评率、程序大小;子筛选模块53,用于按照预先设定的筛选条件,根据程序描述信息对打开程序进行筛选,确定预定数量的打开程序作为推荐打开程序。
通过上述子获取模块51和子筛选模块53,首先根据文件的类型,获取至少一个可以用于打开上述类型文件的打开程序的程序描述信息。通过程序描述信息,对打开程序进行筛选。通过筛选确定预定数量的推荐打开程序。其中,筛选条件可以预先根据用户的喜好进行设置;当然也可以在系统中默认设置按照下载量、热门度、好评率、程序大小等信息对打开程序进行排序后,确定出预先设定的推荐打开程序;当然还可以预先将一些打开程序作为默认的推荐程序集合,当获取允许打开类型的文件的推荐打开程序时,直接从上述推荐程序集合中获取与该类型对应的作为推荐打开程序。
作为一个可选的实施例,上述子筛选模块53包括:子计算模块531和子确定模块533。
其中,子计算模块531,用于根据打开程序的程序描述信息,计算与打开程序对应的推荐值;子确定模块533,用于根据推荐值,确定推荐值最高的预设数量的打开程序作为推荐打开程序。
具体的,通过上述子计算模块531和子确定模块533,利用程序描述信息中的打开程序对应各种参数进行加权运算,以获得与各个打开程序对应的推荐值。根据推荐值的大小,将打开程序按照推荐值进行降序排序,进而将推荐值最高的预设数量的打开程序作为推荐打开程序。其中,预设数量既可以是一个,也可以是多个。当预设数量为一个时,直接将推荐值最高的打开程序作为推荐打开程序即可。
在实际应用中,为了使用户可以根据喜好来选择推荐打开程序,可以在获取允许打开类型的文件的推荐打开程序时,同时将获取到的预定数量的推荐打开程序以列表的形式推送给用户,以引导用户安装推荐打开程序之中的任意一个。
在本申请提供的另外一种可选实施例中,上述装置还包括:第三获取模块341、计算模块343、确定模块345、比对模块347和第二推送模块349。
其中,第三获取模块341,用于获取允许打开类型的文件的至少一个打开程序的程序描述信息;计算模块343,用于根据打开程序的程序描述信息,计算与打开程序对应的推荐值;确定模块345,用于根据推荐值,确定推荐值最高的预设数量的打开程序作为推荐打开程序;比对模块347,用于将默认打开程序与推荐打开程序进行比对,判断默认打开程序是否与推荐打开程序相同;当默认打开程序与推荐打开程序不相同时,通过第二推送模块349,将推荐打开程序对应的推荐信息推送给前端应用程序进行显示。
具体的,通过上述第三获取模块341、计算模块343、确定模块345、比对模块347和第二推送模块349,对当查询到系统中存在系统默认的用于打开文件的默认打开程序时进行处理。通过将获取到的推荐打开程序与系统中的默认打开程序进行比对,来确定默认打开程序是否与获取到的推荐打开程序相同。当默认打开程序与推荐打开程序不相同时,将推荐打开程序对应的推荐信息推送给前端应用程序进行显示,以引导用户对推荐打开程序进行安装。其中,默认打开程序与推荐打开程序是否相同的判断标准,既可以判断默认打开程序与推荐打开程序是否为同一个程序,也可以在确定为同一个程序后,判断默认打开程序的版本号与推荐打开程序的版本号是否相同。
在实际应用当中,可以通过判断默认打开程序与推荐打开程序是否为同一个程序软件,从而将推荐值高、用户反馈好的软件推荐给用户,并引 导用户对其进行安装,以提升用户的使用体验。还可以在确定为同一个程序后,判断默认打开程序的版本号与推荐打开程序的版本号是否相同,在默认打开程序的版本号低于推荐打开程序的版本号时,提示用户对程序进行更新。从而引导用户及时对程序进行更新,以提升用户的使用体验。
在本申请提供的另外一种可选实施例中,如图9所示,上述装置还包括:第四获取模块38和设置模块39。
其中,第四获取模块38,用于根据推荐信息获取推荐打开程序;设置模块39,用于将获取到的推荐打开程序设置为系统默认的默认打开程序。
具体的,通过上述第四获取模块38和设置模块39,根据推荐信息获取推荐打开程序,并将推荐打开程序安装至系统当中,并将推荐打开程序在系统中注册为与之相应类型文件的默认打开程序。从而实现当系统中即使不存在与下载文件的类型相应的默认打开程序的情况下,也可以通过上述方法直接使用推荐打开程序打开下载文件,来提升用户体验。
实施例3
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述实施例一程序信息的推送方法所执行的程序代码。
可选地,在本实施例中,上述存储介质402可以位于计算机的网络中的多个网络设备中的至少一个网络设备。
可选地,在本实施例中,存储介质402被设置为存储用于执行以下步骤的程序代码:获取下载客户端下载的文件的类型,其中,下载的文件为正在下载或下载完成的文件;根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序;当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序;将推荐打开程序对应的推荐信息推送给前端应用进行显示
可选地,存储介质402还被设置为存储用于执行以下步骤的程序代码: 当下载文件的数量为至少两个时,在获取下载客户端下载的文件的类型之后,方法还包括:判断同时下载的文件的类型是否相同;当同时下载的文件的类型相同时,进入执行根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序的步骤。
可选地,存储介质402还被设置为存储用于执行以下步骤的程序代码:当未查询到默认打开程序时,获取允许打开类型的文件的推荐打开程序,包括:获取允许打开类型的文件的至少一个打开程序的程序描述信息,其中,程序描述信息包括其中的一个或多个:下载量、热门度、好评率、程序大小;按照预先设定的筛选条件,根据程序描述信息对打开程序进行筛选,确定预定数量的打开程序作为推荐打开程序。
可选地,存储介质402还被设置为存储用于执行以下步骤的程序代码:按照预先设定的筛选条件,根据程序描述信息对打开程序进行筛选,确定预定数量的打开程序作为推荐打开程序,包括:根据打开程序的程序描述信息,计算与打开程序对应的推荐值;根据推荐值,确定推荐值最高的预设数量的打开程序作为推荐打开程序。
可选地,存储介质402还被设置为存储用于执行以下步骤的程序代码:在根据文件的类型查询是否存在系统默认的用于打开文件的默认打开程序之后,当查询到默认打开程序时,方法还包括:获取允许打开类型的文件的至少一个打开程序的程序描述信息;根据打开程序的程序描述信息,计算与打开程序对应的推荐值;根据推荐值,确定推荐值最高的预设数量的打开程序作为推荐打开程序;将默认打开程序与推荐打开程序进行比对,判断默认打开程序是否与推荐打开程序相同;当默认打开程序与推荐打开程序不相同时,将推荐打开程序对应的推荐信息推送给前端应用程序进行显示。
可选地,存储介质402还被设置为存储用于执行以下步骤的程序代码:在将推荐打开程序对应的推荐信息推送给前端应用程序进行显示之后,方法还包括:根据推荐信息获取推荐打开程序;将获取到的推荐打开程序设 置为系统默认的默认打开程序。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,本实施例中的具体示例可以参考上述实施例1和实施例2中所描述的示例,本实施例在此不再赘述。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地 方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (12)

  1. 一种程序信息的推送方法,其特征在于,包括:
    通过扫描预定位置的文件,获取所述文件的类型;
    根据所述文件的类型查询是否存在系统默认的用于打开所述文件的默认打开程序;
    当未查询到所述默认打开程序时,获取允许打开所述类型的文件的推荐打开程序;
    将所述推荐打开程序对应的推荐信息推送给前端应用进行显示。
  2. 根据权利要求1所述的方法,其特征在于,在所述文件为下载客户端正在下载或下载完成的文件,且所述文件的数量为至少两个的情况下,其中,在通过扫描预定位置的文件,获取所述文件的类型之后,所述方法还包括:
    判断同时下载的所述文件的类型是否相同;
    当同时下载的所述文件的类型相同时,进入执行根据所述文件的类型查询是否存在系统默认的用于打开所述文件的默认打开程序的步骤。
  3. 根据权利要求1所述的方法,其特征在于,当未查询到所述默认打开程序时,获取允许打开所述类型的文件的推荐打开程序,包括:
    获取允许打开所述类型的文件的至少一个打开程序的程序描述信息,其中,所述程序描述信息包括其中的一个或多个:下载量、热门度、好评率、程序大小;
    按照预先设定的筛选条件,根据所述程序描述信息对所述打开程序进行筛选,确定预定数量的所述打开程序作为所述推荐打开程序。
  4. 根据权利要求3所述的方法,其特征在于,按照预先设定的筛选条件,根据所述程序描述信息对所述打开程序进行筛选,确定预定数量的所述打开程序作为所述推荐打开程序,包括:
    根据所述打开程序的程序描述信息,计算与所述打开程序对应的推荐值;
    根据所述推荐值,确定所述推荐值最高的预设数量的打开程序作为所述推荐打开程序。
  5. 根据权利要求1所述的方法,其特征在于,在根据所述文件的类型查询是否存在系统默认的用于打开所述文件的默认打开程序之后,当查询到所述默认打开程序时,所述方法还包括:
    获取允许打开所述类型的文件的至少一个打开程序的程序描述信息;
    根据所述打开程序的程序描述信息,计算与所述打开程序对应的推荐值;
    根据所述推荐值,确定所述推荐值最高的预设数量的打开程序作为所述推荐打开程序;
    将所述默认打开程序与所述推荐打开程序进行比对,判断所述默认打开程序是否与所述推荐打开程序相同;
    当所述默认打开程序与所述推荐打开程序不相同时,将所述推荐打开程序对应的推荐信息推送给前端应用程序进行显示。
  6. 根据权利要求1至5中任意一项所述的方法,其特征在于,在将所述推荐打开程序对应的推荐信息推送给前端应用程序进行显示之后,所述方法还包括:
    根据所述推荐信息获取所述推荐打开程序;
    将获取到的所述推荐打开程序设置为所述系统默认的所述默认打开程序。
  7. 一种程序信息的推送装置,其特征在于,包括:
    第一获取模块,用于通过扫描预定位置的文件,获取所述文件的类型;
    查询模块,用于根据所述文件的类型查询是否存在系统默认的用 于打开所述文件的默认打开程序;
    第二获取模块,用于当未查询到所述默认打开程序时,获取允许打开所述类型的文件的推荐打开程序;
    第一推送模块,用于将所述推荐打开程序对应的推荐信息推送给前端应用进行显示。
  8. 根据权利要求7所述的装置,其特征在于,在所述文件为下载客户端正在下载或下载完成的文件,且所述文件的数量为至少两个的情况下,所述装置还包括:
    判断模块,用于判断同时下载的所述文件的类型是否相同;当同时下载的所述文件的类型相同时,通过所述查询模块执行根据所述文件的类型查询是否存在系统默认的用于打开所述文件的默认打开程序的步骤。
  9. 根据权利要求7所述的装置,其特征在于,所述第二获取模块包括:
    子获取模块,用于获取允许打开所述类型的文件的至少一个打开程序的程序描述信息,其中,所述程序描述信息包括其中的一个或多个:下载量、热门度、好评率、程序大小;
    子筛选模块,用于按照预先设定的筛选条件,根据所述程序描述信息对所述打开程序进行筛选,确定预定数量的所述打开程序作为所述推荐打开程序。
  10. 根据权利要求9所述的装置,其特征在于,所述子筛选模块包括:
    子计算模块,用于根据所述打开程序的程序描述信息,计算与所述打开程序对应的推荐值;
    子确定模块,用于根据所述推荐值,确定所述推荐值最高的预设数量的打开程序作为所述推荐打开程序。
  11. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    第三获取模块,用于获取允许打开所述类型的文件的至少一个打 开程序的程序描述信息;
    计算模块,用于根据所述打开程序的程序描述信息,计算与所述打开程序对应的推荐值;
    确定模块,用于根据所述推荐值,确定所述推荐值最高的预设数量的打开程序作为所述推荐打开程序;
    比对模块,用于将所述默认打开程序与所述推荐打开程序进行比对,判断所述默认打开程序是否与所述推荐打开程序相同;
    当所述默认打开程序与所述推荐打开程序不相同时,通过第二推送模块,将所述推荐打开程序对应的推荐信息推送给前端应用程序进行显示。
  12. 根据权利要求7至11中任意一项所述的装置,其特征在于,所述装置还包括:
    第四获取模块,用于根据所述推荐信息获取所述推荐打开程序;
    设置模块,用于将获取到的所述推荐打开程序设置为所述系统默认的所述默认打开程序。
PCT/CN2016/082380 2015-08-14 2016-05-17 程序信息的推送方法及装置 WO2017028572A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510502022.2 2015-08-14
CN201510502022.2A CN106469066A (zh) 2015-08-14 2015-08-14 程序信息的推送方法及装置

Publications (1)

Publication Number Publication Date
WO2017028572A1 true WO2017028572A1 (zh) 2017-02-23

Family

ID=58051092

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/082380 WO2017028572A1 (zh) 2015-08-14 2016-05-17 程序信息的推送方法及装置

Country Status (2)

Country Link
CN (1) CN106469066A (zh)
WO (1) WO2017028572A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543091B (zh) * 2018-09-27 2022-04-15 百度在线网络技术(北京)有限公司 应用程序的推送方法、装置及终端
CN109521924B (zh) * 2018-11-27 2020-06-30 麒麟合盛网络技术股份有限公司 一种辅助用户选择目标应用的方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663073A (zh) * 2012-03-31 2012-09-12 奇智软件(北京)有限公司 基于被下载文件进行推荐的方法及系统
CN103838799A (zh) * 2012-11-27 2014-06-04 北京金山云科技有限公司 一种推荐安装软件的方法、终端设备、云端服务器及系统
US20140188796A1 (en) * 2012-12-28 2014-07-03 Dropbox, Inc. Application recommendation using stored files
CN104239045A (zh) * 2014-09-05 2014-12-24 珠海市君天电子科技有限公司 未知文件的打开方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077400B (zh) * 2012-03-31 2018-07-27 奇智软件(北京)有限公司 文件推荐方法
US8751493B2 (en) * 2012-04-23 2014-06-10 Google Inc. Associating a file type with an application in a network storage service
CN102831010A (zh) * 2012-08-30 2012-12-19 腾讯科技(深圳)有限公司 打开未知文件的方法和装置
JP2014109891A (ja) * 2012-11-30 2014-06-12 Toshiba Corp 電子機器および電子機器の制御方法
CN103106094A (zh) * 2013-03-06 2013-05-15 广东欧珀移动通信有限公司 一种打开文件方法及移动智能终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663073A (zh) * 2012-03-31 2012-09-12 奇智软件(北京)有限公司 基于被下载文件进行推荐的方法及系统
CN103838799A (zh) * 2012-11-27 2014-06-04 北京金山云科技有限公司 一种推荐安装软件的方法、终端设备、云端服务器及系统
US20140188796A1 (en) * 2012-12-28 2014-07-03 Dropbox, Inc. Application recommendation using stored files
CN104239045A (zh) * 2014-09-05 2014-12-24 珠海市君天电子科技有限公司 未知文件的打开方法及装置

Also Published As

Publication number Publication date
CN106469066A (zh) 2017-03-01

Similar Documents

Publication Publication Date Title
US20220103612A1 (en) Application Recommendation Method, Device, and System
JP6207734B2 (ja) インテリジェントデバイスのシーンモードのカスタマイズ方法及び装置
CN105786993B (zh) 应用程序的功能插件推荐方法及装置
US20160241589A1 (en) Method and apparatus for identifying malicious website
WO2018054228A1 (zh) 终端设备类型的识别方法及路由器
US20140235258A1 (en) Application server awareness of device capabilities in a wireless network
WO2015051723A1 (zh) 一种下载数据的方法及装置
CN106874366B (zh) 软件信息的处理方法及装置
US20140082057A1 (en) Data transfer method and system
WO2017113840A1 (zh) 一种信息推荐方法及装置
CN106713004B (zh) 一种路由器适配方法及系统
JP6233673B2 (ja) 情報提供方法、装置及びデバイス
CN106649446B (zh) 信息推送方法和装置
US9773068B2 (en) Method and apparatus for deriving and using trustful application metadata
WO2017161831A1 (zh) 一种应用处理方法、装置和电子设备
CN113615141A (zh) 账号关联方法、装置、系统、服务器以及存储介质
CN108664799B (zh) 设备管理应用的权限设置方法及装置
CN112099757A (zh) 一种应用保活的方法以及装置
WO2017028572A1 (zh) 程序信息的推送方法及装置
CN104796477A (zh) 一种文件上传方法、装置和系统
CN102622254B (zh) 电视机宕机处理方法和系统
CN104579665A (zh) 鉴权方法及装置
CN108319624B (zh) 数据加载方法及装置
WO2016107072A1 (zh) 一种终端及终端选网的方法
CN111031117B (zh) 一种多媒体文件下载方法及相关装置

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: 16836437

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.07.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16836437

Country of ref document: EP

Kind code of ref document: A1