[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109033473B - Picture sharing method and device and computer readable storage medium - Google Patents

Picture sharing method and device and computer readable storage medium Download PDF

Info

Publication number
CN109033473B
CN109033473B CN201811041127.2A CN201811041127A CN109033473B CN 109033473 B CN109033473 B CN 109033473B CN 201811041127 A CN201811041127 A CN 201811041127A CN 109033473 B CN109033473 B CN 109033473B
Authority
CN
China
Prior art keywords
picture
sharing
html5 page
shared
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.)
Active
Application number
CN201811041127.2A
Other languages
Chinese (zh)
Other versions
CN109033473A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201811041127.2A priority Critical patent/CN109033473B/en
Publication of CN109033473A publication Critical patent/CN109033473A/en
Application granted granted Critical
Publication of CN109033473B publication Critical patent/CN109033473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a picture sharing method and device and a computer readable storage medium, and belongs to the technical field of computers. The method comprises the following steps: when the preset operation on a sharing control in a displayed HTML5 page is detected, generating a picture sharing request; acquiring a picture to be shared according to the picture sharing request; and sharing the picture. According to the method, the picture can be directly obtained and directly shared only by carrying out preset operation on the sharing control in the HTML5 page, and the picture sharing process can be greatly simplified and the picture sharing efficiency can be improved by one-click picture sharing provided in the HTML5 page.

Description

Picture sharing method and device and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for sharing pictures and a computer-readable storage medium.
Background
With the rapid development of computer technology, people have become a normal state in life to communicate information through applications installed on terminals. The picture is taken as an visualized information communication mode, and picture sharing is more and more favored by people.
At present, when a user shares a picture in an HTML (HyperText Markup Language) 5 page, the picture in the HTML5 page needs to be downloaded manually, or the HTML5 page needs to be captured manually, so that the picture to be shared is stored locally, and then the user needs to browse a local album to find the picture and manually select the picture to share the picture.
However, in the above picture sharing manner, the user needs to manually save the picture from the HTML5 page to the local, and then manually select the picture from the local album for sharing, which is very tedious in sharing process and inconvenient for the user to operate, resulting in low picture sharing efficiency.
Disclosure of Invention
The embodiment of the invention provides a picture sharing method and device and a computer readable storage medium, which can solve the problem of low picture sharing efficiency in the related art. The technical scheme is as follows:
in one aspect, a method for sharing pictures is provided, where the method includes:
when the preset operation on a sharing control in a displayed HTML5 page is detected, generating a picture sharing request;
acquiring a picture to be shared according to the picture sharing request;
and sharing the picture.
Optionally, the obtaining the picture to be shared according to the picture sharing request includes:
and when the picture sharing request carries a first sharing mark, downloading the picture to be shared according to the picture downloading address carried in the picture sharing request.
Optionally, the obtaining the picture to be shared according to the picture sharing request includes:
when the picture sharing request carries a second sharing mark, converting the base64 encrypted character string carried in the picture sharing request to obtain the picture to be shared.
Optionally, the obtaining the picture to be shared according to the picture sharing request includes:
and when the picture sharing request carries a third sharing mark, obtaining a picture corresponding to the HTML5 page as a picture to be shared.
Optionally, the obtaining the picture corresponding to the HTML5 page as the picture to be shared includes:
acquiring a view of the HTML5 page as a picture to be shared; or,
and performing screenshot on the HTML5 page to obtain a picture to be shared.
Optionally, before the obtaining the picture corresponding to the HTML5 page as the picture to be shared, the method further includes:
displaying first page content in the HTML5 page; and/or the presence of a gas in the gas,
hiding the second page content in the HTML5 page.
Optionally, the sharing the picture includes:
displaying a sharing interface, wherein the sharing interface comprises a plurality of application identifiers;
when an application selection instruction is received in the sharing interface, displaying an object selection interface of an application identified by an application identifier selected by the application selection instruction in the plurality of application identifiers;
and when an object selection instruction is received in the object selection interface, sending the picture to a sharing object selected by the object selection instruction in the application.
In one aspect, a picture sharing apparatus is provided, the apparatus including:
the generating module is used for generating a picture sharing request when a preset operation on a sharing control in a displayed HTML5 page is detected;
the acquisition module is used for acquiring the picture to be shared according to the picture sharing request;
and the sharing module is used for sharing the pictures.
Optionally, the obtaining module includes:
and the downloading unit is used for downloading the picture to be shared according to the picture downloading address carried in the picture sharing request when the picture sharing request carries the first sharing mark.
Optionally, the obtaining module includes:
and the conversion unit is used for converting the base64 encrypted character string carried in the picture sharing request to obtain the picture to be shared when the picture sharing request carries a second sharing mark.
Optionally, the obtaining module includes:
and the obtaining unit is used for obtaining the picture corresponding to the HTML5 page as the picture to be shared when the picture sharing request carries the third sharing mark.
Optionally, the obtaining unit includes:
the acquisition subunit is used for acquiring the view of the HTML5 page as a picture to be shared; or,
and the screenshot subunit is used for screenshot the HTML5 page to obtain a picture to be shared.
Optionally, the obtaining module further includes:
a first display unit for displaying first page content in the HTML5 page; and/or the presence of a gas in the gas,
a hiding unit, configured to hide the second page content in the HTML5 page.
Optionally, the sharing module includes:
the second display unit is used for displaying a sharing interface, and the sharing interface comprises a plurality of application identifiers;
the third display unit is used for displaying an object selection interface of an application identified by an application identifier selected by the application selection instruction from the plurality of application identifiers when the application selection instruction is received in the sharing interface;
and the sending unit is used for sending the picture to the sharing object selected by the object selection instruction in the application when the object selection instruction is received in the object selection interface.
In one aspect, a picture sharing apparatus is provided, where the apparatus includes a processor, a memory, and a program code stored in the memory and executable on the processor, and when the processor executes the program code, the picture sharing method is implemented.
In one aspect, a computer-readable storage medium is provided, where instructions are stored on the storage medium, and when executed by a processor, the instructions implement the steps of the picture sharing method described above.
The technical scheme provided by the embodiment of the invention can at least bring the following beneficial effects:
when a preset operation on a sharing control in a displayed HTML5 page is detected, a picture sharing request is generated. And then, according to the picture sharing request, obtaining a picture to be shared, and sharing the picture. Therefore, the picture can be directly acquired and directly shared only by presetting the sharing control in the HTML5 page, the one-click picture sharing provided in the HTML5 page can greatly simplify the picture sharing process, and the picture sharing efficiency 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 flowchart of a picture sharing method according to an embodiment of the present invention;
fig. 2 is a flowchart of another picture sharing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a picture sharing device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another picture sharing device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a picture sharing method according to an embodiment of the present invention. Referring to fig. 1, the method includes:
step 101: when a preset operation on a sharing control in a displayed HTML5 page is detected, a picture sharing request is generated.
Step 102: and obtaining the picture to be shared according to the picture sharing request.
Step 103: and sharing the pictures.
In the embodiment of the invention, when the preset operation on the sharing control in the displayed HTML5 page is detected, a picture sharing request is generated. And then, according to the picture sharing request, obtaining a picture to be shared, and sharing the picture. Therefore, the picture can be directly acquired and directly shared only by presetting the sharing control in the HTML5 page, the one-click picture sharing provided in the HTML5 page can greatly simplify the picture sharing process, and the picture sharing efficiency is improved.
Optionally, obtaining the picture to be shared according to the picture sharing request includes:
and when the first sharing mark is carried in the picture sharing request, downloading the picture to be shared according to the picture downloading address carried in the picture sharing request.
Optionally, obtaining the picture to be shared according to the picture sharing request includes:
and when the picture sharing request carries the second sharing mark, converting the base64 encrypted character string carried in the picture sharing request to obtain the picture to be shared.
Optionally, obtaining the picture to be shared according to the picture sharing request includes:
and when the picture sharing request carries the third sharing mark, obtaining a picture corresponding to the HTML5 page as a picture to be shared.
Optionally, acquiring a picture corresponding to the HTML5 page as a picture to be shared includes:
acquiring a view of an HTML5 page as a picture to be shared; or,
and (5) carrying out screenshot on the HTML5 page to obtain a picture to be shared.
Optionally, before acquiring the picture corresponding to the HTML5 page as the picture to be shared, the method further includes:
displaying the first page content in an HTML5 page; and/or the presence of a gas in the gas,
the second page content in the HTML5 page is hidden.
Optionally, sharing the picture includes:
displaying a sharing interface, wherein the sharing interface comprises a plurality of application identifications;
when an application selection instruction is received in the sharing interface, displaying an object selection interface of an application identified by an application identifier selected by the application selection instruction in the plurality of application identifiers;
and when an object selection instruction is received in the object selection interface, sending the picture to the sharing object selected by the object selection instruction in the application.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present invention, which is not described in detail herein.
Fig. 2 is a flowchart of a picture sharing method according to an embodiment of the present invention. Referring to fig. 2, the method includes:
step 201: when a preset operation on a sharing control in a displayed HTML5 page is detected, a picture sharing request is generated.
It should be noted that step 201 can be performed by the HTML5 page. The HTML5 page is an application-embedded webview (web view) that may include Native applications (also known as Native end) in addition to the HTML5 page (also known as front end).
In addition, the sharing control is a control for sharing pictures in the HTML5 page, the number of the sharing controls may be one or more, and multiple sharing controls may be used for sharing different types of pictures. For example, the plurality of sharing controls may include a first sharing control, a second sharing control, a third sharing control, and so on; the first sharing control may be configured to share pictures of a first picture type, where the pictures of the first picture type may originate from a network; the second sharing control may be configured to share pictures of a second picture type, where the pictures of the second picture type may be derived from base64 characters; the third share control may be used to share pictures of a third picture type, which may originate from the HTML5 page.
Moreover, the preset operation may be preset, for example, the preset operation may be a click operation, a slide operation, a voice operation, a gesture operation, and the like, which is not limited in the embodiment of the present invention.
And finally, the picture sharing request is used for requesting to share the picture, and the picture sharing request can carry a sharing mark, picture information and the like. The sharing flag may be used to indicate a picture type to which a picture to be shared belongs, and if the sharing flag may be a first sharing flag, a second sharing flag, or a third sharing flag, the first sharing flag may be used to indicate a first picture type, the second sharing flag may be used to indicate a second picture type, and the third sharing flag may be used to indicate a third picture type. The picture information is information related to a picture to be shared, for example, the picture information may be a picture download address or a base64 encrypted character string, and the picture information may be stored locally in advance.
Specifically, the operation of step 201 may be: when the preset operation of a first sharing control in a displayed HTML5 page is detected, generating a picture sharing request carrying a first sharing mark and a picture downloading address stored in advance; when the preset operation of a second sharing control in the displayed HTML5 page is detected, generating a picture sharing request carrying a second sharing mark and a prestored base64 encryption character string; and when a preset operation on a third sharing control in the displayed HTML5 page is detected, generating a picture sharing request carrying a third sharing mark.
It should be noted that, the first sharing control actually shares a picture corresponding to a picture download address stored in advance, and at this time, the picture corresponding to the picture download address may be a picture in the HTML5 page, or may be a picture in another page. The second sharing control actually shares the picture corresponding to the pre-stored base64 encrypted string, and at this time, the picture corresponding to the base64 encrypted string may be a picture in the HTML5 page, or may be a picture in another page. The third sharing control actually shares the picture corresponding to the HTML5 page.
Step 202: and obtaining the picture to be shared according to the picture sharing request.
It is noted that step 202 may be performed by a native application. In this case, after the HTML5 page generates the picture sharing request, the picture sharing request may be first sent to the Native application, for example, the HTML5 page may call Native code exposed by the Native application to send the picture sharing request to the Native application, so that the Native application may obtain the picture to be shared according to the picture sharing request.
Specifically, the operation of step 202 may be: when the picture sharing request carries a first sharing mark, downloading a picture to be shared according to a picture downloading address carried in the picture sharing request; when the picture sharing request carries a second sharing mark, converting the base64 encrypted character string carried in the picture sharing request to obtain a picture to be shared; and when the picture sharing request carries a third sharing mark, obtaining a picture corresponding to the HTML5 page as a picture to be shared.
The operation of downloading the picture to be shared according to the picture download address carried in the picture sharing request is similar to the operation of downloading a file according to the download address of the file in the related art, which is not described in detail in the embodiment of the present invention.
The operation of converting the base64 encrypted character string carried in the picture sharing request to obtain the picture to be shared is similar to the operation of converting a certain base64 encrypted character string to obtain the picture in the related art, which is not described in detail in the embodiment of the present invention.
When the picture corresponding to the HTML5 page is obtained as the picture to be shared, the view of the HTML5 page can be obtained as the picture to be shared; alternatively, the HTML5 page may be screenshot to obtain the picture to be shared.
It is to be noted that, if the picture to be shared is from the HTML5 page, when the picture corresponding to the HTML5 page is acquired as the picture to be shared, the embodiment of the present invention may also perform a corresponding prompt according to whether the picture corresponding to the HTML5 page is successfully acquired or not. For example, when the picture corresponding to the HTML5 page is successfully acquired, a first prompt message for prompting that the picture acquisition is successful may be displayed, and when the picture corresponding to the HTML5 page is not successfully acquired, a second prompt message for prompting that the picture acquisition is failed may be displayed. In this case, the native application may generate a first prompt message or a second prompt message according to whether the picture corresponding to the HTML5 page is successfully obtained or not, and send the first prompt message or the second prompt message to the HTML5 page, for example, the native application may call JavaScript code exposed by the HTML5 page to send the first prompt message or the second prompt message to the HTML5 page. The HTML5 page may then display a first prompt message or a second prompt message on its page to prompt the user whether the picture retrieval was successful or failed.
In addition, if the picture to be shared is from the HTML5 page, in the embodiment of the present invention, before the picture corresponding to the HTML5 page is obtained as the picture to be shared, the page content displayed in the HTML5 page may be changed to meet different page content sharing requirements. For example, before the picture corresponding to the HTML5 page is obtained as the picture to be shared, the first page content may be displayed in the HTML5 page; and/or hiding the second page content in the HTML5 page. The first page content and the second page content can be preset, and after the first page content is displayed in the HTML5 page and/or the second page content is hidden, the obtained picture to be shared is a picture corresponding to the HTML5 page with the first page content added and/or the second page content hidden.
Step 203: and sharing the picture.
It should be noted that step 203 may be performed by the native application. Moreover, the native application may share the picture through a sharing SDK (Software Development kit Ki), which is not limited in the embodiment of the present invention.
In addition, when the picture is shared, the embodiment of the invention can also carry out corresponding prompt according to whether the picture is successfully shared or not. For example, when the picture is successfully shared, a third prompt message for prompting that the picture is successfully shared may be displayed, and when the picture is not successfully shared, a fourth prompt message for prompting that the picture is unsuccessfully shared may be displayed. In this case, the native application may generate a third prompt message or a fourth prompt message according to whether the picture is successfully shared or not, and send the third prompt message or the fourth prompt message to the HTML5 page, for example, the native application may call JavaScript code exposed by the HTML5 page to send the third prompt message or the fourth prompt message to the HTML5 page. The HTML5 page may then display a third prompt message or a fourth prompt message on its page to prompt the user whether picture sharing succeeded or failed.
It is worth mentioning that in the embodiment of the present invention, only the preset operation needs to be performed on the sharing control in the HTML5 page, so as to directly obtain the picture and directly share the picture, and compared with the related art in which a user needs to manually capture the HTML5 page or manually download the picture in the HTML5 page to store the picture locally, and then manually select the picture from the local album to share the picture, the one-click picture sharing provided in the HTML5 page in the embodiment of the present invention can greatly simplify the picture sharing process, improve the picture sharing efficiency, and the whole sharing operation is convenient and easy, so as to improve the user experience.
Specifically, the operation of step 203 may be: displaying a sharing interface, wherein the sharing interface comprises a plurality of application identifications; when an application selection instruction is received in the sharing interface, displaying an object selection interface of an application identified by an application identifier selected by the application selection instruction in the plurality of application identifiers; and when an object selection instruction is received in the object selection interface, sending the picture to a sharing object selected by the object selection instruction in the application.
It should be noted that the sharing interface is used to select an application that needs to be picture-shared, and a plurality of application identifiers included in the sharing interface are application identifiers of a plurality of applications that can be picture-shared. The application identifier is used to uniquely identify the application, for example, the application identifier may be a name, an icon, and the like of the application, which is not limited in the embodiment of the present invention.
In addition, the application selection instruction is used for selecting an application identifier of an application that needs to be picture-shared from a plurality of application identifiers included in the sharing interface, the application selection instruction may be triggered by a user, and the user may be triggered by operations such as a click operation, a slide operation, a voice operation, and a gesture operation, which is not limited in the embodiment of the present invention.
Moreover, the object selection interface is used for selecting an object which needs to be subjected to picture sharing, and the object selection interface may include a plurality of objects capable of being subjected to picture sharing.
Finally, the object selection instruction is used for selecting a sharing object from the application, that is, the object selection instruction is used for selecting an object to be picture-shared from a plurality of objects included in the object selection interface. The object selection instruction may be triggered by a user, and the user may trigger the object selection instruction through operations such as a click operation, a slide operation, a voice operation, and a gesture operation, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, when the preset operation on the sharing control in the displayed HTML5 page is detected, a picture sharing request is generated. And then, according to the picture sharing request, obtaining a picture to be shared, and sharing the picture. Therefore, the picture can be directly acquired and directly shared only by presetting the sharing control in the HTML5 page, the one-click picture sharing provided in the HTML5 page can greatly simplify the picture sharing process, and the picture sharing efficiency is improved.
Fig. 3 is a schematic structural diagram of a picture sharing device according to an embodiment of the present invention. Referring to fig. 3, the apparatus includes: a generation module 301, an acquisition module 302 and a sharing module 303.
The generating module 301 is configured to generate a picture sharing request when a preset operation on a sharing control in a displayed HTML5 page is detected;
an obtaining module 302, configured to obtain a picture to be shared according to a picture sharing request;
the sharing module 303 is configured to share the picture.
Optionally, the obtaining module 302 includes:
and the downloading unit is used for downloading the picture to be shared according to the picture downloading address carried in the picture sharing request when the first sharing mark is carried in the picture sharing request.
Optionally, the obtaining module 302 includes:
and the conversion unit is used for converting the base64 encrypted character string carried in the picture sharing request to obtain the picture to be shared when the picture sharing request carries the second sharing mark.
Optionally, the obtaining module 302 includes:
and the obtaining unit is used for obtaining the picture corresponding to the HTML5 page as the picture to be shared when the picture sharing request carries the third sharing mark.
Optionally, the obtaining unit includes:
the acquisition subunit is used for acquiring a view of the HTML5 page as a picture to be shared; or,
and the screenshot subunit is used for screenshot the HTML5 page to obtain the picture to be shared.
Optionally, the obtaining module 302 further includes:
a first display unit for displaying first page content in an HTML5 page; and/or the presence of a gas in the gas,
and the hiding unit is used for hiding the second page content in the HTML5 page.
Optionally, the sharing module 303 includes:
the second display unit is used for displaying a sharing interface, and the sharing interface comprises a plurality of application identifiers;
the third display unit is used for displaying an object selection interface of an application identified by an application identifier selected by the application selection instruction from the plurality of application identifiers when the application selection instruction is received in the sharing interface;
and the sending unit is used for sending the picture to the sharing object selected by the object selection instruction in the application when the object selection instruction is received in the object selection interface.
In the embodiment of the invention, when the preset operation on the sharing control in the displayed HTML5 page is detected, a picture sharing request is generated. And then, according to the picture sharing request, obtaining a picture to be shared, and sharing the picture. Therefore, the picture can be directly acquired and directly shared only by presetting the sharing control in the HTML5 page, the one-click picture sharing provided in the HTML5 page can greatly simplify the picture sharing process, and the picture sharing efficiency is improved.
It should be noted that: in the picture sharing device provided in the above embodiment, only the division of the functional modules is exemplified, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the picture sharing apparatus and the picture sharing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 4 is a schematic structural diagram of a picture sharing device according to an embodiment of the present invention. The apparatus may be a terminal 400, and the terminal 400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 400 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
Generally, the terminal 400 includes: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 401 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 401 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high speed random access memory as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 402 is configured to store at least one instruction for execution by the processor 401 to implement the picture sharing method provided by the method embodiments of the present application.
In some embodiments, the terminal 400 may further optionally include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402 and peripheral interface 403 may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface 403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 404, touch screen display 405, camera 406, audio circuitry 407, positioning components 408, and power supply 409.
The peripheral interface 403 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 401 and the memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 401, the memory 402, and the peripheral interface 403 may be implemented on separate chips or circuit boards, which are not limited in this application.
The Radio Frequency circuit 404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, etc. The radio frequency circuitry 404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 404 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to capture touch signals on or over the surface of the display screen 405. The touch signal may be input to the processor 401 as a control signal for processing. At this point, the display screen 405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 405 may be one, disposed on the front panel of the terminal 400; in other embodiments, the display screen 405 may be at least two, respectively disposed on different surfaces of the terminal 400 or in a folded design; in still other embodiments, the display 405 may be a flexible display disposed on a curved surface or a folded surface of the terminal 400. Even further, the display screen 405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 405 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 401 or the radio frequency circuit 404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 407 may also include a headphone jack.
The positioning component 408 is used to locate the current geographic position of the terminal 400 for navigation or LBS (Location Based Service). The Positioning component 408 may be a Positioning component based on the GPS (Global Positioning System) of the united states, the beidou System of china, the graves System of russia, or the galileo System of the european union.
The power supply 409 is used to supply power to the various components in the terminal 400. The power source 409 may be alternating current, direct current, disposable or rechargeable. When power source 409 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 400 also includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 400. For example, the acceleration sensor 411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 401 may control the touch display screen 405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the terminal 400, and the gyro sensor 412 may cooperate with the acceleration sensor 411 to acquire a 3D motion of the terminal 400 by the user. From the data collected by the gyro sensor 412, the processor 401 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 413 may be disposed on a side bezel of the terminal 400 and/or a lower layer of the touch display screen 405. When the pressure sensor 413 is disposed on the side frame of the terminal 400, a user's holding signal to the terminal 400 can be detected, and the processor 401 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 414 is used for collecting a fingerprint of the user, and the processor 401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 414 may be disposed on the front, back, or side of the terminal 400. When a physical key or vendor Logo is provided on the terminal 400, the fingerprint sensor 414 may be integrated with the physical key or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 based on the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
The proximity sensor 416, also referred to as a distance sensor, is typically disposed on a front panel of the terminal 400. The proximity sensor 416 is used to collect the distance between the user and the front surface of the terminal 400. In one embodiment, when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal 400 gradually decreases, the processor 401 controls the touch display screen 405 to switch from the bright screen state to the dark screen state; when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal 400 gradually becomes larger, the processor 401 controls the touch display screen 405 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is not intended to be limiting of terminal 400 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. The picture sharing method is applied to an application, the application comprises a front end and a Native end, the front end displays a hypertext markup language HTML5 page, the HTML5 page displays a first sharing control, a second sharing control and a third sharing control, the first sharing control is used for sharing pictures of a first picture type, and the pictures of the first picture type are from a network; the second sharing control is used for sharing pictures of a second picture type, and the pictures of the second picture type are derived from base64 characters; the third sharing control is used for sharing a picture of a third picture type, wherein the picture of the third picture type is sourced from the HTML5 page;
the method comprises the following steps:
when the front end detects a preset operation on a first sharing control in a displayed HTML5 page, generating a picture sharing request carrying a first sharing mark and a picture downloading address stored in advance; when the preset operation of a second sharing control in the displayed HTML5 page is detected, generating a picture sharing request carrying a second sharing mark and a prestored base64 encryption character string; when a preset operation on a third sharing control in a displayed HTML5 page is detected, generating a picture sharing request carrying a third sharing mark;
when the picture sharing request carries a first sharing mark, the Native terminal downloads a picture to be shared according to a picture downloading address carried in the picture sharing request; when the picture sharing request carries a second sharing mark, the Native terminal converts a base64 encrypted character string carried in the picture sharing request to obtain a picture to be shared; when the picture sharing request carries a third sharing mark, the Native terminal acquires a picture corresponding to the HTML5 page as a picture to be shared;
the Native terminal displays a sharing interface, wherein the sharing interface comprises a plurality of application identifiers; when an application selection instruction is received in the sharing interface, displaying an object selection interface of an application identified by an application identifier selected by the application selection instruction in the plurality of application identifiers; and when an object selection instruction is received in the object selection interface, sending the picture to a sharing object selected by the object selection instruction in the application.
2. The method of claim 1, wherein the obtaining the picture corresponding to the HTML5 page as the picture to be shared comprises:
acquiring a view of the HTML5 page as a picture to be shared; or,
and performing screenshot on the HTML5 page to obtain a picture to be shared.
3. The method of claim 1, wherein before the obtaining the picture corresponding to the HTML5 page as the picture to be shared, the method further comprises:
displaying first page content in the HTML5 page; and/or the presence of a gas in the gas,
hiding the second page content in the HTML5 page.
4. The picture sharing device is applied to an application, the application comprises a front end and a Native end, the front end displays a hypertext markup language HTML5 page, the HTML5 page displays a first sharing control, a second sharing control and a third sharing control, the first sharing control is used for sharing pictures of a first picture type, and the pictures of the first picture type are from a network; the second sharing control is used for sharing pictures of a second picture type, and the pictures of the second picture type are derived from base64 characters; the third sharing control is used for sharing a picture of a third picture type, wherein the picture of the third picture type is sourced from the HTML5 page;
the device comprises:
the generating module is used for generating a picture sharing request when a preset operation on a sharing control in a displayed hypertext markup language HTML5 page is detected; when a preset operation on a sharing control in a displayed hypertext markup language HTML5 page is detected, generating a picture sharing request includes: when the front end detects a preset operation on a first sharing control in a displayed HTML5 page, generating a picture sharing request carrying a first sharing mark and a picture downloading address stored in advance; when the preset operation of a second sharing control in the displayed HTML5 page is detected, generating a picture sharing request carrying a second sharing mark and a prestored base64 encryption character string; when a preset operation on a third sharing control in a displayed HTML5 page is detected, generating a picture sharing request carrying a third sharing mark;
the acquisition module is used for acquiring the picture to be shared according to the picture sharing request, wherein the picture sharing request carries sharing marks, and different sharing marks are used for indicating different picture types; obtaining a picture to be shared according to the picture sharing request, wherein the obtaining of the picture to be shared comprises: when the picture sharing request carries a first sharing mark, the Native terminal downloads a picture to be shared according to a picture downloading address carried in the picture sharing request; when the picture sharing request carries a second sharing mark, the Native terminal converts a base64 encrypted character string carried in the picture sharing request to obtain a picture to be shared; when the picture sharing request carries a third sharing mark, the Native terminal acquires a picture corresponding to the HTML5 page as a picture to be shared;
the sharing module is used for sharing the pictures;
wherein the acquisition module comprises: the downloading unit is used for downloading the picture to be shared according to the picture downloading address carried in the picture sharing request when the picture sharing request carries the first sharing mark;
the conversion unit is used for converting the base64 encrypted character string carried in the picture sharing request to obtain a picture to be shared when the picture sharing request carries a second sharing mark;
the obtaining unit is used for obtaining a picture corresponding to the HTML5 page as a picture to be shared when the picture sharing request carries a third sharing mark;
wherein, the sharing module comprises:
the second display unit is used for displaying a sharing interface, and the sharing interface comprises a plurality of application identifiers;
the third display unit is used for displaying an object selection interface of an application identified by an application identifier selected by the application selection instruction from the plurality of application identifiers when the application selection instruction is received in the sharing interface;
and the sending unit is used for sending the picture to the sharing object selected by the object selection instruction in the application when the object selection instruction is received in the object selection interface.
5. The apparatus of claim 4, wherein the acquisition module comprises:
the acquisition unit is used for acquiring the view of the HTML5 page as a picture to be shared; or the screenshot unit is used for screenshot the HTML5 page to obtain a picture to be shared.
6. The apparatus of claim 4, wherein the acquisition module further comprises:
a first display unit for displaying first page content in the HTML5 page; and/or the presence of a gas in the gas,
a hiding unit, configured to hide the second page content in the HTML5 page.
7. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-3.
CN201811041127.2A 2018-09-06 2018-09-06 Picture sharing method and device and computer readable storage medium Active CN109033473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811041127.2A CN109033473B (en) 2018-09-06 2018-09-06 Picture sharing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811041127.2A CN109033473B (en) 2018-09-06 2018-09-06 Picture sharing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109033473A CN109033473A (en) 2018-12-18
CN109033473B true CN109033473B (en) 2022-02-11

Family

ID=64624376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811041127.2A Active CN109033473B (en) 2018-09-06 2018-09-06 Picture sharing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109033473B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110363117B (en) * 2019-06-28 2023-07-28 深圳数位大数据科技有限公司 Method and device for analyzing encrypted random coding character file
CN111046312A (en) * 2019-12-20 2020-04-21 五八有限公司 Page sharing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377233A (en) * 2012-04-26 2013-10-30 腾讯科技(深圳)有限公司 Webpage sharing method and corresponding system
CN104035929A (en) * 2013-03-04 2014-09-10 腾讯科技(深圳)有限公司 Webpage screenshot method and device
CN104702665A (en) * 2014-12-29 2015-06-10 广州唯品会信息科技有限公司 Information sharing method and information sharing device
CN106095217A (en) * 2016-05-26 2016-11-09 努比亚技术有限公司 Application sharing apparatus, system and method
CN106503183A (en) * 2016-10-24 2017-03-15 北京奇虎科技有限公司 A kind of handheld terminal browser page sharing method, device and handheld terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377233A (en) * 2012-04-26 2013-10-30 腾讯科技(深圳)有限公司 Webpage sharing method and corresponding system
CN104035929A (en) * 2013-03-04 2014-09-10 腾讯科技(深圳)有限公司 Webpage screenshot method and device
CN104702665A (en) * 2014-12-29 2015-06-10 广州唯品会信息科技有限公司 Information sharing method and information sharing device
CN106095217A (en) * 2016-05-26 2016-11-09 努比亚技术有限公司 Application sharing apparatus, system and method
CN106503183A (en) * 2016-10-24 2017-03-15 北京奇虎科技有限公司 A kind of handheld terminal browser page sharing method, device and handheld terminal

Also Published As

Publication number Publication date
CN109033473A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN107885533B (en) Method and device for managing component codes
CN110308956B (en) Application interface display method and device and mobile terminal
CN109451343A (en) Video sharing method, apparatus, terminal and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN108093307B (en) Method and system for acquiring playing file
CN109862412B (en) Method and device for video co-shooting and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN109068008B (en) Ringtone setting method, device, terminal and storage medium
CN110362366B (en) Application interface display method and device
CN110109608B (en) Text display method, text display device, text display terminal and storage medium
CN113204298A (en) Method and device for displaying release progress, electronic equipment and storage medium
CN110839174A (en) Image processing method and device, computer equipment and storage medium
CN109800003B (en) Application downloading method, device, terminal and storage medium
CN110769120A (en) Method, device, equipment and storage medium for message reminding
CN112770177B (en) Multimedia file generation method, multimedia file release method and device
CN108734662B (en) Method and device for displaying icons
CN111897465B (en) Popup display method, device, equipment and storage medium
CN108038232B (en) Webpage editing method, device and system and storage medium
CN109783176B (en) Page switching method and device
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN107943484B (en) Method and device for executing business function
CN110245255A (en) Song display methods, device, equipment and storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN113485596A (en) Virtual model processing method and device, electronic equipment and storage medium
CN110191236B (en) Song playing queue management method and device, terminal equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant