CN113378094A - Interface sharing method, device, equipment and medium - Google Patents

Interface sharing method, device, equipment and medium Download PDF

Info

Publication number
CN113378094A
CN113378094A CN202110732920.2A CN202110732920A CN113378094A CN 113378094 A CN113378094 A CN 113378094A CN 202110732920 A CN202110732920 A CN 202110732920A CN 113378094 A CN113378094 A CN 113378094A
Authority
CN
China
Prior art keywords
interface
application program
webpage
program interface
application
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.)
Pending
Application number
CN202110732920.2A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110732920.2A priority Critical patent/CN113378094A/en
Publication of CN113378094A publication Critical patent/CN113378094A/en
Pending legal-status Critical Current

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application discloses an interface sharing method, an interface sharing device, interface sharing equipment and an interface sharing medium, and belongs to the technical field of electronic equipment. The interface sharing method applied to the first electronic equipment comprises the following steps: under the condition that the first application program interface is displayed, identifying the first application program interface to obtain a first identification result corresponding to the first application program interface; generating a webpage file corresponding to the first application program interface according to the first identification result, wherein the webpage file comprises a first webpage code corresponding to the first identification result; receiving a first input; and responding to the first input, and sending the address information of the webpage file to the second electronic equipment so that the second electronic equipment displays a webpage interface corresponding to the webpage file according to the address information.

Description

Interface sharing method, device, equipment and medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to an interface sharing method, device, equipment and medium.
Background
In the practical application of the application program, some users will generally share some pages of some application programs to other users. The electronic devices used by other users cannot display the content in the shared page if the application is not installed.
Disclosure of Invention
An object of the embodiments of the present application is to provide an interface sharing method, apparatus, device, and medium, which can solve the problem that the content in the shared page cannot be displayed.
In a first aspect, an embodiment of the present application provides an interface sharing method, which is applied to a first electronic device, and the method includes:
under the condition that the first application program interface is displayed, identifying the first application program interface to obtain a first identification result corresponding to the first application program interface;
generating a webpage file corresponding to the first application program interface according to the first identification result, wherein the webpage file comprises a first webpage code corresponding to the first identification result;
receiving a first input;
and responding to the first input, and sending the address information of the webpage file to the second electronic equipment so that the second electronic equipment displays a webpage interface corresponding to the webpage file according to the address information.
In a second aspect, an embodiment of the present application provides an interface sharing apparatus, which is applied to a first electronic device, and includes:
the first identification module is used for identifying the first application program interface under the condition of displaying the first application program interface to obtain a first identification result corresponding to the first application program interface;
the generating module is used for generating a webpage file corresponding to the first application program interface according to the first identification result, wherein the webpage file comprises a first webpage code corresponding to the first identification result;
the first receiving module is used for receiving a first input;
and the sending module is used for responding to the first input and sending the address information of the webpage file to the second electronic equipment so that the second electronic equipment displays a webpage interface corresponding to the webpage file according to the address information.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method according to the first aspect.
In the embodiment of the application, under the condition that the first application program interface is displayed, the first electronic device obtains a first identification result corresponding to the first application program interface by identifying the first application program interface; generating a webpage file which corresponds to the first application program interface and comprises a first webpage code corresponding to the first identification result according to the first identification result; and after receiving the first input, sending the address information of the webpage file to the second electronic equipment. The second electronic device can display the webpage interface corresponding to the webpage file according to the address information without installing the application program corresponding to the first application program interface, and sharing of the first application program interface can be achieved through the webpage interface.
Drawings
Fig. 1 is a schematic flowchart of an interface sharing method applied to a first electronic device according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a first application interface in an embodiment of the present application;
FIG. 3 is a schematic diagram of a display identification box in an embodiment of the present application;
FIG. 4 is a diagram illustrating a first process of interface sharing according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a thumbnail image displayed in the embodiment of the present application;
FIG. 6 is a schematic diagram of a second application interface in an embodiment of the present application;
FIG. 7 is a diagram illustrating a second process of interface sharing in an embodiment of the present application;
FIG. 8 is a process diagram illustrating an adjustment of an interface sharing sequence according to an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a process for removing a shared interface according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an interface sharing device applied to a first electronic device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 12 is a hardware configuration diagram of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The interface sharing method, apparatus, device and medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart illustrating an interface sharing method applied to a first electronic device according to an embodiment of the present disclosure. The interface sharing method applied to the first electronic device can comprise the following steps:
s101: under the condition that the first application program interface is displayed, identifying the first application program interface to obtain a first identification result corresponding to the first application program interface;
s102: generating a webpage file corresponding to the first application program interface according to the first identification result, wherein the webpage file comprises a first webpage code corresponding to the first identification result;
s103: receiving a first input;
s104: and responding to the first input, and sending the address information of the webpage file to the second electronic equipment so that the second electronic equipment displays a webpage interface corresponding to the webpage file according to the address information.
Specific implementations of the above steps will be described in detail below.
In the embodiment of the application, under the condition that the first application program interface is displayed, the first electronic device obtains a first identification result corresponding to the first application program interface by identifying the first application program interface; generating a webpage file which corresponds to the first application program interface and comprises a first webpage code corresponding to the first identification result according to the first identification result; and after receiving the first input, sending the address information of the webpage file to the second electronic equipment. The second electronic device can display the webpage interface corresponding to the webpage file according to the address information without installing the application program corresponding to the first application program interface, and sharing of the first application program interface can be achieved through the webpage interface.
Optionally, the first application interface is not a web interface, and the first application interface may be converted into a web interface.
In some possible implementations of the embodiment of the present application, the first application interface in S101 is as shown in fig. 2, and fig. 2 is a schematic diagram of the first application interface in the embodiment of the present application.
When a user wants to share the content of the first application program interface shown in fig. 2 with other users, at this time, the user may execute an input, for example, click a "hover ball" button or make a preset gesture, and the first electronic device displays an identification box on the first application program interface shown in fig. 2 in response to the input, as shown in fig. 3, where fig. 3 is a schematic diagram illustrating the identification box in the embodiment of the present application. When the user clicks the "identification" control in the identification box, the user executes the first input, and at this time, the first application program interface shown in fig. 2 is identified, so that a first identification result corresponding to the first application program interface shown in fig. 2 is obtained. Then, according to the first recognition result, a web page file corresponding to the first application program interface shown in fig. 2 and including the first web page code corresponding to the first recognition result is generated.
In some possible implementations of the embodiment of the present application, S101 may include: the type, name, size, and location of the control included with the first application interface and the type, name, size, location, and address of the resource included with the first application interface are identified.
Illustratively, assume that the first application interface is recognized to include a button named "zoom in" and having a size of 20 × 30, and the upper left corner of the button is located at a pixel point of the first application interface having coordinates (100, 200).
Further illustratively, assume that it is identified that the first application program interface includes a picture with a name of "image 1. jpg" and a size of 694 × 553, and the source address of the picture is: com/picture/image 1. jpg.
In some possible implementations of embodiments of the present application, S102 includes: converting a control included in the first application program interface into a webpage control corresponding to the control; when the resources included in the first application program interface are multimedia resources and the multimedia resources are local multimedia resources, storing the multimedia resources in a preset folder, and setting a source address of the multimedia resources in a webpage file as a local address corresponding to the preset folder; and when the resource included in the first application program interface is a multimedia resource and the multimedia resource is a network multimedia resource, setting the source address of the multimedia resource as the network address of the multimedia resource in the webpage file.
Specifically, a control included in the first application program interface is converted into a web page (web) control corresponding to the control, for example, a radio button control included in the first application program interface is converted from "radio button" into "radio"; for local multimedia resources included in a first application program interface, storing the local multimedia resources in a preset folder, and setting a source address of the multimedia resources in the webpage file as a local address corresponding to the preset folder; and for the network multimedia resource included in the first application program interface, setting the source address of the network multimedia resource as the network address of the multimedia resource in the webpage file.
Illustratively, the code corresponding to a certain button in the generated webpage file is as follows:
< button on click >
Wherein the button is an enlargement button.
Illustratively, the code corresponding to the local picture in the generated webpage file is as follows:
<img src="/images/image1.jpg"width="304"height="228">
wherein, the picture with the picture name of "images 1. jpg" is stored in the "images" folder, the image width is 304, and the image height is 228.
Illustratively, the code corresponding to the network picture in the generated webpage file is as follows:
<img src="https://www.fhushu.com/itwm/fhuwh/3423f.jpg">
wherein, the picture with the picture name of "3423 f.jpg" is a picture on the network, and the network address of the picture is: https: // www.fhushu.com/itwm/fhowh/3423 f.jpg.
In some possible implementations of embodiments of the present application, multimedia assets include, but are not limited to, pictures, audio, video, and the like.
In some possible implementations of the embodiment of the present application, when the multimedia asset is a picture, the preset folder may be a folder named "images", when the multimedia asset is a video, the preset folder may be a folder named "videos", and when the multimedia asset is an audio, the preset folder may be a folder named "audios".
When the user clicks the "share" control in the identification box shown in fig. 3, the user executes the first input, and at this time, the address information of the web page file is sent to the second electronic device.
In some possible implementations of embodiments of the present application, the address information may be a web page link. After the second electronic device receives and displays the address information, the user clicks the address information, and then the web interface of the web file can be displayed through the browser. The second electronic device can display the webpage interface corresponding to the webpage file corresponding to the first application program interface according to the received address information without installing the application program corresponding to the first application program interface, and sharing of the first application program interface can be achieved by displaying the webpage interface corresponding to the webpage file corresponding to the first application program interface.
After the second electronic device receives the address information, when the user clicks the address information, the second electronic device requests to access a webpage file corresponding to the first application program interface corresponding to the address information, obtains resources of the webpage file, renders the webpage file based on the resources, and generates and displays a webpage interface corresponding to the webpage file.
The embodiment of the application does not describe the process of displaying the web interface corresponding to the web file through the address information of the web file, and specifically refers to the process of displaying the web page based on the web address in the related art.
Fig. 4 shows the sharing process, and fig. 4 is a schematic diagram of a first process of interface sharing in the embodiment of the present application. In fig. 4, the user selects to share the interface with the contact 3, and the address information of the web page file is: https:// www.mmh.com/fhwaueg.
In some possible implementations of the embodiment of the present application, after S101, the interface sharing method applied to the first electronic device, provided by the embodiment of the present application, may further include: and displaying first prompt information, wherein the first prompt information is used for indicating that the identification of the first application program interface is finished.
In some possible implementations of the embodiment of the application, the first prompt message may be "identify the current interface completely, please continue", or fill up a certain area with a preset color.
In the embodiment of the application, the first prompt information used for indicating that the identification of the first application program interface is completed is displayed, so that a user can know that the identification of the first application program interface is completed through the first prompt information, the situation that other users cannot share the display content of the first application program interface due to the fact that the user does not complete the identification of the first application program interface and share the display content of the first application program interface is avoided, and the user experience effect can be improved.
In some possible implementations of the embodiment of the present application, the interface sharing method applied to the first electronic device, provided by the embodiment of the present application, may further include: and displaying second prompt information in the process of identifying the first application program interface, wherein the second prompt information is used for indicating the identification progress of identifying the first application program interface.
The embodiment of the present application does not limit the expression form of the second prompt message, and any available expression form may be applied to the embodiment of the present application, for example, a progress bar, a percentage, an area of a certain region filled with a preset color, and the like.
In some possible implementations of the embodiment of the present application, the interface sharing method applied to the first electronic device, provided by the embodiment of the present application, may further include: and displaying the thumbnail corresponding to the first application program interface in the process of identifying the first application program interface. As shown in fig. 5, fig. 5 is a schematic diagram showing a thumbnail in the embodiment of the present application.
In some possible implementations of the embodiment of the present application, the interface sharing method applied to the first electronic device, provided by the embodiment of the present application, may further include: an input is received for a name of a thumbnail, and in response to the input, the name of the thumbnail is modified to the name corresponding to the input.
In some possible implementations of the embodiments of the present application, the name of the thumbnail defaults to the name of the application corresponding to the first application interface.
In some possible implementations of the embodiment of the present application, a user may share multiple interfaces, and based on this, before S103, the interface sharing method applied to the first electronic device, provided by the embodiment of the present application, further includes: receiving a second input in the case of displaying a second application interface; responding to the second input, identifying a second application program interface, and obtaining a second identification result corresponding to the second application program interface; and adding a second webpage code corresponding to the second identification result in the webpage file.
Illustratively, the user clicks the "hide/display" control in the identification frame shown in fig. 3, and at this time, the "identify" control, the "screen recording" control, and the "sharing" control in the identification frame shown in fig. 3 are hidden, that is, are not displayed. The user then displays a second application interface through a series of operations, as shown in fig. 6. Fig. 6 is a schematic diagram of a second application program interface in the embodiment of the application, then, a user clicks a "hide/display" control in an identification frame, at this time, the "identification" control, the "screen recording" control, and the "sharing" control in the identification frame are displayed again, when the user clicks the "identification" control in the identification frame, it indicates that the user executes a second input, at this time, the second application program interface shown in fig. 6 is identified, and a second identification result corresponding to the second application program interface shown in fig. 6 is obtained. And then, adding a second webpage code corresponding to a second identification result in the webpage file. And when the user clicks the sharing control in the identification box to indicate that the user executes the first input, sending the address information of the webpage file to the second electronic equipment. After the second electronic device receives and displays the address information, the user clicks the address information, and then the web interface of the web file can be displayed through the browser. The second electronic device can display the web interfaces corresponding to the web files corresponding to the first application program interface and the second application program interface according to the received address information without installing the application program corresponding to the first application program interface and the application program corresponding to the second application program interface, and sharing of the first application program interface and the second application program interface can be achieved by displaying the web interfaces corresponding to the web files corresponding to the first application program interface and the second application program interface.
In some possible implementations of embodiments of the present application, the first application interface and the second application interface may be different interfaces of the same application or interfaces of different applications.
Fig. 7 illustrates the sharing process, and fig. 7 is a schematic diagram of a second process of interface sharing in the embodiment of the present application. Through the process shown in fig. 7, multiple interfaces can be shared simultaneously.
In the embodiment of the application, the web interfaces corresponding to the web files can share a plurality of application program interfaces, and the user experience effect can be improved.
In some possible implementations of embodiments of the present application, when a plurality of first interfaces are shared, the number of shared first interfaces may also be displayed.
In some possible implementations of the embodiment of the present application, there is a case where a user modifies a display order of a shared interface, and based on this, before S103, the interface sharing method applied to the first electronic device further includes: displaying a first thumbnail of a first application program interface and a second thumbnail of a second application program interface; receiving a third input to a first target thumbnail, wherein the first target thumbnail is any one of the first thumbnail and the second thumbnail; and responding to a third input, adjusting the display position of the first target thumbnail and the position of the first target webpage code in the webpage file, wherein the first target webpage code is the webpage code corresponding to the identification result corresponding to the application program interface corresponding to the first target thumbnail.
In some possible implementations of embodiments of the present application, the third input to the first target thumbnail may be a drag input to the first target thumbnail. After the user executes the dragging input on the first target thumbnail, the first electronic device responds to the dragging input, and the display position of the first target thumbnail and the position of the webpage code corresponding to the identification result corresponding to the application program interface corresponding to the first target thumbnail in the webpage file can be adjusted. Fig. 8 shows a process of adjusting an interface sharing sequence, and fig. 8 is a schematic process of adjusting an interface sharing sequence according to an embodiment of the present application.
In the embodiment of the application, the user can adjust the display sequence of the sharing interface, and the user experience effect can be improved.
In some possible implementations of the embodiment of the present application, there is a case that a user does not intend to share a certain interface, and based on this, before S103, the interface sharing method applied to the first electronic device provided in the embodiment of the present application further includes: displaying a first thumbnail of a first application program interface and a second thumbnail of a second application program interface; receiving a third input to a first target thumbnail, wherein the first target thumbnail is any one of the first thumbnail and the second thumbnail; and responding to a third input, deleting the first target thumbnail and a first target webpage code in the webpage file, wherein the first target webpage code is a webpage code corresponding to the identification result corresponding to the application program interface corresponding to the first target thumbnail
In some possible implementations of embodiments of the present application, the third input to the first target thumbnail may be a long press input to the first target thumbnail. After the user performs the long press input on the first target thumbnail, the second electronic device responds to the long press input, and the first target thumbnail and the webpage code corresponding to the identification result corresponding to the application program interface corresponding to the first target thumbnail in the webpage file can be deleted. After the second electronic device receives and displays the address information shared by the first electronic device, the user clicks the address information, and then the web interface of the web file can be displayed through the browser. Because the web page file does not have the web page code corresponding to the identification result corresponding to the application program interface corresponding to the first target thumbnail, the web page interface displayed by the second electronic device does not include the application program interface corresponding to the first target thumbnail. Fig. 9 shows a process of removing a shared interface, and fig. 9 is a schematic diagram of a process of removing a shared interface according to an embodiment of the present application.
In the embodiment of the application, the user can delete the interface which the user does not intend to share, so that the user experience effect can be improved.
In some possible implementations of the embodiment of the application, the user may also perform screen recording sharing, at this time, after the user clicks the "screen recording" control in the identification frame shown in fig. 3, record the content displayed on the screen of the first electronic device, after the user clicks the "screen recording" control in the identification frame shown in fig. 3 again, stop screen recording, store the video file obtained by screen recording in the "videos" folder, and add a corresponding code for accessing the video file to the generated web file, so as to implement sharing of the video file obtained by screen recording through the web file.
In some possible implementations of the embodiments of the present application, the first recognition result in the embodiments of the present application includes: and the sharing link is used for calling the first application program to display the first application program interface under the condition that the second electronic equipment is provided with the first application program corresponding to the first application program interface and receives fourth input of the thumbnail of the first application program interface.
When the first identification result includes the sharing link corresponding to the first application program interface, the second electronic device displays that the webpage interface corresponding to the webpage file corresponding to the first application program interface includes the thumbnail of the first application program interface, and after the user performs an input on the thumbnail, for example, a click input, a long press input, or a drag of the thumbnail onto an icon of the application program corresponding to the first application program interface, at this time, the application program corresponding to the first application program interface is called to display the first application program interface.
Illustratively, the first electronic device shares three interfaces, which are an interface a, an interface B, and an interface C, respectively, where the interface a is an interface of the application 1, the interface B is an interface of the application 2, and the interface C is an interface of the application 3. The webpage interface displayed by the second electronic equipment comprises an interface a corresponding to the interface A, an interface B corresponding to the interface B, an interface C corresponding to the interface C, a thumbnail of the interface A, a thumbnail of the interface B and a thumbnail of the interface C. The second electronic device is installed with application 2 and application 3. When the user drags the thumbnail of the interface B onto the icon of the application program 2, the application program 2 is called to display the interface B.
In the embodiment of the application, the second electronic device can call the application program corresponding to the first application program interface to display the first application program interface, and the experience effect of a user can be improved.
In some possible implementations of the embodiment of the application, the second electronic device may add a shared interface, delete the shared interface, adjust the order of the shared interface, and the like on the basis of the shared interface of the first electronic device. The processes of adding, deleting and adjusting the sequence of the shared interface by the second electronic device are similar to the processes of adding, deleting and adjusting the sequence of the shared interface by the first electronic device on the basis of the shared interface of the first electronic device, and reference may be specifically made to the processes of adding, deleting and adjusting the sequence of the shared interface by the first electronic device, which are not described herein in detail in the embodiments of the present application.
It should be noted that, in the interface sharing method provided in the embodiment of the present application, the execution main body may be an interface sharing device, or a control module in the interface sharing device for executing the interface sharing method. The embodiment of the present application describes an interface sharing device provided in the embodiment of the present application, by taking an example of an interface sharing method executed by an interface sharing device.
Fig. 10 is a schematic structural diagram of an interface sharing device applied to a first electronic device according to an embodiment of the present application. The interface sharing apparatus 1000 applied to the first electronic device may include:
the first identification module 1001 is configured to identify the first application interface under the condition that the first application interface is displayed, and obtain a first identification result corresponding to the first application interface;
the generating module 1002 is configured to generate a web page file corresponding to the first application program interface according to the first identification result, where the web page file includes a first web page code corresponding to the first identification result;
a first receiving module 1003 for receiving a first input;
the sending module 1004 is configured to send, in response to the first input, address information of the web page file to the second electronic device, so that the second electronic device displays a web page interface corresponding to the web page file according to the address information.
In the embodiment of the application, under the condition that the first application program interface is displayed, the first electronic device obtains a first identification result corresponding to the first application program interface by identifying the first application program interface; generating a webpage file which corresponds to the first application program interface and comprises a first webpage code corresponding to the first identification result according to the first identification result; and after receiving the first input, sending the address information of the webpage file to the second electronic equipment. The second electronic device can display the webpage interface corresponding to the webpage file according to the address information without installing the application program corresponding to the first application program interface, and sharing of the first application program interface can be achieved through the webpage interface.
In some possible implementations of the embodiment of the present application, the interface sharing apparatus 1000 applied to the first electronic device further includes:
the second receiving module is used for receiving second input under the condition of displaying a second application program interface;
the second identification module is used for responding to the second input and identifying the second application program interface to obtain a second identification result corresponding to the second application program interface;
and the adding module is used for adding a second webpage code corresponding to the second identification result in the webpage file.
In the embodiment of the application, the web interfaces corresponding to the web files can share a plurality of application program interfaces, and the user experience effect can be improved.
In some possible implementations of the embodiment of the present application, the interface sharing apparatus 1000 applied to the first electronic device further includes:
the display module is used for displaying a first thumbnail of the first application program interface and a second thumbnail of the second application program interface;
the third receiving module is used for receiving a third input of the first target thumbnail, wherein the first target thumbnail is any one of the first thumbnail and the second thumbnail;
and the processing module is used for responding to a third input, deleting the first target thumbnail and a first target webpage code in the webpage file, or adjusting the display position of the first target thumbnail and the position of the first target webpage code in the webpage file, wherein the first target webpage code is a webpage code corresponding to the identification result corresponding to the application program interface corresponding to the first target thumbnail.
In the embodiment of the application, the user can adjust the display sequence of the sharing interface or delete the interface which is not intended to be shared any more, so that the user experience effect can be improved.
In some possible implementations of the embodiment of the present application, the first identifying module 1001 is specifically configured to:
the type, name, size, and location of the control included with the first application interface and the type, name, size, location, and address of the resource included with the first application interface are identified.
In some possible implementations of the embodiment of the present application, the generating module 1002 is specifically configured to:
converting a control included in the first application program interface into a webpage control corresponding to the control;
when the resources included in the first application program interface are multimedia resources and the multimedia resources are local multimedia resources, storing the multimedia resources in a preset folder, and setting a source address of the multimedia resources in a webpage file as a local address corresponding to the preset folder;
and when the resource included in the first application program interface is a multimedia resource and the multimedia resource is a network multimedia resource, setting the source address of the multimedia resource as the network address of the multimedia resource in the webpage file.
In some possible implementations of embodiments of the present application, the first recognition result includes:
and the sharing link is used for calling the first application program to display the first application program interface under the condition that the second electronic equipment is provided with the first application program corresponding to the first application program interface and receives fourth input of the thumbnail of the first application program interface.
In the embodiment of the application, the second electronic device can call the application program corresponding to the first application program interface to display the first application program interface, and the experience effect of a user can be improved.
The interface sharing device applied to the first electronic device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The first electronic device in the embodiment of the present application may be a mobile electronic device, and may also be a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The first electronic device in the embodiment of the present application may be an electronic device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The interface sharing device applied to the first electronic device provided in the embodiment of the present application can implement each process in the embodiment of the interface sharing method applied to the first electronic device in fig. 1 to fig. 9, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 1100 is further provided in this embodiment of the present application, and includes a processor 1101, a memory 1102, and a program or an instruction that is stored in the memory 1102 and is executable on the processor 1101, and when the program or the instruction is executed by the processor 1101, the process of the embodiment of the interface sharing method applied to the first electronic device is implemented, and the same technical effect can be achieved, and is not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
In some possible implementations of embodiments of the present Application, the processor 1101 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of embodiments of the present Application.
In some possible implementations of embodiments of the present application, the Memory 1102 may include Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash Memory devices, electrical, optical, or other physical/tangible Memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the interface sharing method applied to the first electronic device according to embodiments of the application.
Fig. 12 is a hardware configuration diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensors 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, and processor 1210.
Those skilled in the art will appreciate that the electronic device 1200 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
Wherein, the processor 1210 is configured to: under the condition that the first application program interface is displayed, identifying the first application program interface to obtain a first identification result corresponding to the first application program interface; generating a webpage file corresponding to the first application program interface according to the first identification result, wherein the webpage file comprises a first webpage code corresponding to the first identification result;
the user input unit 1207 is configured to: receiving a first input;
the radio frequency unit 1201 is configured to: and responding to the first input, and sending the address information of the webpage file to the second electronic equipment so that the second electronic equipment displays a webpage interface corresponding to the webpage file according to the address information.
In this embodiment of the application, the electronic device 1200 obtains a first identification result corresponding to the first application program interface by identifying the first application program interface when the first application program interface is displayed; generating a webpage file which corresponds to the first application program interface and comprises a first webpage code corresponding to the first identification result according to the first identification result; and after receiving the first input, sending the address information of the webpage file to the second electronic equipment. The second electronic device can display the webpage interface corresponding to the webpage file according to the address information without installing the application program corresponding to the first application program interface, and sharing of the first application program interface can be achieved through the webpage interface.
In some possible implementations of embodiments of the present application, the user input unit 1207 is further configured to: receiving a second input in the case of displaying a second application interface;
the processor 1210 is further configured to: responding to the second input, identifying a second application program interface, and obtaining a second identification result corresponding to the second application program interface; and adding a second webpage code corresponding to the second identification result in the webpage file.
In the embodiment of the application, the web interfaces corresponding to the web files can share a plurality of application program interfaces, and the user experience effect can be improved.
In some possible implementations of embodiments of the present application, the display unit 1206 is to: displaying a first thumbnail of a first application program interface and a second thumbnail of a second application program interface;
the user input unit 1207 is also used to: receiving a third input to a first target thumbnail, wherein the first target thumbnail is any one of the first thumbnail and the second thumbnail;
the processor 1210 is further configured to: and responding to a third input, deleting the first target thumbnail and a first target webpage code in the webpage file, or adjusting the display position of the first target thumbnail and the position of the first target webpage code in the webpage file, wherein the first target webpage code is the webpage code corresponding to the identification result corresponding to the application program interface corresponding to the first target thumbnail.
In the embodiment of the application, the user can adjust the display sequence of the sharing interface or delete the interface which is not intended to be shared any more, so that the user experience effect can be improved.
In some possible implementations of embodiments of the application, the processor 1210 is specifically configured to:
the type, name, size, and location of the control included with the first application interface and the type, name, size, location, and address of the resource included with the first application interface are identified.
In some possible implementations of embodiments of the application, the processor 1210 is specifically configured to:
converting a control included in the first application program interface into a webpage control corresponding to the control;
when the resources included in the first application program interface are multimedia resources and the multimedia resources are local multimedia resources, storing the multimedia resources in a preset folder, and setting a source address of the multimedia resources in a webpage file as a local address corresponding to the preset folder;
and when the resource included in the first application program interface is a multimedia resource and the multimedia resource is a network multimedia resource, setting the source address of the multimedia resource as the network address of the multimedia resource in the webpage file.
In some possible implementations of embodiments of the present application, the first recognition result includes:
and the sharing link is used for calling the first application program to display the first application program interface under the condition that the second electronic equipment is provided with the first application program corresponding to the first application program interface and receives fourth input of the thumbnail of the first application program interface.
In the embodiment of the application, the second electronic device can call the application program corresponding to the first application program interface to display the first application program interface, and the experience effect of a user can be improved.
It should be understood that, in the embodiment of the present application, the input Unit 1204 may include a Graphics Processing Unit (GPU) 12041 and a microphone 12042, and the Graphics Processing Unit 12041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. A touch panel 12071, also referred to as a touch screen. The touch panel 12071 may include two parts of a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1209 may be used to store software programs as well as various data, including but not limited to application programs and an operating system. Processor 1210 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1210.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the embodiment of the interface sharing method applied to the first electronic device, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, and examples of the computer readable storage medium include non-transitory computer readable storage media such as a ROM, a RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction, so as to implement each process of the interface sharing method embodiment applied to the first electronic device, and achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An interface sharing method is applied to a first electronic device, and comprises the following steps:
under the condition that a first application program interface is displayed, identifying the first application program interface to obtain a first identification result corresponding to the first application program interface;
generating a webpage file corresponding to the first application program interface according to the first identification result, wherein the webpage file comprises a first webpage code corresponding to the first identification result;
receiving a first input;
and responding to the first input, and sending address information of the webpage file to second electronic equipment so that the second electronic equipment displays a webpage interface corresponding to the webpage file according to the address information.
2. The method of claim 1, wherein prior to said receiving the first input, the method further comprises:
receiving a second input in the case of displaying a second application interface;
responding to the second input, identifying the second application program interface, and obtaining a second identification result corresponding to the second application program interface;
and adding a second webpage code corresponding to the second identification result in the webpage file.
3. The method of claim 2, wherein prior to said receiving the first input, the method further comprises:
displaying a first thumbnail of the first application interface and a second thumbnail of the second application interface;
receiving a third input to a first target thumbnail, wherein the first target thumbnail is any one of the first thumbnail and the second thumbnail;
and responding to the third input, deleting the first target thumbnail and a first target webpage code in the webpage file, or adjusting the display position of the first target thumbnail and the position of the first target webpage code in the webpage file, wherein the first target webpage code is a webpage code corresponding to the identification result corresponding to the application program interface corresponding to the first target thumbnail.
4. The method of claim 1, wherein identifying the first application interface comprises:
identifying a type, name, size, and location of a control included with the first application interface and a type, name, size, location, and address of a resource included with the first application interface.
5. The method according to claim 4, wherein the generating a web page file corresponding to the first application program interface according to the first recognition result comprises:
converting a control included in the first application program interface into a webpage control corresponding to the control;
when the resource included in the first application program interface is a multimedia resource and the multimedia resource is a local multimedia resource, storing the multimedia resource in a preset folder, and setting a source address of the multimedia resource in the webpage file as a local address corresponding to the preset folder;
and when the resource included in the first application program interface is a multimedia resource and the multimedia resource is a network multimedia resource, setting the source address of the multimedia resource as the network address of the multimedia resource in the webpage file.
6. The method of claim 1, wherein the first recognition result comprises:
the sharing link is used for calling the first application program to display the first application program interface under the condition that the second electronic device is provided with the first application program corresponding to the first application program interface and receives fourth input of the thumbnail of the first application program interface.
7. An interface sharing apparatus applied to a first electronic device, the apparatus comprising:
the first identification module is used for identifying a first application program interface under the condition that the first application program interface is displayed to obtain a first identification result corresponding to the first application program interface;
the generating module is used for generating a webpage file corresponding to the first application program interface according to the first identification result, wherein the webpage file comprises a first webpage code corresponding to the first identification result;
the first receiving module is used for receiving a first input;
and the sending module is used for responding to the first input and sending the address information of the webpage file to second electronic equipment so that the second electronic equipment displays a webpage interface corresponding to the webpage file according to the address information.
8. The apparatus of claim 7, further comprising:
the second receiving module is used for receiving second input under the condition of displaying a second application program interface;
the second identification module is used for responding to the second input and identifying the second application program interface to obtain a second identification result corresponding to the second application program interface;
and the adding module is used for adding a second webpage code corresponding to the second identification result in the webpage file.
9. An electronic device, characterized in that the electronic device comprises: a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the interface sharing method according to any one of claims 1 to 6.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the interface sharing method according to any one of claims 1 to 6.
CN202110732920.2A 2021-06-29 2021-06-29 Interface sharing method, device, equipment and medium Pending CN113378094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110732920.2A CN113378094A (en) 2021-06-29 2021-06-29 Interface sharing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110732920.2A CN113378094A (en) 2021-06-29 2021-06-29 Interface sharing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN113378094A true CN113378094A (en) 2021-09-10

Family

ID=77580052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110732920.2A Pending CN113378094A (en) 2021-06-29 2021-06-29 Interface sharing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113378094A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104221047A (en) * 2012-04-26 2014-12-17 三星电子株式会社 Method and apparatus for sharing presentation data and annotation
CN111125762A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Shared application control method and electronic equipment
CN111600931A (en) * 2020-04-13 2020-08-28 维沃移动通信有限公司 Information sharing method and electronic equipment
CN112954046A (en) * 2021-02-07 2021-06-11 维沃移动通信有限公司 Information sending method, information sending device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104221047A (en) * 2012-04-26 2014-12-17 三星电子株式会社 Method and apparatus for sharing presentation data and annotation
CN111125762A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Shared application control method and electronic equipment
CN111600931A (en) * 2020-04-13 2020-08-28 维沃移动通信有限公司 Information sharing method and electronic equipment
CN112954046A (en) * 2021-02-07 2021-06-11 维沃移动通信有限公司 Information sending method, information sending device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
景亚琴: "《信息化教学》", 国防工业出版社 *

Similar Documents

Publication Publication Date Title
US10228835B2 (en) Method for displaying information, and terminal equipment
US9165340B2 (en) Image display system, image display method, image display program, and computer-readable recording medium storing said program
CN112306607A (en) Screenshot method and device, electronic equipment and readable storage medium
US9509733B2 (en) Program, communication apparatus and control method
CN106873844B (en) Picture viewing method and device
CN106843794B (en) Split screen display method and system based on android
CN112764857A (en) Information processing method and device and electronic equipment
TW201926968A (en) Program and information processing method and information processing device capable of easily changing choice of content to be transmitted
CN114116098B (en) Application icon management method and device, electronic equipment and storage medium
CN112399010B (en) Page display method and device and electronic equipment
CN114153362A (en) Information processing method and device
CN112099714B (en) Screenshot method and device, electronic equipment and readable storage medium
CN113703634A (en) Interface display method and device
CN113721876A (en) Screen projection processing method and related equipment
CN111817944A (en) Picture sharing method and device and electronic equipment
CN114253449A (en) Screen capturing method, device, equipment and medium
CN113204299B (en) Display method, display device, electronic equipment and storage medium
CN112291412B (en) Application program control method and device and electronic equipment
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN113378094A (en) Interface sharing method, device, equipment and medium
CN111796733B (en) Image display method, image display device and electronic equipment
CN114518821A (en) Application icon management method and device and electronic equipment
KR102223554B1 (en) Terminal, method for contrlling thereof and recording medium on which a program for implemeting the method
CN113268300B (en) Information display method and device
CN113094607B (en) Method and device for obtaining local resources

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