WO2019149026A1 - Method and device for generating link for application page, storage medium, and electronic apparatus - Google Patents

Method and device for generating link for application page, storage medium, and electronic apparatus Download PDF

Info

Publication number
WO2019149026A1
WO2019149026A1 PCT/CN2019/070260 CN2019070260W WO2019149026A1 WO 2019149026 A1 WO2019149026 A1 WO 2019149026A1 CN 2019070260 W CN2019070260 W CN 2019070260W WO 2019149026 A1 WO2019149026 A1 WO 2019149026A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
application
text information
hyperlink
configuration file
Prior art date
Application number
PCT/CN2019/070260
Other languages
French (fr)
Chinese (zh)
Inventor
姚文定
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019149026A1 publication Critical patent/WO2019149026A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations

Definitions

  • the present application relates to the field of electronic device technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device for generating a link of an application page.
  • each application becomes more and more powerful, the storage space occupied by each application is also larger and larger, which may affect the normal operation of the smartphone system. In order to solve this problem, it can be set by currently in the browser.
  • the specified entry of the application when detecting the trigger operation of the specified entry, the browser can implement the display of the application page.
  • the instruction entry must be found first, and the operation is cumbersome, and the application page is The efficiency of opening is low.
  • the embodiment of the present invention provides a method, an apparatus, a storage medium, and an electronic device for generating a link of an application page, which can improve the efficiency of opening an application page.
  • a method for generating a link of an application page is provided in an embodiment of the present application, and is applied to an electronic device, including:
  • a native page of the profile generation application is obtained and the native page is displayed.
  • the embodiment of the present application provides a link generation device for an application page, including:
  • the analyzing unit is configured to analyze the current browsing page to obtain text information in the current browsing page;
  • a determining unit configured to determine, according to the text information matching database, a corresponding target text information and an application identifier corresponding to the target text information
  • transceiver unit configured to send the application identifier to a configuration server, and receive a configuration file returned by the configuration server according to the application identifier
  • a conversion unit configured to cache the configuration file, and convert the target text information into a hyperlink, where the hyperlink is associated with the configuration file;
  • a generating unit configured to acquire a native page of the profile generation application and display the native page when a triggering operation on the hyperlink is detected.
  • the storage medium provided by the embodiment of the present application has a computer program stored thereon, and when the computer program is run on a computer, the computer is configured to perform link generation of an application page provided by any embodiment of the present application. method.
  • an electronic device provided by an embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to perform the steps by calling the computer program:
  • a native page of the profile generation application is obtained and the native page is displayed.
  • FIG. 1 is a schematic diagram of an implementation environment of a link generation method of an application page according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for generating a link of an application page according to an embodiment of the present application.
  • FIG. 3 is another schematic flowchart of a method for generating a link of an application page according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an application scenario of a method for generating a link of an application page according to an embodiment of the present disclosure.
  • FIG. 3 is a schematic diagram of another application scenario of a method for generating a link of an application page according to an embodiment of the present disclosure.
  • FIG. 3 is a schematic diagram of still another application scenario of a method for generating a link of an application page according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a link generating apparatus of an application page according to an embodiment of the present application.
  • FIG. 5 is another schematic structural diagram of a link generating apparatus of an application page according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the embodiment of the present application provides a link generation method of an application page, where the execution body of the link generation method of the application page may be a link generation device of an application page provided by the embodiment of the present application, or a link generation device integrated with the application page.
  • the electronic device, wherein the link generating device of the application page can be implemented by hardware or software.
  • the electronic device may be a device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer.
  • FIG. 1 is a schematic diagram of an implementation environment of a link generation method of an application page according to an embodiment of the present application.
  • the implementation environment includes a smart phone 10 , a communication network 20 , and a server 30 .
  • the operating system of the smartphone 10 can be an Android system, a Symbian system, an Apple system, or the like.
  • the smartphone 10 and the server 30 are connected by a communication network 20.
  • the communication network 20 includes a wireless network and a wired network.
  • the wireless network includes a combination of one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal network.
  • the server 30 stores an application configuration file, where the configuration file includes data and running logic required to run the application, and global configuration information indicating which pages the application is composed of, and configuring the background color of the application page. Configure navigation bar styles, configure default titles, and more.
  • the smart phone 10 can obtain the configuration file of the application from the server 30, and generate and display the original page of the application according to the configuration file. It should be understood that the native page can also be commonly referred to as “fast application”, so that the application is not installed. Under the premise, the running of the application, the data required for the application running can be obtained from the server 30 immediately.
  • the server 30 can also perform an update operation on the application's configuration file to provide the smartphone 10 with the updated configuration file.
  • the server 30 may also store an installation file of the application, and the smart phone 10 may also obtain an installation file of the application from the server 30, and completely run the application by installing the installation file. It is easily conceivable that the server 30 can also update the installation files of the application to provide the updated installation files for the smartphone 10.
  • An embodiment of the present invention provides a link generation method for an application page, including:
  • the native page of the profile generation application is obtained and the native page is displayed.
  • the step of analyzing the currently browsed page to obtain the text information in the currently browsed page may include: analyzing the text in the currently browsed page to obtain the text information in the text; and/or The image in the current browsing page is analyzed to obtain the text information in the image; and/or the voice in the current browsing page is analyzed to obtain the text information in the voice.
  • the database includes a preset keyword and an application identifier of the preset keyword corresponding mapping, and the corresponding target text information and the target text information corresponding to the application identifier are determined according to the text information matching database.
  • the step of the method may include: matching the text information with a preset keyword in the database, and determining, in the text information, a text that is consistent with the preset keyword as target text information; and acquiring the preset keyword corresponding mapping The application identifier and associate the target text information with the application identifier.
  • the configuration file includes global configuration information describing a page of the application, and when the triggering operation on the hyperlink is detected, acquiring a native page of the configuration file generating application and displaying the native page
  • the method may include: loading and running a script file in the operating system when the triggering operation on the hyperlink is detected; parsing the global configuration information through the script file, generating a native page of the application, and displaying the native page.
  • the method may further include: detecting whether an instruction to add a shortcut to the native page is received; when detecting the receiving the native Add a shortcut to the operating system's desktop when adding a shortcut to a page's shortcut.
  • the method may further include: detecting whether an operation instruction to close the browsing page is received; when detecting that the closed browsing page is received The cached configuration file is deleted when the operation instruction is executed.
  • the method may include: detecting whether the hyperlink receives a double-click operation; and detecting that the hyperlink receives a double-click operation At this time, it is determined that the trigger operation for the hyperlink is detected.
  • FIG. 2 is a schematic flowchart diagram of a method for generating a link of an application page according to an embodiment of the present application.
  • the specific process of the link generation method of the application page provided by the embodiment of the present application may be as follows:
  • the browsing page mentioned in the embodiment of the present application may be a browsing page of a browser, or may be a browsing page of an application, such as a chat browsing page of a chat application, a news browsing page of a news application, or the like.
  • the content on the currently browsed page is automatically analyzed.
  • the text on the currently browsed page may be analyzed to obtain the text information in the text, or may be The image on the page is browsed for analysis, the text information in the image is obtained, and the voice on the currently browsed page is analyzed, and the text information in the voice is obtained.
  • each application has a corresponding usage habit, that is, each application contains a corresponding use keyword
  • the use keywords included in the gourmet application may include: “grilled fish”, “Cantonese cuisine”, and “Szechuan cuisine” and so on.
  • the use of keywords in the film and television application can include: “Forrest Gump”, “Sea Pianist”, and "Fairy Tale of the Years”.
  • the application identifier of each application and the preset keyword may be mapped and stored in a database.
  • the app is identified as an app name that can be an app. It is easy to think that the default keywords in the database can be updated in real time.
  • the text information acquired in step 201 can be matched with the preset keyword stored in the database, and the text in the text information that is consistent with the preset keyword is determined as the target text information, and the preset key is obtained.
  • the word corresponds to the application identifier of the mapping, and the target text information is associated with the application identifier.
  • the configuration server stores a configuration file corresponding to each application, where the configuration file includes data and running logic required for running the application, and global configuration information, where the global configuration information indicates which pages the application is composed of. , configure the background color of the application page, configure the navigation bar style, configure the default title, and so on.
  • the electronic device sends the application identifier corresponding to the target text information to the configuration server.
  • the configuration server matches the configuration file corresponding to the application identifier, and returns the obtained configuration file to the electronic device.
  • the configuration server may further save an installation file of the application, where the installation file is used to install the corresponding application.
  • configuration file and the installation file are uploaded to the configuration server by a third-party vendor or developer, and the third-party vendor and the developer can also update and delete the configuration file and the installation file in the configuration server.
  • the electronic device may preset a cache space of the configuration file in the storage space.
  • the configuration file is cached in the cache space. Subsequent electronic devices can call this configuration file to run at any time.
  • the text in the target text information is converted into a hyperlink text, and the hyperlink is associated with the configuration file, that is, the hyperlink is a specified entry of the configuration file, and when the user clicks the hyperlink, the configuration file is started.
  • the function profile information and the permission information of the application may be displayed, for example, the profile information and the permission information may be “Gourmet applications”.
  • the user can use the function of finding a restaurant, which may use location rights and camera permissions.
  • the triggering operation may be a stand-alone operation or a double-click operation, which is not specifically limited herein.
  • the script file may be a JavaScript scripting language file
  • JavaScript is a web-based scripting language that has been widely used for web application development, and is commonly used to add various dynamic functions to web pages for users. Provide a smoother and more beautiful browsing experience.
  • JavaScript scripts implement their own functions by embedding them in HyperText Markup Languag (HTML).
  • the global configuration information in the configuration file is parsed by the loaded and running JavaScript scripting language file to generate the native page of the application and display the home page of the native page.
  • the embodiment of the present application automatically generates an application hyperlink according to the text information by detecting the text information of the browsing page, and can quickly open the application page through the hyperlink without opening the application, thereby improving the opening of the application page. effectiveness.
  • the native page of the application can be switched on without the application being installed, the user can perform an initial experience on the application, and if the application is installed or not based on the initial experience, the diversity of the user selection can be improved.
  • the link generation method of the application page may include:
  • the content on the currently browsed page is automatically analyzed.
  • the text on the currently browsed page can be analyzed to obtain the text information in the text.
  • the user 1 sends a message: “Why do you go after work”, and the user 2 replies with a message: “Go eat grilled fish.”
  • the electronic device can obtain the text information in the current browsing page, "Why do you go after work” and "Go eat grilled fish.”
  • the content on the currently browsed page is automatically analyzed automatically.
  • the texture feature on the current browsing page may be analyzed by the convolutional neural network to further extract the image.
  • the text information contained in the image is currently mature, so it will not be described in detail.
  • the content on the currently browsed page is automatically analyzed automatically.
  • the MFCC feature can be extracted from the voice on the currently browsed page, and then the voice recognition analysis is performed according to the extracted feature. To further extract the text information contained in the voice.
  • the technique of speech analysis as text here is relatively mature at present, so it will not be described in detail.
  • each application has a corresponding usage habit, that is, each application contains a corresponding use keyword
  • the use keywords included in the gourmet application may include: “grilled fish”, “Cantonese cuisine”, and “Szechuan cuisine” and so on.
  • the use of keywords in the film and television application can include: “Forrest Gump”, “Sea Pianist”, and "Fairy Tale of the Years”.
  • the application identifier of each application and the preset keyword are mapped and stored in the database.
  • the app is identified as an app name that can be an app.
  • the obtained text information is matched with the preset keyword stored in the database, and the text in the text information that is consistent with the preset keyword is determined as the target text information.
  • the text information "do it after work” and “eat the grilled fish” match the default keywords in the database, and find the text message “eat the grilled fish to go” and preset The keyword “roasted fish” is matched. Therefore, the text "baked fish” in the text message "Eat grilled fish” is determined as the target text information.
  • the application identifier corresponding to the preset keyword is obtained, and the target text information and the application identifier are obtained. Make an association.
  • the application identifier corresponding to the mapping of the preset keyword “grilled fish” is “XX gourmet application”.
  • the application identifier "XX gourmet application” is associated with the target text message "Grilled Fish”.
  • the configuration server stores a configuration file corresponding to each application, where the configuration file includes data and running logic required for running the application, and global configuration information, where the global configuration information indicates which pages the application is composed of. , configure the background color of the application page, configure the navigation bar style, configure the default title, and so on.
  • the electronic device sends the application identifier corresponding to the target text information to the configuration server.
  • the configuration server matches the configuration file corresponding to the application identifier, and returns the obtained configuration file to the electronic device.
  • the configuration server may further save an installation file of the application, where the installation file is used to install the corresponding application.
  • the configuration file and the installation file are uploaded to the configuration server by a third-party vendor or developer, and the third-party vendor and the developer can also update the configuration file and the installation file in the configuration server, and Delete operation.
  • the electronic device may preset a cache space of the configuration file in the storage space.
  • the configuration file is cached in the cache space. Subsequent electronic devices can call this configuration file to run at any time.
  • the cache space will clear the contents of the buffer space when the electronic device is powered off.
  • the text in the target text information is converted into a hyperlink text
  • the hyperlink is associated with the configuration file, that is, the hyperlink also specifies a designated entry of the file, and when the user clicks the hyperlink, the configuration file is started.
  • the electronic device converts the target text information "grilled fish" into hyperlink text, and when the user clicks on the hyperlink text, the corresponding configuration file is started.
  • the method further includes:
  • step (2) When it is detected that the operation instruction for closing the browsing page is received, step (2) is performed, and when it is detected that the operation instruction for closing the browsing page is not received, step 308 is continued.
  • the specified entry of the running configuration file is closed. At this time, if the cached configuration file is continuously stored in the cache space, the storage space of the electronic device is wasted. .
  • the cached configuration file is deleted, thereby saving the storage space of the electronic device.
  • the triggering operation may be a click operation, a double-click operation, or a long-press operation, and the click operation is taken as an example.
  • the script file in the operating system is loaded and run.
  • the script file may be a JavaScript scripting language file, parsing the global configuration information in the configuration file by loading and running a JavaScript script language file, converting the parsed display element into a native-based view, and dynamically performing the native view.
  • the page is rendered to get the native page and the native page is displayed.
  • the corresponding search may be performed according to the target text information, which saves the step of manually inputting the keyword by the user.
  • the script file in the operating system is loaded and run, and the corresponding "XX gourmet application” configuration file is parsed through the script file.
  • the global configuration information in the middle as shown in FIG. 3c, generates a native page of the "XX gourmet application", and performs a corresponding search according to the target text information "grilled fish” to obtain a corresponding search result "1, Zhuge grilled fish", " 2, spicy grilled fish, and "3, fragrant grilled fish.” Based on this, the user can select the corresponding restaurant to order food and other services.
  • step 311 is performed.
  • the process returns to step 309 to continue displaying the native page.
  • the original page may also include an option to install the package download, when detected.
  • the installation package download option the installation package of the application can be downloaded and installed.
  • a shortcut of the application is added to the desktop of the operating system, and the shortcut is used as a designated entry of the application, and when the user detects the shortcut
  • the electronic device acquires the configuration file of the application correspondingly, generates a native page of the application according to the configuration file, and displays the native page. Based on this, the user can quickly open it directly on the desktop, which simplifies the user's operation.
  • the embodiment of the present application automatically generates an application hyperlink according to the text information by detecting the text information of the browsing page, and can quickly open the application page by using a hyperlink without installing the application, and can also generate an application page.
  • the desktop shortcut improves the efficiency of opening the application page.
  • the native page of the application can be switched on without the application being installed, the user can perform an initial experience on the application, and if the application is installed or not based on the initial experience, the diversity of the user selection can be improved.
  • An embodiment of the present invention provides a link generating apparatus for an application page, including:
  • the analyzing unit is configured to analyze the current browsing page to obtain text information in the current browsing page;
  • a determining unit configured to match the database according to the text information, and determine corresponding target text information and an application identifier corresponding to the target text information
  • transceiver unit configured to send the application identifier to the configuration server, and receive a configuration file returned by the configuration server according to the application identifier
  • a conversion unit configured to cache the configuration file, and convert the target text information into a hyperlink, where the hyperlink is associated with the configuration file;
  • a generating unit configured to acquire a native page of the profile generation application and display the native page when the triggering operation on the hyperlink is detected.
  • the analyzing unit may include: a text analysis sub-unit, configured to analyze text in the currently browsed page, obtain text information in the text; and/or an image analysis sub-unit, configured to The image in the current browsing page is analyzed to obtain the text information in the image; and/or the voice analysis sub-unit is configured to analyze the voice in the currently browsed page, and obtain the text information in the voice.
  • the database includes a preset keyword and an application identifier of the preset keyword corresponding mapping
  • the determining unit is specifically configured to: match the text information with a preset keyword in the database. And determining, in the text information, the text that is consistent with the preset keyword as the target text information; acquiring the application identifier corresponding to the preset keyword, and associating the target text information with the application identifier.
  • the configuration file includes global configuration information describing a page of the application, and the generating unit is specifically configured to: when the triggering operation on the hyperlink is detected, load and run the script file in the operating system.
  • the global configuration information is parsed by the script file, the native page of the application is generated, and the native page is displayed.
  • the apparatus further includes: a detecting unit, configured to detect whether an instruction to add a shortcut to the native page is received; and an adding unit, configured to detect that a shortcut to the native page is received Add the shortcut on the operating system's desktop when adding an instruction.
  • FIG. 4 is a schematic structural diagram of a link generating apparatus for an application page according to an embodiment of the present application.
  • the link generating device of the application page is applied to the electronic device, and the link generating device of the application page includes an analyzing unit 401, a determining unit 402, a transceiving unit 403, a converting unit 404, and a generating unit 405, as follows:
  • the analyzing unit 401 is configured to analyze the current browsing page to obtain text information in the current browsing page.
  • the analyzing unit 401 When the analyzing unit 401 detects that the user browses the page by using the electronic device, it automatically analyzes the content on the currently browsed page, for example, can analyze the text on the currently browsed page, and obtain the text in the text.
  • the information can also analyze the image on the current browsing page, obtain the text information in the image, and analyze the voice on the current browsing page to obtain the text information in the voice.
  • the determining unit 402 is configured to determine, according to the text information matching database, the corresponding target text information and the application identifier corresponding to the target text information.
  • the application identifier of each application and the preset keyword may be mapped and stored in a database.
  • the app is identified as an app name that can be an app. It is easy to think that the default keywords in the database can be updated in real time.
  • the text information that can be acquired by the determining unit 402 is matched with the preset keyword stored in the database, and the text that is consistent with the preset keyword in the text information is determined as the target text information, and the preset key is obtained.
  • the word corresponds to the application identifier of the mapping, and the target text information is associated with the application identifier.
  • the transceiver unit 403 is configured to send the application identifier to the configuration server, and receive a configuration file returned by the configuration server according to the application identifier.
  • the transceiver unit 403 sends the application identifier corresponding to the target text information to the configuration server. After receiving the application identifier, the configuration server matches the configuration file corresponding to the application identifier, and returns the obtained configuration file to the electronic device.
  • the converting unit 404 is configured to cache the configuration file and convert the target text information into a hyperlink, and the hyperlink is associated with the configuration file.
  • the electronic device may preset a cache space of the configuration file in the storage space.
  • the configuration file is cached in the cache space. Subsequent electronic devices can call this configuration file to run at any time.
  • the converting unit 404 converts the text in the target text information into a hyperlink text, and the hyperlink is associated with the configuration file, that is, the hyperlink is a specified entry of the configuration file, and when the user clicks the hyperlink, the configuration is started. file.
  • the generating unit 405 is configured to: when detecting a trigger operation on the hyperlink, acquire a native page of the profile generation application, and display the native page.
  • the triggering operation may be a single-machine operation or a double-click operation, which is not specifically limited herein.
  • the generating unit 405 loads and runs the script file in the operating system.
  • the script file can be a JavaScript scripting language file.
  • the generating unit 405 parses the global configuration information in the configuration file by the loaded and running JavaScript script language file to generate a native page of the application and displays the home page of the native page.
  • the analyzing unit 401 may include:
  • a text analysis sub-unit 4011 configured to analyze text in the currently browsed page, obtain text information in the text;
  • the image analysis sub-unit 4012 is configured to analyze an image in the currently browsed page to obtain text information in the image; and/or
  • the voice analysis sub-unit 4013 is configured to analyze voices in the currently browsed page, and obtain text information in the voice.
  • the apparatus further includes:
  • the detecting unit 406 is configured to detect whether an instruction to add a shortcut to the native page is received
  • the adding unit 407 is configured to add the shortcut on the desktop of the operating system when detecting that an add instruction for the shortcut of the native page is received.
  • the steps performed by the units in the link generation device of the application page may refer to the method steps described in the foregoing method embodiments.
  • the link generation device of the application page can be integrated in an electronic device such as a mobile phone, a tablet, or the like.
  • the foregoing various units may be implemented as an independent entity, and may be implemented in any combination, and may be implemented as the same entity or a plurality of entities.
  • the foregoing units refer to the foregoing embodiments, and details are not described herein again.
  • the electronic device 500 includes a processor 501 and a memory 502.
  • the processor 501 is electrically connected to the memory 502.
  • the processor 500 is a control center of the electronic device 500, which connects various parts of the entire electronic device using various interfaces and lines, and executes by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502.
  • the various functions of the electronic device 500 and processing of the data enable overall monitoring of the electronic device 500.
  • the memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running computer programs and modules stored in the memory 502.
  • the memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of electronic devices, etc.
  • memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 502 can also include a memory controller to provide processor 501 access to memory 502.
  • the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and is stored in the memory 502 by the processor 501.
  • the computer program in which to implement various functions, as follows:
  • the native page of the profile generation application is obtained and the native page is displayed.
  • the processor 501 when analyzing the current browsing page to obtain the text information in the current browsing page, the processor 501 may specifically perform the following steps:
  • the database includes a preset keyword and an application identifier corresponding to the preset keyword mapping, and the corresponding target text information and the target text information corresponding to the application identifier are determined according to the text information matching database.
  • the processor 501 can specifically perform the following steps:
  • the configuration file includes global configuration information describing a page of the application, when a trigger operation on the hyperlink is detected, a native page of the profile generation application is obtained, and the native page is displayed
  • the processor 501 can specifically perform the following steps:
  • the global configuration information is parsed by the script file, the native page of the application is generated, and the native page is displayed.
  • the processor 501 may further perform the following steps:
  • the shortcut is added to the operating system's desktop when it detects an add command that receives a shortcut to the native page.
  • the processor 501 may further perform the following steps:
  • the cached configuration file is deleted when it is detected that an operation instruction to close the browsing page is received.
  • the processor 501 may further perform the following steps:
  • the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power source 506.
  • the display 503, the radio frequency circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501, respectively.
  • the display 503 can be used to display information entered by a user or information provided to a user, as well as various graphical user interfaces, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display 503 can include a display panel.
  • the display panel can be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
  • the audio circuit 505 can be used to provide an audio interface between the user and the electronic device through a speaker, a microphone.
  • the power source 506 can be used to power various components of the electronic device 500.
  • the power source 506 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the embodiment of the present application further provides a storage medium storing a computer program, when the computer program is run on a computer, causing the computer to execute a link generation method of an application page in any of the above embodiments, for example,
  • the current browsing page is analyzed to obtain the text information in the current browsing page; according to the text information matching database, the corresponding target text information and the target text information corresponding to the application identifier are determined; the application identifier is sent to the configuration server, and the configuration is received.
  • the server returns a configuration file according to the application identifier; caches the configuration file, and converts the target text information into a hyperlink, where the hyperlink is associated with the configuration file; when a trigger operation on the hyperlink is detected, obtaining the configuration
  • the file generates the native page of the app and displays the native page.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • ROM read only memory
  • RAM random access memory
  • the computer program can be stored in a computer readable storage medium, such as in a memory of the electronic device, and executed by at least one processor in the electronic device, during execution A flow of an embodiment including a link generation method such as an application page.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory, a random access memory, or the like.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Abstract

A method for generating a link for an application page comprises: acquiring text information in a page currently being viewed; performing matching on the basis of the text information and data stored in a database to obtain an associated application identifier; transmitting the application identifier to a configuration server so as to receive a returned configuration file; caching the configuration file, and converting target text information to a hyperlink; and upon detection of a trigger operation with respect to the hyperlink, generating and displaying a native page of the application. The method improves efficiency of opening an application page.

Description

应用页面的链接生成方法、装置、存储介质及电子设备Link generation method, device, storage medium and electronic device of application page
本申请要求于2018年02月02日提交中国专利局、申请号为201810107327.7,发明名称为“一种应用页面的链接生成方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201101107327.7, filed on February 2, 2018, the entire disclosure of which is incorporated herein by reference. The entire contents are incorporated herein by reference.
技术领域Technical field
本申请涉及电子设备技术领域,具体涉及一种应用页面的链接生成方法、装置、存储介质及电子设备。The present application relates to the field of electronic device technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device for generating a link of an application page.
背景技术Background technique
目前,随着终端技术的高速发展,如智能手机越来越深入人们的生活之中,在智能手机上可以安装各种各样的应用,如拍照应用、游戏应用、地图应用等等,以供用户使用。At present, with the rapid development of terminal technologies, such as smart phones, more and more people's lives, a variety of applications, such as camera applications, game applications, map applications, etc., can be installed on smartphones. User use.
但是,随着应用的功能越来越强大,每个应用对应占用的存储空间也越来越大,很可能会影响智能手机系统的正常运行,为了解决这个问题,目前可通过在浏览器上设置应用的指定入口,当检测到用户对指定入口的触发操作时,浏览器可以实现应用页面的展示,然而,用户每次打开指定应用页面时,必须要先找到指令入口,操作比较繁琐,应用页面开启的效率低。However, as the functions of the application become more and more powerful, the storage space occupied by each application is also larger and larger, which may affect the normal operation of the smartphone system. In order to solve this problem, it can be set by currently in the browser. The specified entry of the application, when detecting the trigger operation of the specified entry, the browser can implement the display of the application page. However, each time the user opens the specified application page, the instruction entry must be found first, and the operation is cumbersome, and the application page is The efficiency of opening is low.
发明内容Summary of the invention
本申请实施例提供了一种应用页面的链接生成方法、装置、存储介质及电子设备,能够提升应用页面开启的效率。The embodiment of the present invention provides a method, an apparatus, a storage medium, and an electronic device for generating a link of an application page, which can improve the efficiency of opening an application page.
第一方面,本申请实施例了提供了的一种应用页面的链接生成方法,应用于电子设备中,包括:In a first aspect, a method for generating a link of an application page is provided in an embodiment of the present application, and is applied to an electronic device, including:
对当前浏览页面进行分析,获取当前浏览页面中的文字信息;Analyze the current browsing page to obtain the text information in the current browsing page;
根据所述文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;And determining, according to the text information matching database, the corresponding target text information and the target text information corresponding to the application identifier;
将所述应用标识发送配置服务器,并接收所述配置服务器根据所述应用标识返回的配置文件;Sending the application identifier to the configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
缓存所述配置文件,并将所述目标文字信息转换为超链接,所述超链接与所述配置文件关联;Caching the configuration file and converting the target text information into a hyperlink, the hyperlink being associated with the configuration file;
当检测到对所述超链接的触发操作时,获取所述配置文件生成应用的原生页面,并展示所述原生页面。When a triggering operation on the hyperlink is detected, a native page of the profile generation application is obtained and the native page is displayed.
第二方面,本申请实施例了提供了的一种应用页面的链接生成装置,包括:In a second aspect, the embodiment of the present application provides a link generation device for an application page, including:
分析单元,用于对当前浏览页面进行分析,获取当前浏览页面中的文字信息;The analyzing unit is configured to analyze the current browsing page to obtain text information in the current browsing page;
确定单元,用于根据所述文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;a determining unit, configured to determine, according to the text information matching database, a corresponding target text information and an application identifier corresponding to the target text information;
收发单元,用于将所述应用标识发送配置服务器,并接收所述配置服务器根据所述应 用标识返回的配置文件;a transceiver unit, configured to send the application identifier to a configuration server, and receive a configuration file returned by the configuration server according to the application identifier;
转换单元,用于缓存所述配置文件,并将所述目标文字信息转换为超链接,所述超链接与所述配置文件关联;a conversion unit, configured to cache the configuration file, and convert the target text information into a hyperlink, where the hyperlink is associated with the configuration file;
生成单元,用于当检测到对所述超链接的触发操作时,获取所述配置文件生成应用的原生页面,并展示所述原生页面。And a generating unit, configured to acquire a native page of the profile generation application and display the native page when a triggering operation on the hyperlink is detected.
第三方面,本申请实施例提供的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本申请任一实施例提供的应用页面的链接生成方法。In a third aspect, the storage medium provided by the embodiment of the present application has a computer program stored thereon, and when the computer program is run on a computer, the computer is configured to perform link generation of an application page provided by any embodiment of the present application. method.
第四方面,本申请实施例提供的电子设备,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行步骤:In a fourth aspect, an electronic device provided by an embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to perform the steps by calling the computer program:
对当前浏览页面进行分析,获取当前浏览页面中的文字信息;Analyze the current browsing page to obtain the text information in the current browsing page;
根据所述文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;And determining, according to the text information matching database, the corresponding target text information and the target text information corresponding to the application identifier;
将所述应用标识发送配置服务器,并接收所述配置服务器根据所述应用标识返回的配置文件;Sending the application identifier to the configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
缓存所述配置文件,并将所述目标文字信息转换为超链接,所述超链接与所述配置文件关联;Caching the configuration file and converting the target text information into a hyperlink, the hyperlink being associated with the configuration file;
当检测到对所述超链接的触发操作时,获取所述配置文件生成应用的原生页面,并展示所述原生页面。When a triggering operation on the hyperlink is detected, a native page of the profile generation application is obtained and the native page is displayed.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings can also be obtained from those skilled in the art based on these drawings without paying any creative effort.
图1是本申请实施例提供的应用页面的链接生成方法的实施环境的示意图。FIG. 1 is a schematic diagram of an implementation environment of a link generation method of an application page according to an embodiment of the present application.
图2是本申请实施例提供的应用页面的链接生成方法的一个流程示意图。FIG. 2 is a schematic flowchart of a method for generating a link of an application page according to an embodiment of the present application.
图3是本申请实施例提供的应用页面的链接生成方法的另一个流程示意图。FIG. 3 is another schematic flowchart of a method for generating a link of an application page according to an embodiment of the present application.
图3a为本申请实施例提供的应用页面的链接生成方法的应用场景示意图。FIG. 3 is a schematic diagram of an application scenario of a method for generating a link of an application page according to an embodiment of the present disclosure.
图3b为本申请实施例提供的应用页面的链接生成方法的另一应用场景示意图。FIG. 3 is a schematic diagram of another application scenario of a method for generating a link of an application page according to an embodiment of the present disclosure.
图3c为本申请实施例提供的应用页面的链接生成方法的再一应用场景示意图。FIG. 3 is a schematic diagram of still another application scenario of a method for generating a link of an application page according to an embodiment of the present disclosure.
图4是本申请实施例提供的应用页面的链接生成装置的一个结构示意图。FIG. 4 is a schematic structural diagram of a link generating apparatus of an application page according to an embodiment of the present application.
图5是本申请实施例提供的应用页面的链接生成装置的另一结构示意图。FIG. 5 is another schematic structural diagram of a link generating apparatus of an application page according to an embodiment of the present application.
图6是本申请实施例提供的电子设备的一个结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
图7是本申请实施例提供的电子设备的另一结构示意图。FIG. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals represent the same components, the principles of the present application are illustrated by the implementation in a suitable computing environment. The following description is based on the specific embodiments of the present invention as illustrated, and should not be construed as limiting the specific embodiments that are not described herein.
本申请实施例提供一种应用页面的链接生成方法,该应用页面的链接生成方法的执行主体可以是本申请实施例提供的应用页面的链接生成装置,或者集成了该应用页面的链接生成装置的电子设备,其中该应用页面的链接生成装置可以采用硬件或者软件的方式实现。其中,电子设备可以是智能手机、平板电脑、掌上电脑、笔记本电脑、或者台式电脑等设备。The embodiment of the present application provides a link generation method of an application page, where the execution body of the link generation method of the application page may be a link generation device of an application page provided by the embodiment of the present application, or a link generation device integrated with the application page. The electronic device, wherein the link generating device of the application page can be implemented by hardware or software. The electronic device may be a device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer.
请参阅图1,图1是本申请实施例提供的应用页面的链接生成方法的实施环境的示意图,如图1所示,该实施环境包括智能手机10、通信网络20以及服务器30。Referring to FIG. 1 , FIG. 1 is a schematic diagram of an implementation environment of a link generation method of an application page according to an embodiment of the present application. As shown in FIG. 1 , the implementation environment includes a smart phone 10 , a communication network 20 , and a server 30 .
该智能手机10的操作系统可以为安卓系统、塞班系统、苹果系统等。该智能手机10和服务器30之间通过通信网络20连接。The operating system of the smartphone 10 can be an Android system, a Symbian system, an Apple system, or the like. The smartphone 10 and the server 30 are connected by a communication network 20.
该通信网络20,包括无线网络及有线网络。其中无线网络包括无线广域网、无线局域网、无线城域网、以及无线个人网中的一种或多种的组合。The communication network 20 includes a wireless network and a wired network. The wireless network includes a combination of one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal network.
该服务器30中存储有应用的配置文件,该配置文件包含运行应用所需的数据和运行逻辑以及全局配置信息,该全局配置信息指示该应用是由哪些页面组成,配置应用页面的窗口背景色,配置导航条样式,配置默认标题等等。该智能手机10可以从服务器30获取应用的配置文件,根据配置文件生成应用的原生页面并展示,需要理解的是,该原生页面也可以通俗的称为“快应用”,从而在未安装应用的前提下,实现应用的运行,应用运行所需的数据可即时从服务器30获取。The server 30 stores an application configuration file, where the configuration file includes data and running logic required to run the application, and global configuration information indicating which pages the application is composed of, and configuring the background color of the application page. Configure navigation bar styles, configure default titles, and more. The smart phone 10 can obtain the configuration file of the application from the server 30, and generate and display the original page of the application according to the configuration file. It should be understood that the native page can also be commonly referred to as “fast application”, so that the application is not installed. Under the premise, the running of the application, the data required for the application running can be obtained from the server 30 immediately.
服务器30还可以对应用的配置文件进行更新操作,以便为智能手机10提供更新后的配置文件。The server 30 can also perform an update operation on the application's configuration file to provide the smartphone 10 with the updated configuration file.
在一实施方式中,该服务器30还可以存储应用的安装文件,智能手机10还可以从该服务器30上获取应用的安装文件,并通过安装该安装文件来完整的运行该应用。容易想到的是,该服务器30也可以对应用的安装文件进行更新,以便为智能手机10提供更新后的安装文件。In an embodiment, the server 30 may also store an installation file of the application, and the smart phone 10 may also obtain an installation file of the application from the server 30, and completely run the application by installing the installation file. It is easily conceivable that the server 30 can also update the installation files of the application to provide the updated installation files for the smartphone 10.
本发明实施例提供一种应用页面的链接生成方法,包括:An embodiment of the present invention provides a link generation method for an application page, including:
对当前浏览页面进行分析,获取当前浏览页面中的文字信息;Analyze the current browsing page to obtain the text information in the current browsing page;
根据该文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;And determining, according to the text information matching database, the corresponding target text information and the target text information corresponding to the application identifier;
将该应用标识发送配置服务器,并接收该配置服务器根据该应用标识返回的配置文件;Sending the application identifier to the configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
缓存该配置文件,并将该目标文字信息转换为超链接,该超链接与该配置文件关联;Caching the configuration file and converting the target text information into a hyperlink associated with the configuration file;
当检测到对该超链接的触发操作时,获取该配置文件生成应用的原生页面,并展示该原生页面。When a trigger operation on the hyperlink is detected, the native page of the profile generation application is obtained and the native page is displayed.
在一种实施方式中,该对当前浏览页面进行分析,获取当前浏览页面中的文字信息的步骤,可以包括:对当前浏览页面中的文本进行分析,获取该文本中的文字信息;和/或对当前浏览页面中的图像进行分析,获取该图像中的文字信息;和/或对当前浏览页面中的语音进行分析,获取该语音中的文字信息。In an embodiment, the step of analyzing the currently browsed page to obtain the text information in the currently browsed page may include: analyzing the text in the currently browsed page to obtain the text information in the text; and/or The image in the current browsing page is analyzed to obtain the text information in the image; and/or the voice in the current browsing page is analyzed to obtain the text information in the voice.
在一种实施方式中,该数据库中包括预设关键词以及该预设关键词对应映射的应用标识,该根据该文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识的步骤,可以包括:将该文字信息与该数据库中的预设关键词进行匹配,将该文字信息中与该预设关键词一致的文字确定为目标文字信息;获取该预设关键词对应映射的应用标识,并将该目标文字信息与该应用标识进行关联。In an embodiment, the database includes a preset keyword and an application identifier of the preset keyword corresponding mapping, and the corresponding target text information and the target text information corresponding to the application identifier are determined according to the text information matching database. The step of the method may include: matching the text information with a preset keyword in the database, and determining, in the text information, a text that is consistent with the preset keyword as target text information; and acquiring the preset keyword corresponding mapping The application identifier and associate the target text information with the application identifier.
在一种实施方式中,该配置文件包括描述该应用的页面的全局配置信息,该当检测到对该超链接的触发操作时,获取该配置文件生成应用的原生页面,并展示该原生页面的步骤,可以包括:当检测到对该超链接的触发操作时,加载并运行操作系统中的脚本文件;通过该脚本文件解析该全局配置信息,生成应用的原生页面,并展示该原生页面。In an embodiment, the configuration file includes global configuration information describing a page of the application, and when the triggering operation on the hyperlink is detected, acquiring a native page of the configuration file generating application and displaying the native page The method may include: loading and running a script file in the operating system when the triggering operation on the hyperlink is detected; parsing the global configuration information through the script file, generating a native page of the application, and displaying the native page.
在一种实施方式中,该生成应用的原生页面,并展示该原生页面的步骤之后,还可以包括:检测是否接收到对该原生页面的快捷方式的添加指令;当检测到接收到对该原生页面的快捷方式的添加指令时,在操作系统的桌面上添加该快捷方式。In an embodiment, after the step of generating the native page of the application and displaying the native page, the method may further include: detecting whether an instruction to add a shortcut to the native page is received; when detecting the receiving the native Add a shortcut to the operating system's desktop when adding a shortcut to a page's shortcut.
在一种实施方式中,该缓存该配置文件,并将该目标文字信息转换为超链接的步骤之后,还可以包括:检测是否接收到关闭浏览页面的操作指令;当检测到接收到关闭浏览页面的操作指令时,将缓存的该配置文件删除。In an embodiment, after the step of caching the configuration file and converting the target text information into a hyperlink, the method may further include: detecting whether an operation instruction to close the browsing page is received; when detecting that the closed browsing page is received The cached configuration file is deleted when the operation instruction is executed.
在一种实施方式中,该获取该配置文件生成应用的原生页面,并展示该原生页面的步骤之前,可以包括:检测该超链接是否接收到双击操作;当检测到该超链接接收到双击操作时,判定为检测到对该超链接的触发操作。In an implementation manner, before the step of acquiring the native page of the configuration file application and displaying the native page, the method may include: detecting whether the hyperlink receives a double-click operation; and detecting that the hyperlink receives a double-click operation At this time, it is determined that the trigger operation for the hyperlink is detected.
请参阅图2,图2为本申请实施例提供的应用页面的链接生成方法的流程示意图。本申请实施例提供的应用页面的链接生成方法的具体流程可以如下:Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a method for generating a link of an application page according to an embodiment of the present application. The specific process of the link generation method of the application page provided by the embodiment of the present application may be as follows:
201、对当前浏览页面进行分析,获取当前浏览页面中的文字信息。201. Analyze the current browsing page to obtain text information in the current browsing page.
可以理解的是,本申请实施例所提到的浏览页面可以为浏览器的浏览页面,也可以为应用的浏览页面,比如聊天应用的聊天浏览页面,新闻应用的新闻浏览页面等等。It can be understood that the browsing page mentioned in the embodiment of the present application may be a browsing page of a browser, or may be a browsing page of an application, such as a chat browsing page of a chat application, a news browsing page of a news application, or the like.
其中,当用户使用电子设备浏览页面时,会自动的对当前浏览页面上的内容进行智能分析,比如,可以对当前浏览页面上的文本进行分析,获取该文本中的文字信息,也可以对当前浏览页面上的图像进行分析,获取该图像中的文字信息,还可以对当前浏览页面上的语音进行分析,获取该语音中的文字信息。When the user browses the page by using the electronic device, the content on the currently browsed page is automatically analyzed. For example, the text on the currently browsed page may be analyzed to obtain the text information in the text, or may be The image on the page is browsed for analysis, the text information in the image is obtained, and the voice on the currently browsed page is analyzed, and the text information in the voice is obtained.
202、根据文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识。202. Match the database according to the text information, and determine the corresponding target text information and the target application information corresponding to the target text information.
需要说明的是,由于每一应用都有对应的使用习惯,也即每一应用都包含对应的使用 关键词,比如美食应用包含的使用关键词可以有:“烤鱼”、“粤菜”、以及“川菜”等。影视应用包含的使用关键词可以有:“阿甘正传”、“海上钢琴师”、以及“岁月的童话”等。It should be noted that each application has a corresponding usage habit, that is, each application contains a corresponding use keyword, for example, the use keywords included in the gourmet application may include: “grilled fish”, “Cantonese cuisine”, and "Szechuan cuisine" and so on. The use of keywords in the film and television application can include: "Forrest Gump", "Sea Pianist", and "Fairy Tale of the Years".
其中,可以将每一应用的应用标识和预设关键词(即使用关键词)进行映射,存储在数据库中。该应用标识为可以为应用的应用名称。容易想到的是,可以即时的对数据库中的预设关键词进行更新。The application identifier of each application and the preset keyword (ie, using the keyword) may be mapped and stored in a database. The app is identified as an app name that can be an app. It is easy to think that the default keywords in the database can be updated in real time.
进一步的,可以将步骤201中获取的文字信息与数据库中存储的预设关键词进行匹配,将该文字信息中与该预设关键词一致的文字确定为目标文字信息,并且获取该预设关键词对应映射的应用标识,将目标文字信息与该应用标识进行关联。Further, the text information acquired in step 201 can be matched with the preset keyword stored in the database, and the text in the text information that is consistent with the preset keyword is determined as the target text information, and the preset key is obtained. The word corresponds to the application identifier of the mapping, and the target text information is associated with the application identifier.
203、将应用标识发送配置服务器,并接收配置服务器根据应用标识返回的配置文件。203. Send an application identifier to the configuration server, and receive a configuration file returned by the configuration server according to the application identifier.
需要说明的是,该配置服务器中存储了每一应用对应的配置文件,该配置文件中包含运行应用所需的数据和运行逻辑以及全局配置信息,该全局配置信息指示该应用是由哪些页面组成,配置应用页面的窗口背景色,配置导航条样式,配置默认标题等等。It should be noted that the configuration server stores a configuration file corresponding to each application, where the configuration file includes data and running logic required for running the application, and global configuration information, where the global configuration information indicates which pages the application is composed of. , configure the background color of the application page, configure the navigation bar style, configure the default title, and so on.
其中,电子设备将目标文字信息对应关联的应用标识发送至配置服务器,该配置服务器接收到该应用标识后,匹配该应用标识对应的配置文件,将得到的配置文件返回至电子设备中。The electronic device sends the application identifier corresponding to the target text information to the configuration server. After receiving the application identifier, the configuration server matches the configuration file corresponding to the application identifier, and returns the obtained configuration file to the electronic device.
在一实施方式中,该配置服务器中还可以保存有应用的安装文件,该安装文件用于安装对应的应用。In an embodiment, the configuration server may further save an installation file of the application, where the installation file is used to install the corresponding application.
进一步的,该配置文件和安装文件为通过第三方供应商或者开发人员上传至配置服务器中,该第三方供应商以及开发人员还可以对配置服务器中的配置文件和安装文件进行更新以及删除操作。Further, the configuration file and the installation file are uploaded to the configuration server by a third-party vendor or developer, and the third-party vendor and the developer can also update and delete the configuration file and the installation file in the configuration server.
204、缓存配置文件,并将目标文字信息转换为超链接。204. Cache the configuration file and convert the target text information into a hyperlink.
其中,电子设备可以在存储空间中预设该配置文件的缓存空间,当电子设备接收到配置服务器返回的配置文件时,将该配置文件缓存在缓存空间中。后续电子设备可以随时调用该配置文件运行。The electronic device may preset a cache space of the configuration file in the storage space. When the electronic device receives the configuration file returned by the configuration server, the configuration file is cached in the cache space. Subsequent electronic devices can call this configuration file to run at any time.
进一步的,将目标文字信息中的文字转换为超链接文字,该超链接与该配置文件关联,即该超链接为配置文件的指定入口,当用户点击该超链接时,启动配置文件。Further, the text in the target text information is converted into a hyperlink text, and the hyperlink is associated with the configuration file, that is, the hyperlink is a specified entry of the configuration file, and when the user clicks the hyperlink, the configuration file is started.
在一实施方式中,为了方便用户的使用,当检测到用户长按该超链接的操作时,可以对应展示应用的功能简介信息以及权限信息等,例如该简介信息和权限信息可以为“美食应用由XX公司开发提供,供用户使用查找餐厅的功能,该应用有可能使用定位权限以及相机权限”。In an embodiment, in order to facilitate the use of the user, when the user presses the operation of the hyperlink, the function profile information and the permission information of the application may be displayed, for example, the profile information and the permission information may be “Gourmet applications”. Developed by XX, the user can use the function of finding a restaurant, which may use location rights and camera permissions.
205、当检测到对超链接的触发操作时,获取配置文件生成应用的原生页面,并展示原生页面。205. When detecting a trigger operation on the hyperlink, obtain a native page of the configuration file generation application and display the native page.
其中,该触发操作可以为单机操作,也可以为双击操作,此处不作具体限定,当检测 到用户对超链接的单机操作时,加载并运行操作系统中的脚本文件。The triggering operation may be a stand-alone operation or a double-click operation, which is not specifically limited herein. When the user detects a single operation of the hyperlink, the script file in the operating system is loaded and run.
在一实施方式中,该脚本文件可以为JavaScript脚本语言文件,JavaScript是一种属于网络的脚本语言,已经被广泛用于Web应用开发,常用来为网页添加各式各样的动态功能,为用户提供更流畅美观的浏览效果。通常JavaScript脚本是通过嵌入在超文本标记语言(HyperText Markup Languag,HTML)中来实现自身的功能的。In an embodiment, the script file may be a JavaScript scripting language file, and JavaScript is a web-based scripting language that has been widely used for web application development, and is commonly used to add various dynamic functions to web pages for users. Provide a smoother and more beautiful browsing experience. Usually JavaScript scripts implement their own functions by embedding them in HyperText Markup Languag (HTML).
因此,通过加载并运行的JavaScript脚本语言文件解析配置文件中的全局配置信息,以生成应用的原生页面,并展示该原生页面的首页。Therefore, the global configuration information in the configuration file is parsed by the loaded and running JavaScript scripting language file to generate the native page of the application and display the home page of the native page.
由上可知,本申请实施例通过检测浏览页面的文字信息,根据文字信息自动生成应用的超链接,在未安装应用的情况下,可以通过超链接快速的开启应用页面,提升了应用页面的开启效率。As can be seen from the above, the embodiment of the present application automatically generates an application hyperlink according to the text information by detecting the text information of the browsing page, and can quickly open the application page through the hyperlink without opening the application, thereby improving the opening of the application page. effectiveness.
进一步地,由于可以在未安装应用的情况下,切换开启应用的原生页面,使得用户可以对应用进行初步体验,在基于初步体验的情况下选择是否安装该应用,可以提升用户选择的多样性。Further, since the native page of the application can be switched on without the application being installed, the user can perform an initial experience on the application, and if the application is installed or not based on the initial experience, the diversity of the user selection can be improved.
下面将在上述实施例描述的方法基础上,对本申请的分类方法做进一步介绍。参考图3,该应用页面的链接生成方法可以包括:The classification method of the present application will be further described below based on the method described in the above embodiments. Referring to FIG. 3, the link generation method of the application page may include:
301、对当前浏览页面中的文本进行分析,获取文本中的文字信息。301. Analyze text in the current browsing page to obtain text information in the text.
其中,当用户使用电子设备浏览页面时,会自动的对当前浏览页面上的内容进行智能分析,比如,可以对当前浏览页面上的文本进行分析,获取该文本中的文字信息。When the user browses the page by using the electronic device, the content on the currently browsed page is automatically analyzed. For example, the text on the currently browsed page can be analyzed to obtain the text information in the text.
例如,如图3a所示,为聊天应用的聊天浏览页面,用户1发送消息:“下班后去干嘛”,用户2回复消息:“吃烤鱼去啊”。此时电子设备通过分析,可以获取当前浏览页面中的文字信息“下班后去干嘛”以及“吃烤鱼去啊”。For example, as shown in FIG. 3a, for the chat browsing page of the chat application, the user 1 sends a message: “Why do you go after work”, and the user 2 replies with a message: “Go eat grilled fish.” At this point, through the analysis, the electronic device can obtain the text information in the current browsing page, "Why do you go after work" and "Go eat grilled fish."
302、对当前浏览页面中的图像进行分析,获取图像中的文字信息。302. Analyze an image in the current browsing page to obtain text information in the image.
其中,当用户使用电子设备浏览页面时,会自动的对当前浏览页面上的内容进行智能分析,比如,可以通过卷积神经网络对当前浏览页面上的图像进行纹理特征分析,以进一步的提取出图像中包含的文字信息。此处图像分析为文字的技术目前已经比较成熟,故不作具体赘述。When the user browses the page using the electronic device, the content on the currently browsed page is automatically analyzed automatically. For example, the texture feature on the current browsing page may be analyzed by the convolutional neural network to further extract the image. The text information contained in the image. The technique of image analysis as text here is currently mature, so it will not be described in detail.
303、对当前浏览页面中的语音进行分析,获取语音中的文字信息。303. Analyze the voice in the current browsing page, and obtain text information in the voice.
其中,当用户使用电子设备浏览页面时,会自动的对当前浏览页面上的内容进行智能分析,比如,可以对当前浏览页面上的语音进行MFCC特征提取,再根据提取出来的特征进行语音识别分析,以进一步的提取出语音中包含的文字信息。此处语音分析为文字的技术目前已经比较成熟,故不作具体赘述。When the user browses the page by using the electronic device, the content on the currently browsed page is automatically analyzed automatically. For example, the MFCC feature can be extracted from the voice on the currently browsed page, and then the voice recognition analysis is performed according to the extracted feature. To further extract the text information contained in the voice. The technique of speech analysis as text here is relatively mature at present, so it will not be described in detail.
304、将文字信息与数据库中的预设关键词进行匹配,将文字信息中与预设关键词一致的文字确定为目标文字信息。304. Match the text information with the preset keyword in the database, and determine the text in the text information that is consistent with the preset keyword as the target text information.
需要说明的是,由于每一应用都有对应的使用习惯,也即每一应用都包含对应的使用 关键词,比如美食应用包含的使用关键词可以有:“烤鱼”、“粤菜”、以及“川菜”等。影视应用包含的使用关键词可以有:“阿甘正传”、“海上钢琴师”、以及“岁月的童话”等。It should be noted that each application has a corresponding usage habit, that is, each application contains a corresponding use keyword, for example, the use keywords included in the gourmet application may include: “grilled fish”, “Cantonese cuisine”, and "Szechuan cuisine" and so on. The use of keywords in the film and television application can include: "Forrest Gump", "Sea Pianist", and "Fairy Tale of the Years".
其中,将每一应用的应用标识和预设关键词(即使用关键词)进行映射,存储在数据库中。该应用标识为可以为应用的应用名称。The application identifier of each application and the preset keyword (ie, using the keyword) are mapped and stored in the database. The app is identified as an app name that can be an app.
进一步的,将获取的文字信息与数据库中存储的预设关键词进行匹配,将文字信息中与预设关键词一致的文字确定为目标文字信息。Further, the obtained text information is matched with the preset keyword stored in the database, and the text in the text information that is consistent with the preset keyword is determined as the target text information.
比如,如图3a所示,将文字信息“下班后去干嘛”以及“吃烤鱼去啊”与数据库中的预设关键词进行匹配,发现文字信息“吃烤鱼去啊”和预设关键词“烤鱼”匹配,因此,将文字信息“吃烤鱼去啊”中的文字“烤鱼”确定为目标文字信息。For example, as shown in Figure 3a, the text information "do it after work" and "eat the grilled fish" match the default keywords in the database, and find the text message "eat the grilled fish to go" and preset The keyword "roasted fish" is matched. Therefore, the text "baked fish" in the text message "Eat grilled fish" is determined as the target text information.
305、获取预设关键词对应映射的应用标识,并将目标文字信息与应用标识进行关联。305. Acquire an application identifier corresponding to the preset keyword, and associate the target text information with the application identifier.
其中,当检测到文字信息中有与预设关键词一致的文字,并将该文字确定为目标文字信息后,获取该预设关键词对应映射的应用标识,并将该目标文字信息与应用标识进行关联。Wherein, when it is detected that the text information has a text consistent with the preset keyword, and the text is determined as the target text information, the application identifier corresponding to the preset keyword is obtained, and the target text information and the application identifier are obtained. Make an association.
比如,如图3a所示,获取预设关键字“烤鱼”对应映射的应用标识为“XX美食应用”。将该应用标识“XX美食应用”与目标文字信息“烤鱼”进行关联。For example, as shown in FIG. 3a, the application identifier corresponding to the mapping of the preset keyword “grilled fish” is “XX gourmet application”. The application identifier "XX gourmet application" is associated with the target text message "Grilled Fish".
306、将应用标识发送配置服务器,并接收配置服务器根据应用标识返回的配置文件。306. Send an application identifier to the configuration server, and receive a configuration file returned by the configuration server according to the application identifier.
需要说明的是,该配置服务器中存储了每一应用对应的配置文件,该配置文件中包含运行应用所需的数据和运行逻辑以及全局配置信息,该全局配置信息指示该应用是由哪些页面组成,配置应用页面的窗口背景色,配置导航条样式,配置默认标题等等。It should be noted that the configuration server stores a configuration file corresponding to each application, where the configuration file includes data and running logic required for running the application, and global configuration information, where the global configuration information indicates which pages the application is composed of. , configure the background color of the application page, configure the navigation bar style, configure the default title, and so on.
其中,电子设备将目标文字信息对应关联的应用标识发送至配置服务器,该配置服务器接收到该应用标识后,匹配该应用标识对应的配置文件,将得到的配置文件返回至电子设备中。The electronic device sends the application identifier corresponding to the target text information to the configuration server. After receiving the application identifier, the configuration server matches the configuration file corresponding to the application identifier, and returns the obtained configuration file to the electronic device.
在一实施方式中,该配置服务器中还可以保存有应用的安装文件,该安装文件用于安装对应的应用。In an embodiment, the configuration server may further save an installation file of the application, where the installation file is used to install the corresponding application.
在一实施方式中,该配置文件和安装文件为通过第三方供应商或者开发人员上传至配置服务器中,该第三方供应商以及开发人员还可以对配置服务器中的配置文件和安装文件进行更新以及删除操作。In an embodiment, the configuration file and the installation file are uploaded to the configuration server by a third-party vendor or developer, and the third-party vendor and the developer can also update the configuration file and the installation file in the configuration server, and Delete operation.
307、缓存配置文件,并将目标文字信息转换为超链接。307. Cache the configuration file and convert the target text information into a hyperlink.
其中,电子设备可以在存储空间中预设该配置文件的缓存空间,当电子设备接收到配置服务器返回的配置文件时,将该配置文件缓存在缓存空间中。后续电子设备可以随时调用该配置文件运行。该缓存空间在电子设备断电时会将缓冲空间中的内容清空。The electronic device may preset a cache space of the configuration file in the storage space. When the electronic device receives the configuration file returned by the configuration server, the configuration file is cached in the cache space. Subsequent electronic devices can call this configuration file to run at any time. The cache space will clear the contents of the buffer space when the electronic device is powered off.
进一步的,将目标文字信息中的文字转换为超链接文字,该超链接与该配置文件关联,即该超链接也配置文件的指定入口,当用户点击该超链接时,启动配置文件。Further, the text in the target text information is converted into a hyperlink text, and the hyperlink is associated with the configuration file, that is, the hyperlink also specifies a designated entry of the file, and when the user clicks the hyperlink, the configuration file is started.
比如,如图3b所示,电子设备将目标文字信息“烤鱼”转换为超链接文字,当用户点击该超链接文字时,启动对应的配置文件。For example, as shown in FIG. 3b, the electronic device converts the target text information "grilled fish" into hyperlink text, and when the user clicks on the hyperlink text, the corresponding configuration file is started.
在一实施方式中,该缓存配置文件,并将目标文字信息转换为超链接之后,还包括:In an embodiment, after the cache configuration file and converting the target text information into a hyperlink, the method further includes:
(1)检测是否接收到关闭浏览页面的操作指令;(1) detecting whether an operation instruction to close the browsing page is received;
其中,当检测到接收到关闭浏览页面的操作指令时,执行步骤(2),当检测到未接收到关闭浏览页面的操作指令时,继续执行步骤308。When it is detected that the operation instruction for closing the browsing page is received, step (2) is performed, and when it is detected that the operation instruction for closing the browsing page is not received, step 308 is continued.
(2)将缓存的该配置文件删除。(2) Delete the cached configuration file.
其中,当检测到接收到关闭浏览页面的操作指令时,说明运行配置文件的指定入口已经关闭,此时,若继续将缓存的配置文件存储在缓存空间中,将造成电子设备的存储空间的浪费。When it is detected that the operation instruction for closing the browsing page is received, the specified entry of the running configuration file is closed. At this time, if the cached configuration file is continuously stored in the cache space, the storage space of the electronic device is wasted. .
因此,当检测到接收到用户关闭浏览页面的操作指令时,将缓存的配置文件删除,以此,节省电子设备的存储空间。Therefore, when it is detected that the operation instruction of the user to close the browsing page is received, the cached configuration file is deleted, thereby saving the storage space of the electronic device.
308、当检测到对超链接的触发操作时,加载并运行操作系统中的脚本文件。308. When detecting a trigger operation on the hyperlink, load and run the script file in the operating system.
其中,该触发操作可以为单击操作、双击操作或者长按操作,以单击操作为例进行说明,当检测到用户对超链接进行单击操作时,加载并运行操作系统中的脚本文件。The triggering operation may be a click operation, a double-click operation, or a long-press operation, and the click operation is taken as an example. When the user is detected to click on the hyperlink, the script file in the operating system is loaded and run.
309、通过脚本文件解析全局配置信息,生成应用的原生页面,并展示原生页面。309. Parse the global configuration information through the script file, generate a native page of the application, and display the native page.
其中,该脚本文件可以为JavaScript脚本语言文件,通过加载并运行的JavaScript脚本语言文件解析配置文件中的全局配置信息,将解析得到的显示元素转换为基于原生的视图,并动态地对原生视图进行页面渲染,从而得到原生页面,并展示该原生页面。The script file may be a JavaScript scripting language file, parsing the global configuration information in the configuration file by loading and running a JavaScript script language file, converting the parsed display element into a native-based view, and dynamically performing the native view. The page is rendered to get the native page and the native page is displayed.
在一实施方式中,在展示原生页面之后,还可以根据目标文字信息进行相应的搜索,节省了用户手动输入关键词的步骤。In an embodiment, after displaying the native page, the corresponding search may be performed according to the target text information, which saves the step of manually inputting the keyword by the user.
比如,如图3b所示,当检测到用户对超链接“烤鱼”的单击操作时,加载并运行操作系统中的脚本文件,并通过脚本文件解析对应的“XX美食应用”的配置文件中的全局配置信息,如图3c所示,生成“XX美食应用”的原生页面,并且根据目标文字信息“烤鱼”进行相应的搜索,得到对应的搜索结果“1、诸葛烤鱼”、“2、麻辣烤鱼”、以及“3、探香烤鱼”。基于此,用户可以选择相应的餐厅进行订餐等服务。For example, as shown in FIG. 3b, when the user clicks on the hyperlink "roast fish", the script file in the operating system is loaded and run, and the corresponding "XX gourmet application" configuration file is parsed through the script file. The global configuration information in the middle, as shown in FIG. 3c, generates a native page of the "XX gourmet application", and performs a corresponding search according to the target text information "grilled fish" to obtain a corresponding search result "1, Zhuge grilled fish", " 2, spicy grilled fish, and "3, fragrant grilled fish." Based on this, the user can select the corresponding restaurant to order food and other services.
310、检测是否接收到对原生页面的快捷方式的添加指令。310. Detect whether an instruction to add a shortcut to the native page is received.
其中,在展示应用的原生页面时,原生页面上还可以包括添加快捷方式的选项。当检测到接收到对原生页面的快捷方式的添加指令时,执行步骤311。当未检测到接收到对原生页面的快捷方式的添加指令时,返回执行步骤309,继续展示该原生页面。Among them, when displaying the application's native page, the option to add a shortcut can also be included on the native page. When it is detected that an add instruction for a shortcut to the native page is received, step 311 is performed. When the add instruction that receives the shortcut to the native page is not detected, the process returns to step 309 to continue displaying the native page.
在一实施方式中,当用户使用应用的原生页面的相应功能之后,觉得满意则会下载应用的完整安装包进行安装使用,基于此,原生页面上还可以包括安装包下载的选项,当检测到用户选择安装包下载选项时,可以对该应用的安装包进行下载并安装。In an embodiment, after the user uses the corresponding function of the application's native page, he or she feels satisfied and downloads the application's complete installation package for installation and use. Based on this, the original page may also include an option to install the package download, when detected. When the user selects the installation package download option, the installation package of the application can be downloaded and installed.
311、在操作系统的桌面上添加快捷方式。311. Add a shortcut to the operating system's desktop.
其中,在检测到接收到对原生页面的快捷方式的添加指令之后,相应的会在操作系统的桌面上添加应用的快捷方式,该快捷方式作为该应用的指定入口,当检测到用户对快捷方式的触发操作时,电子设备会相应的获取应用的配置文件,根据配置文件生成应用的原生页面,并展示该原生页面。基于此,用户后续可以直接在桌面上进行快速打开,简化了用户的操作。After detecting an add instruction that receives a shortcut to the native page, a shortcut of the application is added to the desktop of the operating system, and the shortcut is used as a designated entry of the application, and when the user detects the shortcut When the triggering operation is performed, the electronic device acquires the configuration file of the application correspondingly, generates a native page of the application according to the configuration file, and displays the native page. Based on this, the user can quickly open it directly on the desktop, which simplifies the user's operation.
由上可知,本申请实施例通过检测浏览页面的文字信息,根据文字信息自动生成应用的超链接,在未安装应用的情况下,可以通过超链接快速的开启应用页面,并且还可以生成应用页面的桌面快捷方式,提升了应用页面的开启效率。As can be seen from the above, the embodiment of the present application automatically generates an application hyperlink according to the text information by detecting the text information of the browsing page, and can quickly open the application page by using a hyperlink without installing the application, and can also generate an application page. The desktop shortcut improves the efficiency of opening the application page.
进一步地,由于可以在未安装应用的情况下,切换开启应用的原生页面,使得用户可以对应用进行初步体验,在基于初步体验的情况下选择是否安装该应用,可以提升用户选择的多样性。Further, since the native page of the application can be switched on without the application being installed, the user can perform an initial experience on the application, and if the application is installed or not based on the initial experience, the diversity of the user selection can be improved.
本发明实施例提供一种应用页面的链接生成装置,包括:An embodiment of the present invention provides a link generating apparatus for an application page, including:
分析单元,用于对当前浏览页面进行分析,获取当前浏览页面中的文字信息;The analyzing unit is configured to analyze the current browsing page to obtain text information in the current browsing page;
确定单元,用于根据该文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;a determining unit, configured to match the database according to the text information, and determine corresponding target text information and an application identifier corresponding to the target text information;
收发单元,用于将该应用标识发送配置服务器,并接收该配置服务器根据该应用标识返回的配置文件;a transceiver unit, configured to send the application identifier to the configuration server, and receive a configuration file returned by the configuration server according to the application identifier;
转换单元,用于缓存该配置文件,并将该目标文字信息转换为超链接,该超链接与该配置文件关联;a conversion unit, configured to cache the configuration file, and convert the target text information into a hyperlink, where the hyperlink is associated with the configuration file;
生成单元,用于当检测到对该超链接的触发操作时,获取该配置文件生成应用的原生页面,并展示该原生页面。And a generating unit, configured to acquire a native page of the profile generation application and display the native page when the triggering operation on the hyperlink is detected.
在一种实施方式中,该分析单元,可以包括:文本分析子单元,用于对当前浏览页面中的文本进行分析,获取该文本中的文字信息;和/或图像分析子单元,用于对当前浏览页面中的图像进行分析,获取该图像中的文字信息;和/或语音分析子单元,用于对当前浏览页面中的语音进行分析,获取该语音中的文字信息。In an embodiment, the analyzing unit may include: a text analysis sub-unit, configured to analyze text in the currently browsed page, obtain text information in the text; and/or an image analysis sub-unit, configured to The image in the current browsing page is analyzed to obtain the text information in the image; and/or the voice analysis sub-unit is configured to analyze the voice in the currently browsed page, and obtain the text information in the voice.
在一种实施方式中,该数据库中包括预设关键词以及该预设关键词对应映射的应用标识,该确定单元,具体用于:将该文字信息与该数据库中的预设关键词进行匹配,将该文字信息中与该预设关键词一致的文字确定为目标文字信息;获取该预设关键词对应映射的应用标识,并将该目标文字信息与该应用标识进行关联。In an embodiment, the database includes a preset keyword and an application identifier of the preset keyword corresponding mapping, and the determining unit is specifically configured to: match the text information with a preset keyword in the database. And determining, in the text information, the text that is consistent with the preset keyword as the target text information; acquiring the application identifier corresponding to the preset keyword, and associating the target text information with the application identifier.
在一种实施方式中,该配置文件包括描述该应用的页面的全局配置信息,该生成单元,具体用于:当检测到对该超链接的触发操作时,加载并运行操作系统中的脚本文件;通过该脚本文件解析该全局配置信息,生成应用的原生页面,并展示该原生页面。In an embodiment, the configuration file includes global configuration information describing a page of the application, and the generating unit is specifically configured to: when the triggering operation on the hyperlink is detected, load and run the script file in the operating system. The global configuration information is parsed by the script file, the native page of the application is generated, and the native page is displayed.
在一种实施方式中,该装置还包括:检测单元,用于检测是否接收到对该原生页面的快捷方式的添加指令;添加单元,用于当检测到接收到对该原生页面的快捷方式的添加指 令时,在操作系统的桌面上添加该快捷方式。In an embodiment, the apparatus further includes: a detecting unit, configured to detect whether an instruction to add a shortcut to the native page is received; and an adding unit, configured to detect that a shortcut to the native page is received Add the shortcut on the operating system's desktop when adding an instruction.
在一实施例中还提供了一种应用页面的链接生成装置。请参阅图4,图4为本申请实施例提供的应用页面的链接生成装置的结构示意图。其中该应用页面的链接生成装置应用于电子设备,该应用页面的链接生成装置包括分析单元401、确定单元402、收发单元403、转换单元404以及生成单元405,如下:In an embodiment, a link generation device for an application page is also provided. Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a link generating apparatus for an application page according to an embodiment of the present application. The link generating device of the application page is applied to the electronic device, and the link generating device of the application page includes an analyzing unit 401, a determining unit 402, a transceiving unit 403, a converting unit 404, and a generating unit 405, as follows:
该分析单元401,用于对当前浏览页面进行分析,获取当前浏览页面中的文字信息。The analyzing unit 401 is configured to analyze the current browsing page to obtain text information in the current browsing page.
其中,当该分析单元401检测到用户使用电子设备浏览页面时,会自动的对当前浏览页面上的内容进行智能分析,比如,可以对当前浏览页面上的文本进行分析,获取该文本中的文字信息,也可以对当前浏览页面上的图像进行分析,获取该图像中的文字信息,还可以对当前浏览页面上的语音进行分析,获取该语音中的文字信息。When the analyzing unit 401 detects that the user browses the page by using the electronic device, it automatically analyzes the content on the currently browsed page, for example, can analyze the text on the currently browsed page, and obtain the text in the text. The information can also analyze the image on the current browsing page, obtain the text information in the image, and analyze the voice on the current browsing page to obtain the text information in the voice.
该确定单元402,用于根据该文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识。The determining unit 402 is configured to determine, according to the text information matching database, the corresponding target text information and the application identifier corresponding to the target text information.
其中,可以将每一应用的应用标识和预设关键词(即使用关键词)进行映射,存储在数据库中。该应用标识为可以为应用的应用名称。容易想到的是,可以即时的对数据库中的预设关键词进行更新。The application identifier of each application and the preset keyword (ie, using the keyword) may be mapped and stored in a database. The app is identified as an app name that can be an app. It is easy to think that the default keywords in the database can be updated in real time.
进一步的,该确定单元402可以获取的文字信息与数据库中存储的预设关键词进行匹配,将该文字信息中与该预设关键词一致的文字确定为目标文字信息,并且获取该预设关键词对应映射的应用标识,将目标文字信息与该应用标识进行关联。Further, the text information that can be acquired by the determining unit 402 is matched with the preset keyword stored in the database, and the text that is consistent with the preset keyword in the text information is determined as the target text information, and the preset key is obtained. The word corresponds to the application identifier of the mapping, and the target text information is associated with the application identifier.
该收发单元403,用于将该应用标识发送配置服务器,并接收该配置服务器根据该应用标识返回的配置文件。The transceiver unit 403 is configured to send the application identifier to the configuration server, and receive a configuration file returned by the configuration server according to the application identifier.
其中,该收发单元403将目标文字信息对应关联的应用标识发送至配置服务器,该配置服务器接收到该应用标识后,匹配该应用标识对应的配置文件,将得到的配置文件返回至电子设备中。The transceiver unit 403 sends the application identifier corresponding to the target text information to the configuration server. After receiving the application identifier, the configuration server matches the configuration file corresponding to the application identifier, and returns the obtained configuration file to the electronic device.
该转换单元404,用于缓存该配置文件,并将该目标文字信息转换为超链接,该超链接与该配置文件关联。The converting unit 404 is configured to cache the configuration file and convert the target text information into a hyperlink, and the hyperlink is associated with the configuration file.
其中,电子设备可以在存储空间中预设该配置文件的缓存空间,当电子设备接收到配置服务器返回的配置文件时,将该配置文件缓存在缓存空间中。后续电子设备可以随时调用该配置文件运行。The electronic device may preset a cache space of the configuration file in the storage space. When the electronic device receives the configuration file returned by the configuration server, the configuration file is cached in the cache space. Subsequent electronic devices can call this configuration file to run at any time.
进一步的,该转换单元404将目标文字信息中的文字转换为超链接文字,该超链接与该配置文件关联,即该超链接为配置文件的指定入口,当用户点击该超链接时,启动配置文件。Further, the converting unit 404 converts the text in the target text information into a hyperlink text, and the hyperlink is associated with the configuration file, that is, the hyperlink is a specified entry of the configuration file, and when the user clicks the hyperlink, the configuration is started. file.
该生成单元405,用于当检测到对该超链接的触发操作时,获取该配置文件生成应用的原生页面,并展示该原生页面。The generating unit 405 is configured to: when detecting a trigger operation on the hyperlink, acquire a native page of the profile generation application, and display the native page.
其中,该触发操作可以为单机操作,也可以为双击操作,此处不作具体限定,当检测 到用户对超链接的单机操作时,该生成单元405加载并运行操作系统中的脚本文件。The triggering operation may be a single-machine operation or a double-click operation, which is not specifically limited herein. When the user performs a stand-alone operation on the hyperlink, the generating unit 405 loads and runs the script file in the operating system.
在一实施方式中,该脚本文件可以为JavaScript脚本语言文件。In an embodiment, the script file can be a JavaScript scripting language file.
因此,该生成单元405通过加载并运行的JavaScript脚本语言文件解析配置文件中的全局配置信息,以生成应用的原生页面,并展示该原生页面的首页。Therefore, the generating unit 405 parses the global configuration information in the configuration file by the loaded and running JavaScript script language file to generate a native page of the application and displays the home page of the native page.
在一实施例中,参考图5,该分析单元401,可以包括:In an embodiment, referring to FIG. 5, the analyzing unit 401 may include:
文本分析子单元4011,用于对当前浏览页面中的文本进行分析,获取该文本中的文字信息;和/或a text analysis sub-unit 4011, configured to analyze text in the currently browsed page, obtain text information in the text; and/or
图像分析子单元4012,用于对当前浏览页面中的图像进行分析,获取该图像中的文字信息;和/或The image analysis sub-unit 4012 is configured to analyze an image in the currently browsed page to obtain text information in the image; and/or
语音分析子单元4013,用于对当前浏览页面中的语音进行分析,获取该语音中的文字信息。The voice analysis sub-unit 4013 is configured to analyze voices in the currently browsed page, and obtain text information in the voice.
在一实施例中,参考图5,该装置还包括:In an embodiment, referring to FIG. 5, the apparatus further includes:
检测单元406,用于检测是否接收到对该原生页面的快捷方式的添加指令;The detecting unit 406 is configured to detect whether an instruction to add a shortcut to the native page is received;
添加单元407,用于当检测到接收到对该原生页面的快捷方式的添加指令时,在操作系统的桌面上添加该快捷方式。The adding unit 407 is configured to add the shortcut on the desktop of the operating system when detecting that an add instruction for the shortcut of the native page is received.
其中,应用页面的链接生成装置中各单元执行的步骤可以参考上述方法实施例描述的方法步骤。该应用页面的链接生成装置可以集成在电子设备中,如手机、平板电脑等。The steps performed by the units in the link generation device of the application page may refer to the method steps described in the foregoing method embodiments. The link generation device of the application page can be integrated in an electronic device such as a mobile phone, a tablet, or the like.
具体实施时,以上各个单元可以作为独立的实体实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单位的具体实施可参见前面的实施例,在此不再赘述。In the specific implementation, the foregoing various units may be implemented as an independent entity, and may be implemented in any combination, and may be implemented as the same entity or a plurality of entities. For the specific implementation of the foregoing units, refer to the foregoing embodiments, and details are not described herein again.
本申请实施例还提供一种电子设备。请参阅图6,电子设备500包括处理器501以及存储器502。其中,处理器501与存储器502电性连接。An embodiment of the present application further provides an electronic device. Referring to FIG. 6, the electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
该处理器500是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行电子设备500的各种功能并处理数据,从而对电子设备500进行整体监控。The processor 500 is a control center of the electronic device 500, which connects various parts of the entire electronic device using various interfaces and lines, and executes by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502. The various functions of the electronic device 500 and processing of the data enable overall monitoring of the electronic device 500.
该存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。The memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running computer programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of electronic devices, etc. Moreover, memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 502 can also include a memory controller to provide processor 501 access to memory 502.
在本申请实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and is stored in the memory 502 by the processor 501. The computer program in which to implement various functions, as follows:
对当前浏览页面进行分析,获取当前浏览页面中的文字信息;Analyze the current browsing page to obtain the text information in the current browsing page;
根据该文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;And determining, according to the text information matching database, the corresponding target text information and the target text information corresponding to the application identifier;
将该应用标识发送配置服务器,并接收该配置服务器根据该应用标识返回的配置文件;Sending the application identifier to the configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
缓存该配置文件,并将该目标文字信息转换为超链接,该超链接与该配置文件关联;Caching the configuration file and converting the target text information into a hyperlink associated with the configuration file;
当检测到对该超链接的触发操作时,获取该配置文件生成应用的原生页面,并展示该原生页面。When a trigger operation on the hyperlink is detected, the native page of the profile generation application is obtained and the native page is displayed.
在某些实施方式中,在对当前浏览页面进行分析,获取当前浏览页面中的文字信息时,处理器501可以具体执行以下步骤:In some embodiments, when analyzing the current browsing page to obtain the text information in the current browsing page, the processor 501 may specifically perform the following steps:
对当前浏览页面中的文本进行分析,获取该文本中的文字信息;和/或Parsing the text in the current browsing page to obtain text information in the text; and/or
对当前浏览页面中的图像进行分析,获取该图像中的文字信息;和/或Parsing the image in the current browsing page to obtain text information in the image; and/or
对当前浏览页面中的语音进行分析,获取该语音中的文字信息。Analyze the voice in the current browsing page to obtain the text information in the voice.
在某些实施方式中,该数据库中包括预设关键词以及该预设关键词对应映射的应用标识,在根据该文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识时,处理器501可以具体执行以下步骤:In some embodiments, the database includes a preset keyword and an application identifier corresponding to the preset keyword mapping, and the corresponding target text information and the target text information corresponding to the application identifier are determined according to the text information matching database. The processor 501 can specifically perform the following steps:
将该文字信息与该数据库中的预设关键词进行匹配,将该文字信息中与该预设关键词一致的文字确定为目标文字信息;Matching the text information with a preset keyword in the database, and determining, in the text information, a text that is consistent with the preset keyword as the target text information;
获取该预设关键词对应映射的应用标识,并将该目标文字信息与该应用标识进行关联。Obtaining an application identifier corresponding to the preset keyword, and associating the target text information with the application identifier.
在某些实施方式中,该配置文件包括描述该应用的页面的全局配置信息,在当检测到对该超链接的触发操作时,获取该配置文件生成应用的原生页面,并展示该原生页面时,处理器501可以具体执行以下步骤:In some embodiments, the configuration file includes global configuration information describing a page of the application, when a trigger operation on the hyperlink is detected, a native page of the profile generation application is obtained, and the native page is displayed The processor 501 can specifically perform the following steps:
当检测到对该超链接的触发操作时,加载并运行操作系统中的脚本文件;When a trigger operation on the hyperlink is detected, the script file in the operating system is loaded and run;
通过该脚本文件解析该全局配置信息,生成应用的原生页面,并展示该原生页面。The global configuration information is parsed by the script file, the native page of the application is generated, and the native page is displayed.
在某些实施方式中,在生成应用的原生页面,并展示该原生页面之后,处理器501还可以具体执行以下步骤:In some embodiments, after generating the native page of the application and displaying the native page, the processor 501 may further perform the following steps:
检测是否接收到对该原生页面的快捷方式的添加指令;Detecting whether an instruction to add a shortcut to the native page is received;
当检测到接收到对该原生页面的快捷方式的添加指令时,在操作系统的桌面上添加该快捷方式。The shortcut is added to the operating system's desktop when it detects an add command that receives a shortcut to the native page.
在某些实施方式中,在缓存该配置文件,并将该目标文字信息转换为超链接之后,处理器501还可以具体执行以下步骤:In some embodiments, after the configuration file is cached and the target text information is converted into a hyperlink, the processor 501 may further perform the following steps:
检测是否接收到关闭浏览页面的操作指令;Detecting whether an operation instruction to close the browsing page is received;
当检测到接收到关闭浏览页面的操作指令时,将缓存的该配置文件删除。The cached configuration file is deleted when it is detected that an operation instruction to close the browsing page is received.
在某些实施方式中,在获取该配置文件生成应用的原生页面,并展示该原生页面之前,处理器501还可以具体执行以下步骤:In some embodiments, before acquiring the native page of the profile generation application and displaying the native page, the processor 501 may further perform the following steps:
检测该超链接是否接收到双击操作;Detecting whether the hyperlink receives a double click operation;
当检测到该超链接接收到双击操作时,判定为检测到对该超链接的触发操作。When it is detected that the hyperlink receives the double tap operation, it is determined that the trigger operation for the hyperlink is detected.
请一并参阅图7,在某些实施方式中,电子设备500还可以包括:显示器503、射频电路504、音频电路505以及电源506。其中,其中,显示器503、射频电路504、音频电路505以及电源506分别与处理器501电性连接。Referring to FIG. 7 together, in some embodiments, the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power source 506. The display 503, the radio frequency circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501, respectively.
该显示器503可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器503可以包括显示面板,在某些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。The display 503 can be used to display information entered by a user or information provided to a user, as well as various graphical user interfaces, which can be composed of graphics, text, icons, video, and any combination thereof. The display 503 can include a display panel. In some embodiments, the display panel can be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
该射频电路504可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
该音频电路505可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 505 can be used to provide an audio interface between the user and the electronic device through a speaker, a microphone.
该电源506可以用于给电子设备500的各个部件供电。在一些实施例中,电源506可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power source 506 can be used to power various components of the electronic device 500. In some embodiments, the power source 506 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
尽管图7中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 7, the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
本申请实施例还提供一种存储介质,该存储介质存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上述任一实施例中的应用页面的链接生成方法,比如:对当前浏览页面进行分析,获取当前浏览页面中的文字信息;根据该文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;将该应用标识发送配置服务器,并接收该配置服务器根据该应用标识返回的配置文件;缓存该配置文件,并将该目标文字信息转换为超链接,该超链接与该配置文件关联;当检测到对该超链接的触发操作时,获取该配置文件生成应用的原生页面,并展示该原生页面。The embodiment of the present application further provides a storage medium storing a computer program, when the computer program is run on a computer, causing the computer to execute a link generation method of an application page in any of the above embodiments, for example, The current browsing page is analyzed to obtain the text information in the current browsing page; according to the text information matching database, the corresponding target text information and the target text information corresponding to the application identifier are determined; the application identifier is sent to the configuration server, and the configuration is received. The server returns a configuration file according to the application identifier; caches the configuration file, and converts the target text information into a hyperlink, where the hyperlink is associated with the configuration file; when a trigger operation on the hyperlink is detected, obtaining the configuration The file generates the native page of the app and displays the native page.
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)、或者随机存取记忆体(Random Access Memory,RAM)等。In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
需要说明的是,对本申请实施例的应用页面的链接生成方法而言,本领域普通测试人员可以理解实现本申请实施例的应用页面的链接生成方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如应用页面的链接生成方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, in the link generation method of the application page of the embodiment of the present application, a common tester in the art can understand all or part of the process of implementing the link generation method of the application page in the embodiment of the present application, which can be Controlling related hardware to complete, the computer program can be stored in a computer readable storage medium, such as in a memory of the electronic device, and executed by at least one processor in the electronic device, during execution A flow of an embodiment including a link generation method such as an application page. The storage medium may be a magnetic disk, an optical disk, a read only memory, a random access memory, or the like.
对本申请实施例的应用页面的链接生成装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the link generation device of the application page of the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated module, if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .
以上对本申请实施例所提供的一种应用页面的链接生成方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method, device, storage medium and electronic device for generating a link of an application page provided by the embodiment of the present application are described in detail. The principle and implementation manner of the application are described in the following. The descriptions are only used to help understand the method of the present application and its core ideas; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scopes. The contents of this specification are not to be construed as limiting the application.

Claims (20)

  1. 一种应用页面的链接生成方法,应用于电子设备中,其中,包括:A link generation method for an application page is applied to an electronic device, including:
    对当前浏览页面进行分析,获取当前浏览页面中的文字信息;Analyze the current browsing page to obtain the text information in the current browsing page;
    根据所述文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;And determining, according to the text information matching database, the corresponding target text information and the target text information corresponding to the application identifier;
    将所述应用标识发送配置服务器,并接收所述配置服务器根据所述应用标识返回的配置文件;Sending the application identifier to the configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
    缓存所述配置文件,并将所述目标文字信息转换为超链接,所述超链接与所述配置文件关联;Caching the configuration file and converting the target text information into a hyperlink, the hyperlink being associated with the configuration file;
    当检测到对所述超链接的触发操作时,获取所述配置文件生成应用的原生页面,并展示所述原生页面。When a triggering operation on the hyperlink is detected, a native page of the profile generation application is obtained and the native page is displayed.
  2. 如权利要求1所述的应用页面的链接生成方法,其中,所述对当前浏览页面进行分析,获取当前浏览页面中的文字信息,包括:The method for generating a link of an application page according to claim 1, wherein the analyzing the current browsing page to obtain the text information in the current browsing page comprises:
    对当前浏览页面中的文本进行分析,获取所述文本中的文字信息;和/或Parsing text in the current browsing page to obtain text information in the text; and/or
    对当前浏览页面中的图像进行分析,获取所述图像中的文字信息;和/或Parsing the image in the current browsing page to obtain text information in the image; and/or
    对当前浏览页面中的语音进行分析,获取所述语音中的文字信息。The voice in the current browsing page is analyzed, and the text information in the voice is obtained.
  3. 如权利要求2所述的应用页面的链接生成方法,其中,所述数据库中包括预设关键词以及所述预设关键词对应映射的应用标识;The method for generating a link of an application page according to claim 2, wherein the database includes a preset keyword and an application identifier of the preset keyword corresponding mapping;
    所述根据所述文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识,包括:The determining, according to the text information matching database, the corresponding target text information and the target text information corresponding to the application identifier, including:
    将所述文字信息与所述数据库中的预设关键词进行匹配,将所述文字信息中与所述预设关键词一致的文字确定为目标文字信息;Matching the text information with a preset keyword in the database, and determining, in the text information, a text that is consistent with the preset keyword as target text information;
    获取所述预设关键词对应映射的应用标识,并将所述目标文字信息与所述应用标识进行关联。Obtaining an application identifier of the preset keyword corresponding mapping, and associating the target text information with the application identifier.
  4. 如权利要求1所述的应用页面的链接生成方法,其中,所述配置文件包括描述所述应用的页面的全局配置信息,所述当检测到对所述超链接的触发操作时,获取所述配置文件生成应用的原生页面,并展示所述原生页面,包括:The link generation method of an application page according to claim 1, wherein the configuration file includes global configuration information describing a page of the application, and when the triggering operation on the hyperlink is detected, acquiring the The configuration file generates a native page of the application and displays the native page, including:
    当检测到对所述超链接的触发操作时,加载并运行操作系统中的脚本文件;Loading and running a script file in the operating system when a triggering operation on the hyperlink is detected;
    通过所述脚本文件解析所述全局配置信息,生成应用的原生页面,并展示所述原生页面。Parsing the global configuration information by the script file, generating a native page of the application, and displaying the native page.
  5. 如权利要求4所述的应用页面的链接生成方法,其中,所述生成应用的原生页面,并展示所述原生页面之后,还包括:The method for generating a link of an application page according to claim 4, wherein after the generating the native page of the application and displaying the native page, the method further includes:
    检测是否接收到对所述原生页面的快捷方式的添加指令;Detecting whether an instruction to add a shortcut to the native page is received;
    当检测到接收到对所述原生页面的快捷方式的添加指令时,在操作系统的桌面上添加 所述快捷方式。The shortcut is added to the desktop of the operating system when it is detected that an add instruction to the shortcut of the native page is received.
  6. 如权利要求1所述的应用页面的链接生成方法,其中,所述缓存所述配置文件,并将所述目标文字信息转换为超链接之后,还包括:The method for generating a link of an application page according to claim 1, wherein the buffering the configuration file and converting the target text information into a hyperlink further comprises:
    检测是否接收到关闭浏览页面的操作指令;Detecting whether an operation instruction to close the browsing page is received;
    当检测到接收到关闭浏览页面的操作指令时,将缓存的所述配置文件删除。The cached configuration file is deleted when it is detected that an operation instruction to close the browsing page is received.
  7. 如权利要求1所述的应用页面的链接生成方法,其中,所述获取所述配置文件生成应用的原生页面,并展示所述原生页面之前,还包括:The method for generating a link of an application page according to claim 1, wherein before the acquiring the native page of the profile generation application and displaying the native page, the method further includes:
    检测所述超链接是否接收到双击操作;Detecting whether the hyperlink receives a double tap operation;
    当检测到所述超链接接收到双击操作时,判定为检测到对所述超链接的触发操作。When it is detected that the hyperlink receives a double tap operation, it is determined that a trigger operation on the hyperlink is detected.
  8. 一种应用页面的链接生成装置,其中,包括:A link generation device for an application page, comprising:
    分析单元,用于对当前浏览页面进行分析,获取当前浏览页面中的文字信息;The analyzing unit is configured to analyze the current browsing page to obtain text information in the current browsing page;
    确定单元,用于根据所述文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;a determining unit, configured to determine, according to the text information matching database, a corresponding target text information and an application identifier corresponding to the target text information;
    收发单元,用于将所述应用标识发送配置服务器,并接收所述配置服务器根据所述应用标识返回的配置文件;a transceiver unit, configured to send the application identifier to a configuration server, and receive a configuration file returned by the configuration server according to the application identifier;
    转换单元,用于缓存所述配置文件,并将所述目标文字信息转换为超链接,所述超链接与所述配置文件关联;a conversion unit, configured to cache the configuration file, and convert the target text information into a hyperlink, where the hyperlink is associated with the configuration file;
    生成单元,用于当检测到对所述超链接的触发操作时,获取所述配置文件生成应用的原生页面,并展示所述原生页面。And a generating unit, configured to acquire a native page of the profile generation application and display the native page when a triggering operation on the hyperlink is detected.
  9. 如权利要求8所述的应用页面的链接生成装置,其中,所述分析单元,包括:The link generating device of the application page of claim 8, wherein the analyzing unit comprises:
    文本分析子单元,用于对当前浏览页面中的文本进行分析,获取所述文本中的文字信息;和/或a text analysis sub-unit for analyzing text in the currently browsed page to obtain text information in the text; and/or
    图像分析子单元,用于对当前浏览页面中的图像进行分析,获取所述图像中的文字信息;和/或An image analysis subunit, configured to analyze an image in the currently browsed page to obtain text information in the image; and/or
    语音分析子单元,用于对当前浏览页面中的语音进行分析,获取所述语音中的文字信息。The voice analysis sub-unit is configured to analyze the voice in the currently browsed page, and obtain the text information in the voice.
  10. 如权利要求9所述的应用页面的链接生成装置,其中,所述数据库中包括预设关键词以及所述预设关键词对应映射的应用标识,所述确定单元,具体用于:The link generating device of the application page according to claim 9, wherein the database includes a preset keyword and an application identifier of the preset keyword corresponding mapping, and the determining unit is specifically configured to:
    将所述文字信息与所述数据库中的预设关键词进行匹配,将所述文字信息中与所述预设关键词一致的文字确定为目标文字信息;Matching the text information with a preset keyword in the database, and determining, in the text information, a text that is consistent with the preset keyword as target text information;
    获取所述预设关键词对应映射的应用标识,并将所述目标文字信息与所述应用标识进行关联。Obtaining an application identifier of the preset keyword corresponding mapping, and associating the target text information with the application identifier.
  11. 如权利要求8所述的应用页面的链接生成装置,其中,所述配置文件包括描述所述应用的页面的全局配置信息,所述生成单元,具体用于:The link generating device of the application page of claim 8, wherein the configuration file includes global configuration information describing a page of the application, and the generating unit is specifically configured to:
    当检测到对所述超链接的触发操作时,加载并运行操作系统中的脚本文件;Loading and running a script file in the operating system when a triggering operation on the hyperlink is detected;
    通过所述脚本文件解析所述全局配置信息,生成应用的原生页面,并展示所述原生页面。Parsing the global configuration information by the script file, generating a native page of the application, and displaying the native page.
  12. 如权利要求11所述的应用页面的链接生成装置,其中,所述装置还包括:The link generating device of the application page of claim 11, wherein the device further comprises:
    检测单元,用于检测是否接收到对所述原生页面的快捷方式的添加指令;a detecting unit, configured to detect whether an instruction to add a shortcut to the native page is received;
    添加单元,用于当检测到接收到对所述原生页面的快捷方式的添加指令时,在操作系统的桌面上添加所述快捷方式。And a adding unit, configured to add the shortcut on a desktop of the operating system when detecting an add instruction that receives a shortcut to the native page.
  13. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1所述的应用页面的链接生成方法。A storage medium having stored thereon a computer program, wherein when the computer program is run on a computer, the computer is caused to execute the link generation method of the application page according to claim 1.
  14. 一种电子设备,包括处理器和存储器,所述存储器有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行步骤:An electronic device comprising a processor and a memory, the memory having a computer program, wherein the processor is configured to perform the steps by calling the computer program:
    对当前浏览页面进行分析,获取当前浏览页面中的文字信息;Analyze the current browsing page to obtain the text information in the current browsing page;
    根据所述文字信息匹配数据库,确定相应的目标文字信息以及目标文字信息对应关联的应用标识;And determining, according to the text information matching database, the corresponding target text information and the target text information corresponding to the application identifier;
    将所述应用标识发送配置服务器,并接收所述配置服务器根据所述应用标识返回的配置文件;Sending the application identifier to the configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
    缓存所述配置文件,并将所述目标文字信息转换为超链接,所述超链接与所述配置文件关联;Caching the configuration file and converting the target text information into a hyperlink, the hyperlink being associated with the configuration file;
    当检测到对所述超链接的触发操作时,获取所述配置文件生成应用的原生页面,并展示所述原生页面。When a triggering operation on the hyperlink is detected, a native page of the profile generation application is obtained and the native page is displayed.
  15. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:The electronic device of claim 14 wherein said processor is operative to perform the steps by invoking said computer program:
    对当前浏览页面中的文本进行分析,获取所述文本中的文字信息;和/或Parsing text in the current browsing page to obtain text information in the text; and/or
    对当前浏览页面中的图像进行分析,获取所述图像中的文字信息;和/或Parsing the image in the current browsing page to obtain text information in the image; and/or
    对当前浏览页面中的语音进行分析,获取所述语音中的文字信息。The voice in the current browsing page is analyzed, and the text information in the voice is obtained.
  16. 如权利要求15所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:The electronic device of claim 15 wherein said processor is operative to perform the steps by invoking said computer program:
    将所述文字信息与所述数据库中的预设关键词进行匹配,将所述文字信息中与所述预设关键词一致的文字确定为目标文字信息;Matching the text information with a preset keyword in the database, and determining, in the text information, a text that is consistent with the preset keyword as target text information;
    获取所述预设关键词对应映射的应用标识,并将所述目标文字信息与所述应用标识进行关联。Obtaining an application identifier of the preset keyword corresponding mapping, and associating the target text information with the application identifier.
  17. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:The electronic device of claim 14 wherein said processor is operative to perform the steps by invoking said computer program:
    当检测到对所述超链接的触发操作时,加载并运行操作系统中的脚本文件;Loading and running a script file in the operating system when a triggering operation on the hyperlink is detected;
    通过所述脚本文件解析所述全局配置信息,生成应用的原生页面,并展示所述原生页面。Parsing the global configuration information by the script file, generating a native page of the application, and displaying the native page.
  18. 如权利要求17所述的电子设备,其中,所述处理器通过调用所述计算机程序,还用于执行步骤:The electronic device of claim 17 wherein said processor is further operative to perform the steps by invoking said computer program:
    检测是否接收到对所述原生页面的快捷方式的添加指令;Detecting whether an instruction to add a shortcut to the native page is received;
    当检测到接收到对所述原生页面的快捷方式的添加指令时,在操作系统的桌面上添加所述快捷方式。The shortcut is added to the desktop of the operating system when an add command is received that receives a shortcut to the native page.
  19. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,还用于执行步骤:The electronic device of claim 14, wherein said processor is further configured to perform the steps by invoking said computer program:
    检测是否接收到关闭浏览页面的操作指令;Detecting whether an operation instruction to close the browsing page is received;
    当检测到接收到关闭浏览页面的操作指令时,将缓存的所述配置文件删除。The cached configuration file is deleted when it is detected that an operation instruction to close the browsing page is received.
  20. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,还用于执行步骤:The electronic device of claim 14, wherein said processor is further configured to perform the steps by invoking said computer program:
    检测所述超链接是否接收到双击操作;Detecting whether the hyperlink receives a double tap operation;
    当检测到所述超链接接收到双击操作时,判定为检测到对所述超链接的触发操作。When it is detected that the hyperlink receives a double tap operation, it is determined that a trigger operation on the hyperlink is detected.
PCT/CN2019/070260 2018-02-02 2019-01-03 Method and device for generating link for application page, storage medium, and electronic apparatus WO2019149026A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810107327.7A CN108334608B (en) 2018-02-02 2018-02-02 Link generation method and device of application page, storage medium and electronic equipment
CN201810107327.7 2018-02-02

Publications (1)

Publication Number Publication Date
WO2019149026A1 true WO2019149026A1 (en) 2019-08-08

Family

ID=62927859

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/070260 WO2019149026A1 (en) 2018-02-02 2019-01-03 Method and device for generating link for application page, storage medium, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN108334608B (en)
WO (1) WO2019149026A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334608B (en) * 2018-02-02 2020-08-04 Oppo广东移动通信有限公司 Link generation method and device of application page, storage medium and electronic equipment
CN108391009A (en) * 2018-02-13 2018-08-10 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN109408136B (en) * 2018-09-12 2021-06-15 Oppo广东移动通信有限公司 Information processing method, information processing apparatus, storage medium, and electronic device
CN109358936B (en) * 2018-09-29 2021-09-10 Oppo广东移动通信有限公司 Information processing method, device, storage medium, electronic device and system
CN111506846B (en) * 2019-01-30 2023-05-02 杭州海康威视数字技术股份有限公司 Web page generation method and device, electronic equipment and storage medium
CN109902245A (en) * 2019-02-01 2019-06-18 天津字节跳动科技有限公司 Interactive information providing method and device
CN109902726B (en) * 2019-02-02 2022-07-12 天津字节跳动科技有限公司 Resume information processing method and device
CN110083789B (en) * 2019-04-29 2021-08-06 百度在线网络技术(北京)有限公司 Applet page acquisition method, server, client and electronic equipment
CN111158831B (en) * 2019-12-30 2024-01-16 腾讯科技(深圳)有限公司 Data processing method, device, equipment and medium based on instant messaging application
CN112256991B (en) * 2020-09-17 2024-04-09 上海连尚网络科技有限公司 Method and equipment for native rendering of information flow fusing multiple link addresses
CN112231599B (en) * 2020-09-28 2024-03-08 深圳市世强元件网络有限公司 Method for collecting component types in component electronic commerce platform
CN112861504A (en) * 2021-02-08 2021-05-28 北京百度网讯科技有限公司 Text interaction method, device, equipment, storage medium and program product
CN116954441A (en) * 2022-04-15 2023-10-27 华为技术有限公司 Equipment control method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101289A1 (en) * 2012-10-09 2014-04-10 Agile Fusion Corporation Methods and systems for selecting device applications
CN107330058A (en) * 2017-06-29 2017-11-07 广东欧珀移动通信有限公司 Application searches method, mobile terminal and computer-readable recording medium
CN107329743A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 Methods of exhibiting, device and the storage medium of five application page
CN107590174A (en) * 2017-07-31 2018-01-16 北京五八信息技术有限公司 Page access method and device
CN108334608A (en) * 2018-02-02 2018-07-27 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7617121B1 (en) * 2000-11-10 2009-11-10 Platform-A Inc. Apparatus and method for hyperlinking specific words in content to turn the words into advertisements
CN101452452A (en) * 2007-12-06 2009-06-10 杨云国 Searching method by utilizing original characters on web page
CN101807187A (en) * 2009-02-16 2010-08-18 杨云国 Browsing information-based instant search method
CN104796536A (en) * 2015-03-17 2015-07-22 乐视致新电子科技(天津)有限公司 Voice assisting method and device during communication
CN106293359B (en) * 2016-08-09 2019-10-22 深圳市金立通信设备有限公司 A kind of method and terminal of caller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101289A1 (en) * 2012-10-09 2014-04-10 Agile Fusion Corporation Methods and systems for selecting device applications
CN107329743A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 Methods of exhibiting, device and the storage medium of five application page
CN107330058A (en) * 2017-06-29 2017-11-07 广东欧珀移动通信有限公司 Application searches method, mobile terminal and computer-readable recording medium
CN107590174A (en) * 2017-07-31 2018-01-16 北京五八信息技术有限公司 Page access method and device
CN108334608A (en) * 2018-02-02 2018-07-27 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page

Also Published As

Publication number Publication date
CN108334608A (en) 2018-07-27
CN108334608B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
WO2019149026A1 (en) Method and device for generating link for application page, storage medium, and electronic apparatus
WO2019157894A1 (en) Application page display method and apparatus, storage medium and electronic device
WO2019157880A1 (en) Method and device for generating link for application page, storage medium, and electronic apparatus
WO2019149207A1 (en) Display method, device, storage medium and electronic equipment for application page
US20210191996A1 (en) Method for displaying application page, non-transitory storage medium and electronic device
WO2019157852A1 (en) Method and apparatus for launching application page, and electronic device
WO2019157860A1 (en) Method and device for launching application interface, storage medium, and electronic apparatus
US10074365B2 (en) Voice control method, mobile terminal device, and voice control system
CN108287917B (en) File opening method and device, storage medium and electronic equipment
WO2020063019A1 (en) Information processing method, device, storage medium, electronic device and system
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
WO2020052337A1 (en) Information processing method and apparatus, storage medium, and electronic device
WO2015096747A1 (en) Operation response method, client, browser and system
CN108319708B (en) Video playing method and device, storage medium and electronic equipment
WO2020078174A1 (en) Application lookup method, storage medium, and electronic device
US20160156774A1 (en) Techniques for enhancing content on a mobile device
WO2020001165A1 (en) Voice control method and apparatus, and storage medium and electronic device
WO2020206691A1 (en) Application processing method and apparatus, storage medium, and electronic device
WO2017092312A1 (en) Method of browsing webpage on browser and device
CN109948090B (en) Webpage loading method and device
WO2021135578A1 (en) Page processing method and apparatus, and storage medium and terminal device
CN108345478B (en) Application processing method and device, storage medium and electronic equipment
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
CN108563476B (en) Application program running method and device, storage medium and electronic equipment

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

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

Country of ref document: EP

Kind code of ref document: A1