CN108334608B - Link generation method and device of application page, storage medium and electronic equipment - Google Patents

Link generation method and device of application page, storage medium and electronic equipment Download PDF

Info

Publication number
CN108334608B
CN108334608B CN201810107327.7A CN201810107327A CN108334608B CN 108334608 B CN108334608 B CN 108334608B CN 201810107327 A CN201810107327 A CN 201810107327A CN 108334608 B CN108334608 B CN 108334608B
Authority
CN
China
Prior art keywords
application
page
character information
configuration file
hyperlink
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810107327.7A
Other languages
Chinese (zh)
Other versions
CN108334608A (en
Inventor
姚文定
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810107327.7A priority Critical patent/CN108334608B/en
Publication of CN108334608A publication Critical patent/CN108334608A/en
Priority to PCT/CN2019/070260 priority patent/WO2019149026A1/en
Application granted granted Critical
Publication of CN108334608B publication Critical patent/CN108334608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The embodiment of the application discloses a link generation method and device of an application page, a storage medium and electronic equipment, wherein the method comprises the steps of analyzing a current browsing page and acquiring character information in the current browsing page; according to the character information matching database, determining corresponding target character information and application identification corresponding to the target character information; sending the application identifier to a configuration server, and receiving a configuration file returned by the configuration server according to the application identifier; caching the configuration file, converting the target text information into a hyperlink, and associating the hyperlink with the configuration file; and when the trigger operation on the hyperlink is detected, acquiring the configuration file to generate a native page of the application, and displaying the native page. According to the method and the device, the character information of the browsed page is detected, the hyperlink of the application is automatically generated according to the character information, the application page can be quickly opened through the hyperlink under the condition that the application is not installed, and the opening efficiency of the application page is improved.

Description

Link generation method and device of application page, storage medium and electronic equipment
Technical Field
The application relates to the technical field of electronic equipment, in particular to a link generation method and device of an application page, a storage medium and electronic equipment.
Background
At present, with the rapid development of terminal technology, for example, smart phones are more and more deeply inserted into the lives of people, various applications, such as a photographing application, a game application, a map application, and the like, can be installed on the smart phones for users to use.
However, as the functions of the applications are more and more powerful, the storage space occupied by each application is also more and more large, and the normal operation of the smartphone system is likely to be affected.
Disclosure of Invention
The embodiment of the application provides a link generation method and device for an application page, a storage medium and electronic equipment, and the efficiency of opening the application page can be improved.
In a first aspect, an embodiment of the present application provides a method for generating a link of an application page, which is applied to an electronic device, and includes:
analyzing the current browsing page to obtain the text information in the current browsing page;
according to the character information matching database, determining corresponding target character information and application identification corresponding to the target character information;
sending the application identifier to a 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, wherein the hyperlink is associated with the configuration file;
and when the trigger operation on the hyperlink is detected, acquiring a native page of the configuration file generation application, and displaying the native page.
In a second aspect, an embodiment of the present application provides an apparatus for generating a link of an application page, including:
the analysis unit is used for analyzing the current browsed page and acquiring the character information in the current browsed page;
the determining unit is used for determining corresponding target character information and application identification corresponding to the target character information according to the character information matching database;
the receiving and sending unit is used for sending the application identifier to a configuration server and receiving a configuration file returned by the configuration server according to the application identifier;
the conversion unit is used for caching the configuration file and converting the target text information into a hyperlink, and the hyperlink is associated with the configuration file;
and the generating unit is used for acquiring a native page of the configuration file generation application and displaying the native page when the triggering operation of the hyperlink is detected.
In a third aspect, a storage medium is provided in this application, and a computer program is stored thereon, and when the computer program runs on a computer, the computer is caused to execute the link generation method for an application page provided in any embodiment of this application.
In a fourth aspect, an electronic device provided in this embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the method for generating a link of an application page according to any embodiment of the present application by calling the computer program.
According to the method and the device, the character information of the browsed page is detected, the hyperlink of the application is automatically generated according to the character information, the application page can be quickly opened through the hyperlink under the condition that the application is not installed, and the opening efficiency of the application page is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a method for generating a link 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. 3a is an application scenario diagram of a link generation method for an application page according to an embodiment of the present application.
Fig. 3b is a schematic view of another application scenario of the method for generating a link of an application page according to the embodiment of the present application.
Fig. 3c is a schematic view of another application scenario of the method for generating a link of an application page according to the embodiment of the present application.
Fig. 4 is a schematic structural diagram of a link generation apparatus for an application page according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of a link generation apparatus for 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.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution body of the method for generating the link of the application page may be a link generating device of the application page provided in the embodiment of the present application, or an electronic device integrated with the link generating device of the application page, where the link generating device of the application page may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment of a method for generating a link of an application page according to an embodiment of the present application, and as shown in fig. 1, the implementation environment includes a smartphone 10, a communication network 20, and a server 30.
The operating system of the smartphone 10 may be an android system, a saiban system, an apple system, or the like. The smartphone 10 and the server 30 are connected via a communication network 20.
The communication network 20 includes a wireless network and a wired network. Wherein the wireless network comprises 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 therein a configuration file of an application, which contains data and operation logic required for operating the application, and global configuration information indicating which pages the application is composed of, configuring a window background color of application pages, configuring a navigation bar style, configuring a default title, and the like. The smart phone 10 may obtain a configuration file of an application from the server 30, and generate and display a native page of the application according to the configuration file, where it is to be understood that the native page may also be called as an applet in a popular way, so that the application is run on the premise that the application is not installed, and data required by the application running may be immediately obtained from the server 30.
The server 30 may also perform an update operation on the profile of the application to provide the updated profile to the smartphone 10.
In an embodiment, the server 30 may further store an installation file of the application, and the smartphone 10 may further obtain the 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 may also update the installation files of the application to provide the smartphone 10 with updated installation files.
Referring to fig. 2, fig. 2 is a flowchart illustrating 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 for the application page provided by the embodiment of the application can be as follows:
201. and analyzing the current browsing page to acquire the text information in the current browsing page.
It is understood that the browsing page mentioned in the embodiment of the present application may be a browsing page of a browser, and may also 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, and so on.
When a user browses a page by using the electronic device, the content on the currently browsed page can be automatically and intelligently analyzed, for example, a text on the currently browsed page can be analyzed to obtain text information in the text, an image on the currently browsed page can also be analyzed to obtain text information in the image, and a voice on the currently browsed page can also be analyzed to obtain text information in the voice.
202. And according to the character information matching database, determining corresponding target character information and application identification corresponding to the target character information.
It should be noted that, because each application has a corresponding usage habit, that is, each application includes a corresponding usage keyword, for example, the usage keywords included in the gourmet application may include: grilled fish, Yuejie, Chuan vegetable, etc. The movie application may include the following use keywords: "Agan Zhengchuan", "Piano Shi" and "childhood of years" etc.
The application identifier of each application and a preset keyword (i.e., a use keyword) may be mapped and stored in the database. The application identification may be an application name of the application. It is easy to think that the preset keywords in the database can be updated instantly.
Further, the text information obtained in step 201 may be matched with a preset keyword stored in a database, a text in the text information that is consistent with the preset keyword is determined as target text information, an application identifier mapped corresponding to the preset keyword is obtained, and the target text information is associated with the application identifier.
203. And sending the application identifier to a configuration server, and receiving 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, and the configuration file contains data and operation logic required for operating the application and global configuration information, where the global configuration information indicates which pages the application is composed of, configures a window background color of an application page, configures a navigation bar style, configures a default title, and so on.
The electronic equipment sends the application identification correspondingly associated with the target character information to the configuration server, and the configuration server matches the configuration file corresponding to the application identification after receiving the application identification and returns the obtained configuration file to the electronic equipment.
In one embodiment, the configuration server may further store 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 through a third-party supplier or a developer, and the third-party supplier and the developer can update and delete the configuration file and the installation file in the configuration server.
204. And caching the configuration file and converting the target text information into a hyperlink.
The electronic device may preset a cache space of the configuration file in the storage space, and when receiving the configuration file returned by the configuration server, the electronic device caches the configuration file in the cache space. The subsequent electronic equipment can call the configuration file to run at any time.
Furthermore, the characters in the target character information are converted into hyperlink characters, the hyperlink is associated with the configuration file, namely the hyperlink is a designated entry of the configuration file, and when a user clicks the hyperlink, the configuration file is started.
In one embodiment, for the convenience of the user, when the user's long press operation on the hyperlink is detected, the function profile information, the authority information, and the like of the application may be correspondingly presented, for example, the profile information and the authority information may be provided for "food application developed by XX company, so that the user may use the function of finding a restaurant, and the application may use the positioning authority and the camera authority".
205. And when the trigger operation on the hyperlink is detected, acquiring the configuration file to generate a native page of the application, and displaying the native page.
The trigger operation may be a single-machine operation or a double-click operation, which is not specifically limited herein, and when a single-machine operation of a user on a hyperlink is detected, a script file in an operating system is loaded and run.
In one embodiment, the script file can be a JavaScript script language file, which is a script language belonging to the Web, and has been widely used in Web application development to add various dynamic functions to a Web page, so as to provide a smoother and more beautiful browsing effect for a user.
Based on the method, the global configuration information in the configuration file is analyzed through the loaded and operated JavaScript language file, so that a native page of the application is generated, and a home page of the native page is displayed.
Therefore, according to the embodiment of the application, the character information of the browsed page is detected, the hyperlink of the application is automatically generated according to the character information, the application page can be quickly opened through the hyperlink under the condition that the application is not installed, and the opening efficiency of the application page is improved.
Further, the native page of the application can be switched and opened under the condition that the application is not installed, so that the user can perform preliminary experience on the application, whether the application is installed or not is selected under the condition based on the preliminary experience, and the diversity of user selection can be improved.
The classification method of the present application will be further described below on the basis of the methods described in the above embodiments. Referring to fig. 3, the method for generating a link of an application page may include:
301. and analyzing the text in the current browsing page to acquire the character information in the text.
When a user browses a page by using the electronic device, the content on the currently browsed page can be automatically and intelligently analyzed, for example, a text on the currently browsed page can be analyzed to obtain text information in the text.
For example, as shown in FIG. 3a, for a chat browsing page of a chat application, user 1 sends a message: "go to the dry and mani after work", user 2 replies the message: eating roasted fish to remove meat. At the moment, the electronic equipment can acquire the text information 'chang gan after work' and 'chang roast fish' in the current browsing page through analysis.
302. And analyzing the image in the current browsing page to acquire the character information in the image.
When a user browses a page by using the electronic device, the content on the currently browsed page is automatically and intelligently analyzed, for example, the texture feature analysis can be performed on an image on the currently browsed page through a convolutional neural network, so as to further extract text information contained in the image. The technology of analyzing the image into text is mature at present, and therefore will not be described in detail.
303. And analyzing the voice in the current browsing page to acquire the text information in the voice.
When a user browses a page by using the electronic device, the content on the currently browsed page is automatically and intelligently analyzed, for example, MFCC feature extraction may be performed on speech on the currently browsed page, and then speech recognition analysis may be performed according to the extracted features, so as to further extract text information included in the speech. The technology of analyzing speech into text is mature at present, and therefore will not be described in detail.
304. And matching the character information with preset keywords in a database, and determining characters consistent with the preset keywords in the character information as target character information.
It should be noted that, because each application has a corresponding usage habit, that is, each application includes a corresponding usage keyword, for example, the usage keywords included in the gourmet application may include: grilled fish, Yuejie, Chuan vegetable, etc. The movie application may include the following use keywords: "Agan Zhengchuan", "Piano Shi" and "childhood of years" etc.
The application identification of each application and a preset keyword (namely a use keyword) are mapped and stored in a database. The application identification may be an application name of the application.
Further, matching the acquired text information with preset keywords stored in a database, and determining the text consistent with the preset keywords in the text information as target text information.
For example, as shown in fig. 3a, the text information "take a person after work" and "take a grilled fish to remove a" are matched with the preset keywords in the database, and the text information "take a grilled fish to remove a" is matched with the preset keywords "grilled fish", so that the text "grilled fish" in the text information "take a grilled fish to remove a" is determined as the target text information.
305. And acquiring an application identifier mapped corresponding to the preset keyword, and associating the target character information with the application identifier.
When the character information is detected to have characters consistent with the preset keywords and the characters are determined as the target character information, the application identification mapped corresponding to the preset keywords is obtained, and the target character information is associated with the application identification.
For example, as shown in fig. 3a, the application that obtains the mapping corresponding to the preset keyword "grilled fish" is identified as "XX gourmet application". The application identification "XX gourmet application" is associated with the target textual information "grilled fish".
306. And sending the application identifier to a configuration server, and receiving 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, and the configuration file contains data and operation logic required for operating the application and global configuration information, where the global configuration information indicates which pages the application is composed of, configures a window background color of an application page, configures a navigation bar style, configures a default title, and so on.
The electronic equipment sends the application identification correspondingly associated with the target character information to the configuration server, and the configuration server matches the configuration file corresponding to the application identification after receiving the application identification and returns the obtained configuration file to the electronic equipment.
In one embodiment, the configuration server may further store 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 through a third-party supplier or a developer, and the third-party supplier and the developer can update and delete the configuration file and the installation file in the configuration server.
307. And caching the configuration file and converting the target text information into a hyperlink.
The electronic device may preset a cache space of the configuration file in the storage space, and when receiving the configuration file returned by the configuration server, the electronic device caches the configuration file in the cache space. The subsequent electronic equipment can call the configuration file to run at any time. The buffer space can empty the content in the buffer space when the electronic device is powered off.
Further, the text in the target text information is converted into hyperlink text, the hyperlink is associated with the configuration file, namely the hyperlink also specifies an entry of the configuration file, and when the user clicks the hyperlink, the configuration file is started.
For example, as shown in fig. 3b, the electronic device converts the target text information "grilled fish" into a hyperlink text, and when the user clicks the hyperlink text, the corresponding configuration file is started.
In an embodiment, after caching the configuration file and converting the target text information into a hyperlink, the method further includes:
(1) detecting whether an operation instruction for closing a browsing page is received;
when detecting that the operation instruction for closing the browsing page is received, executing the step (2), and when detecting that the operation instruction for closing the browsing page is not received, continuing to execute the step 308.
(2) Deleting the cached configuration file.
When the operation instruction for closing the browsing page is detected to be received, it is indicated that the specified entry for operating the configuration file is closed, and at this time, if the cached configuration file is continuously stored in the cache space, the storage space of the electronic device is wasted.
Based on the method, when the operation instruction that the user closes the browsing page is detected to be received, the cached configuration file is deleted, and therefore the storage space of the electronic equipment is saved.
308. And when the trigger operation on the hyperlink is detected, loading and running a script file in the operating system.
The trigger operation may be a single-click operation, a double-click operation, or a long-time press operation, which is described by taking the single-click operation as an example, and when it is detected that the user performs the single-click operation on the hyperlink, the script file in the operating system is loaded and run.
309. And analyzing the global configuration information through the script file, generating a native page of the application, and displaying the native page.
The script file can be a JavaScript script language file, global configuration information in the configuration file is analyzed through the loaded and operated JavaScript script language file, the analyzed display elements are converted into views based on the original, page rendering is carried out on the original views dynamically, and therefore an original page is obtained, and the original page is displayed.
In one embodiment, after the native page is displayed, corresponding search can be performed according to the target text information, so that the step of manually inputting the keywords by the user is saved.
For example, as shown in fig. 3b, when a click operation of a user on a hyperlink "grilled fish" is detected, a script file in an operating system is loaded and run, global configuration information in a configuration file of a corresponding "XX food application" is analyzed through the script file, as shown in fig. 3c, a native page of the "XX food application" is generated, and corresponding search results "1, orychop grilled fish", "2, spicy grilled fish", and "3, seared fish" are obtained by performing corresponding search according to target text information "grilled fish". Based on the above, the user can select a corresponding restaurant to order the meal and other services.
310. Whether an adding instruction of a shortcut to the native page is received is detected.
When the native page of the application is displayed, the native page can further comprise an option of adding a shortcut. When it is detected that an add instruction of a shortcut to the native page is received, step 311 is performed. When the receiving of the adding instruction of the shortcut to the native page is not detected, the step 309 is returned to be executed, and the native page is continuously displayed.
In an embodiment, after the user uses the corresponding function of the native page of the application, the user feels satisfied and then downloads the complete installation package of the application for installation.
311. And adding shortcuts on the desktop of the operating system.
After detecting that an adding instruction of a shortcut to a native page is received, correspondingly adding the shortcut of an application on a desktop of an operating system, wherein the shortcut is used as a designated entry of the application, and when detecting that a user triggers the shortcut, the electronic device correspondingly acquires a configuration file of the application, generates the native page of the application according to the configuration file, and displays the native page. Based on this, the user can directly and rapidly open on the desktop subsequently, and the operation of the user is simplified.
Therefore, according to the embodiment of the application, the character information of the browsed page is detected, the hyperlink of the application is automatically generated according to the character information, the application page can be quickly opened through the hyperlink under the condition that the application is not installed, the desktop shortcut of the application page can be generated, and the opening efficiency of the application page is improved.
Further, the native page of the application can be switched and opened under the condition that the application is not installed, so that the user can perform preliminary experience on the application, whether the application is installed or not is selected under the condition based on the preliminary experience, and the diversity of user selection can be improved.
In one embodiment, a link generation device for an application page is further provided. Referring to fig. 4, fig. 4 is a schematic structural diagram of a link generation 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 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 analysis unit 401 is configured to analyze a currently browsed page and acquire text information in the currently browsed page.
When the analysis unit 401 detects that the user browses the page using the electronic device, the content on the currently browsed page is automatically and intelligently analyzed, for example, a text on the currently browsed page may be analyzed to obtain text information in the text, an image on the currently browsed page may also be analyzed to obtain text information in the image, and a voice on the currently browsed page may also be analyzed to obtain text information in the voice.
The determining unit 402 is configured to determine corresponding target text information and an application identifier associated with the target text information according to the text information matching database.
The application identifier of each application and a preset keyword (i.e., a use keyword) may be mapped and stored in the database. The application identification may be an application name of the application. It is easy to think that the preset keywords in the database can be updated instantly.
Further, the determining unit 402 may match the obtained text information with a preset keyword stored in a database, determine a text in the text information that is consistent with the preset keyword as target text information, obtain an application identifier mapped corresponding to the preset keyword, and associate the target text information with the application identifier.
The transceiving unit 403 is 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.
The transceiving unit 403 sends the application identifier associated with the target text message to the configuration server, and 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 conversion unit 404 is configured to cache the configuration file and convert the target text information into a hyperlink, where the hyperlink is associated with the configuration file.
The electronic device may preset a cache space of the configuration file in the storage space, and when receiving the configuration file returned by the configuration server, the electronic device caches the configuration file in the cache space. The subsequent electronic equipment can call the configuration file to run at any time.
Further, the conversion unit 404 converts the text in the target text information into a hyperlink text, where the hyperlink is associated with the configuration file, that is, the hyperlink is a designated entry of the configuration file, and when the user clicks the hyperlink, the configuration file is started.
The generating unit 405 is configured to, when a trigger operation on the hyperlink is detected, obtain a native page of the configuration file 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, and when a single-machine operation of a user on a hyperlink is detected, the generating unit 405 loads and runs a script file in an operating system.
In one embodiment, the script file may be a JavaScript scripting language file.
Based on this, the generating unit 405 parses the global configuration information in the configuration file through the loaded and run JavaScript scripting language file to generate a native page of the application, and displays a home page of the native page.
In an embodiment, referring to fig. 5, the analysis unit 401 may include:
the text analysis sub-unit 4011 is configured to analyze a text in a currently browsed page to obtain text information in the text; and/or
The image analysis sub-unit 4012 is configured to analyze an image in a currently browsed page to obtain text information in the image; and/or
And the voice analysis subunit 4013 is configured to analyze the voice in the currently browsed page, and acquire text information in the voice.
In an embodiment, referring to fig. 5, the apparatus further comprises:
a detecting unit 406, configured to detect whether an instruction for adding a shortcut to the native page is received;
an adding unit 407, configured to add the shortcut on the desktop of the operating system when detecting that an adding instruction of the shortcut to the native page is received.
The steps performed by each unit in the link generation device of the application page may refer to the method steps described in the above method embodiments. The link generation device of the application page can be integrated in electronic equipment, such as a mobile phone, a tablet computer and the like.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing embodiments, which are not described herein again.
Therefore, the link generation device for the application page provided by the embodiment automatically generates the hyperlink of the application according to the text information by detecting the text information of the browsed page, and can quickly open the application page through the hyperlink under the condition that the application is not installed, so that the opening efficiency of the application page is improved.
The embodiment of the application also provides the electronic equipment. Referring to fig. 6, an 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, connects various parts of the whole electronic device using various interfaces and lines, performs various functions of the electronic device 500 by running or loading a computer program stored in the memory 502, and calls data stored in the memory 502, and processes the data, thereby performing overall monitoring of the electronic device 500.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 502 may include high speed random access memory, and may 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, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
analyzing the current browsing page to obtain the text information in the current browsing page;
according to the character information matching database, determining corresponding target character information and application identification corresponding to the target character information;
sending the application identifier to a 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, wherein the hyperlink is associated with the configuration file;
and when the trigger operation on the hyperlink is detected, acquiring a native page of the configuration file generation application, and displaying the native page.
In some embodiments, when analyzing the currently browsed page and acquiring text information in the currently browsed page, the processor 501 may specifically perform the following steps:
analyzing a text in a current browsing page to acquire character information in the text; and/or
Analyzing an image in a current browsing page to acquire character information in the image; and/or
And analyzing the voice in the current browsing page to acquire the text information in the voice.
In some embodiments, the database includes a preset keyword and an application identifier mapped to the preset keyword, and when the corresponding target text information and the application identifier associated with the target text information are determined according to the matching of the text information with the database, the processor 501 may specifically execute the following steps:
matching the character information with a preset keyword in the database, and determining a character consistent with the preset keyword in the character information as target character information;
and acquiring an application identifier mapped corresponding to the preset keyword, and associating the target character information with the application identifier.
In some embodiments, the configuration file includes global configuration information describing a page of the application, and when the trigger operation on the hyperlink is detected, the processor 501 obtains a native page of the configuration file generation application, and displays the native page, and specifically performs the following steps:
when the trigger operation of the hyperlink is detected, loading and running a script file in an operating system;
and analyzing the global configuration information through the script file, generating a native page of the application, and displaying the native page.
In some embodiments, after generating a native page of an application and presenting the native page, the processor 501 may further specifically perform the following steps:
detecting whether an adding instruction of a shortcut to the native page is received;
and when detecting that an adding instruction of the shortcut of the native page is received, adding the shortcut on the desktop of the operating system.
In some embodiments, after caching the configuration file and converting the target text information into a hyperlink, the processor 501 may further specifically perform the following steps:
detecting whether an operation instruction for closing a browsing page is received;
and deleting the cached configuration file when detecting that an operation instruction for closing the browsing page is received.
Therefore, the electronic equipment provided by the embodiment of the application automatically generates the hyperlink of the application according to the text information by detecting the text information of the browsed page, and can quickly open the application page through the hyperlink under the condition that the application is not installed, so that the opening efficiency of the application page is improved.
Referring to fig. 7, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the rf circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may include a display panel, which may be configured in the form of a liquid crystal display (L acquisition crystal display, &lttttranslation = L "&tttl &/ttt &tttgtt CD), or an Organic light Emitting Diode (Organic L light-Emitting Diode, O L ED), or the like, in some embodiments.
The rf circuit 504 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The power source 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 7, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the link generation method for an application page in any of the above embodiments, such as: analyzing the current browsing page to obtain the text information in the current browsing page; according to the character information matching database, determining corresponding target character information and application identification corresponding to the target character information; sending the application identifier to a 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, wherein the hyperlink is associated with the configuration file; and when the trigger operation on the hyperlink is detected, acquiring a native page of the configuration file generation application, and displaying the native page.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the method for generating a link of an application page in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process for implementing the method for generating a link of an application page in the embodiment of the present application can be completed by controlling related hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the method for generating a link of an application page can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
For the link generation device for application pages in the embodiments of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is given to a method, an apparatus, a storage medium, and an electronic device for generating a link of an application page provided in an embodiment of the present application, where a specific example is applied to explain the principle and an implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (7)

1. A method for generating a link of an application page is applied to electronic equipment, and is characterized by comprising the following steps:
analyzing a text in a current browsing page, wherein the current browsing page is a chat browsing page of a chat application, and acquiring character information in the text;
analyzing an image in a currently browsed page to acquire character information in the image;
analyzing voice in a current browsing page to acquire character information in the voice;
according to the character information matching database, determining corresponding target character information and application identification corresponding to the target character information, specifically comprising: matching the character information with preset keywords in the database, determining characters in the character information consistent with the preset keywords as target character information, acquiring application identifications mapped corresponding to the preset keywords, and associating the target character information with the application identifications, wherein the preset keywords are determined by using habits;
sending the application identifier to a configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
caching the configuration file, converting the target text information into a hyperlink, associating the hyperlink with the configuration file, detecting whether an operation instruction for closing a browsing page is received, and deleting the cached configuration file when the operation instruction for closing the browsing page is detected;
when the triggering operation of the hyperlink is detected, a native page of the application generated by the configuration file is obtained, meanwhile, corresponding searching is carried out according to target character information to obtain a corresponding searching result, and the searching result is displayed on the native page while the native page is displayed, wherein the native page is a small program.
2. The method for generating a link to an application page according to claim 1, wherein the configuration file includes global configuration information describing a page of the application, and when the trigger operation on the hyperlink is detected, acquiring a native page of the configuration file generation application and displaying the native page comprises:
when the trigger operation of the hyperlink is detected, loading and running a script file in an operating system;
and analyzing the global configuration information through the script file, generating a native page of the application, and displaying the native page.
3. The method for generating a link to an application page according to claim 2, wherein after generating a native page of an application and presenting the native page, the method further comprises:
detecting whether an adding instruction of a shortcut to the native page is received;
and when detecting that an adding instruction of the shortcut of the native page is received, adding the shortcut on a desktop of an operating system.
4. An apparatus for generating a link to an application page, comprising:
the analysis unit is used for analyzing the current browsed page and acquiring the character information in the current browsed page;
the determining unit is configured to determine, according to the text information matching database, corresponding target text information and an application identifier associated with the target text information, and specifically includes: matching the character information with preset keywords in the database, determining characters in the character information consistent with the preset keywords as target character information, acquiring application identifications mapped corresponding to the preset keywords, and associating the target character information with the application identifications, wherein the preset keywords are determined by using habits;
the receiving and sending unit is used for sending the application identifier to a configuration server and receiving a configuration file returned by the configuration server according to the application identifier;
the conversion unit is used for caching the configuration file and converting the target text information into a hyperlink, and the hyperlink is associated with the configuration file;
the generating unit is used for acquiring a configuration file to generate a native page of an application when the triggering operation of the hyperlink is detected, meanwhile, performing corresponding search according to target character information to obtain a corresponding search result, and displaying the search result on the native page while displaying the native page, wherein the native page is a small program;
the analysis unit includes:
the text analysis subunit is used for analyzing the text in the current browsing page, wherein the current browsing page is a chat browsing page of a chat application, and character information in the text is acquired;
the image analysis subunit is used for analyzing the image in the current browsing page to acquire the character information in the image;
and the voice analysis subunit is used for analyzing the voice in the current browsing page and acquiring the text information in the voice.
5. An apparatus for link generation of an application page as claimed in claim 4, characterized in that the apparatus further comprises:
the detection unit is used for detecting whether an adding instruction of the shortcut of the native page is received or not;
and the adding unit is used for adding the shortcut on the desktop of the operating system when detecting that an adding instruction of the shortcut of the native page is received.
6. A storage medium having stored thereon a computer program, characterized in that, when the computer program is run on a computer, it causes the computer to execute a link generation method of an application page according to any one of claims 1 to 3.
7. An electronic device comprising a processor and a memory, said memory having a computer program, characterized in that said processor is adapted to execute a method of link generation of an application page according to any of claims 1 to 3 by calling said computer program.
CN201810107327.7A 2018-02-02 2018-02-02 Link generation method and device of application page, storage medium and electronic equipment Active CN108334608B (en)

Priority Applications (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
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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN108334608A CN108334608A (en) 2018-07-27
CN108334608B true CN108334608B (en) 2020-08-04

Family

ID=62927859

Family Applications (1)

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

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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796536A (en) * 2015-03-17 2015-07-22 乐视致新电子科技(天津)有限公司 Voice assisting method and device during communication
CN106293359A (en) * 2016-08-09 2017-01-04 深圳市金立通信设备有限公司 A kind of method of caller and terminal
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

Family Cites Families (6)

* 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
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
CN108334608B (en) * 2018-02-02 2020-08-04 Oppo广东移动通信有限公司 Link generation method and device of application page, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796536A (en) * 2015-03-17 2015-07-22 乐视致新电子科技(天津)有限公司 Voice assisting method and device during communication
CN106293359A (en) * 2016-08-09 2017-01-04 深圳市金立通信设备有限公司 A kind of method of caller and terminal
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

Also Published As

Publication number Publication date
WO2019149026A1 (en) 2019-08-08
CN108334608A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN108334608B (en) Link generation method and device of application page, storage medium and electronic equipment
CN108319489B (en) Application page starting method and device, storage medium and electronic equipment
CN108363792B (en) Link generation method and device of application page, storage medium and electronic equipment
WO2019157894A1 (en) Application page display method and apparatus, storage medium and electronic device
CN108287917B (en) File opening method and device, storage medium and electronic equipment
CN108363528B (en) Application page starting method and device, storage medium and electronic equipment
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
CN108496150A (en) A kind of method and terminal of screenshot capture and reading
CN107329985B (en) Page collection method and device and mobile terminal
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN111192578B (en) Application control method and device, storage medium and electronic equipment
CN108769234B (en) Application downloading method and device, storage medium and electronic equipment
WO2020001165A1 (en) Voice control method and apparatus, and storage medium and electronic device
CN110020293B (en) Multimedia data display method, device and storage medium
CN107948729B (en) Rich media processing method and device, storage medium and electronic equipment
CN109407916A (en) Method, terminal, user images display interface and the storage medium of data search
CN109948090B (en) Webpage loading method and device
CN112148579B (en) User interface testing method and device
CN110989847B (en) Information recommendation method, device, terminal equipment and storage medium
WO2014183545A1 (en) Method,device and system for identifying script virus
CN113127773A (en) Page processing method and device, storage medium and terminal equipment
CN105095253B (en) Webpage display method and device
CN108197105B (en) Natural language processing method, device, storage medium and electronic equipment
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
CN109190076B (en) Page collection method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant