CN110618975A - Image sharing method and device and electronic equipment - Google Patents
Image sharing method and device and electronic equipment Download PDFInfo
- Publication number
- CN110618975A CN110618975A CN201910850079.XA CN201910850079A CN110618975A CN 110618975 A CN110618975 A CN 110618975A CN 201910850079 A CN201910850079 A CN 201910850079A CN 110618975 A CN110618975 A CN 110618975A
- Authority
- CN
- China
- Prior art keywords
- image
- sharing
- shared
- image sharing
- application program
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application discloses an image sharing method and device and electronic equipment. The method comprises the following steps: acquiring a selected image to be shared in an album of the electronic equipment; if the original image sharing operation of the image to be shared is detected, triggering an application program corresponding to the original image sharing operation to start so as to display an image sharing configuration area; triggering an application program to display an image selection interface based on a simulated click mode; and selecting the image to be shared in the image selection interface based on a simulated click mode and selecting the original image sharing effect, so that the application program can share the image to be shared in the sharing area corresponding to the image sharing configuration area after detecting the original image sharing control acting in the image selection interface. By means of the method, after the pictures can be directly selected in the photo album, the original picture sharing operation can be directly triggered, so that the original pictures can be directly shared in the photo album to the application program, and convenience in original picture sharing is greatly improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to an image sharing method and apparatus, and an electronic device.
Background
As the communication between the terminal users becomes more and more, more users want to share their own images with other users for viewing. However, in the current electronic device, the image directly shared from the album to other users is usually a compressed image, which causes poor viewing experience of other users. Moreover, the current sharing process needs to be improved.
Disclosure of Invention
In view of the foregoing problems, the present application provides an image sharing method, an image sharing apparatus, and an electronic device to improve the foregoing problems.
In a first aspect, the present application provides an image sharing method applied to an electronic device, where the method includes: acquiring an image to be shared, wherein the image to be shared is a selected image in an album of the electronic equipment; if the original image sharing operation on the image to be shared is detected, triggering an application program corresponding to the original image sharing operation to start so as to display an image sharing configuration area; and in the image sharing configuration area, triggering the application program to select the image to be shared and select the original image sharing effect based on a click simulation mode, so that the application program can share the image to be shared in the sharing area.
In a second aspect, the present application provides an image sharing apparatus, which operates on an electronic device, the apparatus including: the image acquisition unit is used for acquiring an image to be shared, wherein the image to be shared is a selected image in an album of the electronic equipment; the program starting unit is used for triggering an application program corresponding to the original image sharing operation to be started to display an image sharing configuration area if the original image sharing operation on the image to be shared is detected; and the image sharing operation unit is used for triggering the application program to select the image to be shared and select the original image sharing effect in the image sharing configuration area, so that the application program can share the image to be shared in the sharing area.
In a third aspect, the present application provides an electronic device comprising a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the methods described above.
In a fourth aspect, the present application provides a computer readable storage medium having program code stored therein, wherein the method described above is performed when the program code is executed by a processor.
According to the image sharing method, the image sharing device and the electronic equipment, after the selected image to be shared in the album of the electronic equipment is obtained, if the original image sharing operation of the image to be shared is detected, an application program corresponding to the original image sharing operation is triggered to start to display an image sharing configuration area; in the image sharing configuration area, triggering the application program to display an image selection interface including the images acquired in the album based on a simulated click mode, selecting the images to be shared and selecting an original image sharing effect in the image selection interface based on the simulated click mode, so that the application program can share the images to be shared in the sharing area corresponding to the image sharing configuration area after detecting an original image sharing control acting on the image selection interface. By means of the method, after the pictures can be directly selected in the photo album, the original picture sharing operation can be directly triggered, so that the original pictures can be directly shared in the photo album to the application program, and convenience in original picture sharing is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, 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 illustrating an image sharing method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram illustrating that an image is selected in an image selection interface in an album according to an image sharing method in an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a case where no image is selected in an image selection interface in an album according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating an image selection interface of an application in an album in an image sharing method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating an image sharing method according to another embodiment of the present application;
fig. 6 is a schematic diagram illustrating an image display position change in an image sharing method according to another embodiment of the present application;
fig. 7 is a schematic diagram illustrating another image display position change in an image sharing method according to another embodiment of the present application;
fig. 8 is a schematic diagram illustrating a change in a display position of another image in an image sharing method according to another embodiment of the present application;
fig. 9 is a schematic diagram illustrating an original image sharing control in an image sharing method according to another embodiment of the present application;
fig. 10 is a schematic diagram illustrating a plurality of original image sharing controls in an image sharing method according to another embodiment of the present application;
fig. 11 is a schematic diagram illustrating another original image sharing control in an image sharing method according to another embodiment of the present application;
fig. 12 is a flowchart illustrating an image sharing method according to still another embodiment of the present application;
fig. 13 is a schematic diagram illustrating a session list in an image sharing method according to yet another embodiment of the present application;
fig. 14 is a schematic diagram illustrating a session content interface in an image sharing method according to still another embodiment of the present application;
fig. 15 is a flowchart illustrating an image sharing method according to another embodiment of the present application;
fig. 16 is a block diagram illustrating a structure of an image sharing apparatus according to an embodiment of the present disclosure;
fig. 17 is a block diagram illustrating an image sharing apparatus according to another embodiment of the present disclosure;
fig. 18 is a block diagram illustrating an electronic device for executing an image sharing method according to an embodiment of the present application;
fig. 19 is a storage unit, according to an embodiment of the present disclosure, configured to store or carry program codes for implementing an image sharing method according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As the communication between the terminal users becomes more and more, more users want to share their own images with other users for viewing. For example, for pictures or videos in a user photo album, the user can share the pictures or videos in the photo album to other users in an instant messaging manner through social software, and in addition, the pictures or videos in the photo album can be shared to other users in a friend circle or space manner.
However, in the current electronic device, the image directly shared from the album to other users is usually a compressed image, which causes poor viewing experience of other users. However, if a user desires to share images such as pictures or videos in an album to other users without compression processing, the user needs to select the images in the album, manually trigger and display a selection interface of an application program from social application programs, and select the images on the selection interface of the application program, so that the original pictures or videos can be sent, and the sharing process is inconvenient.
After finding the above problems in the research, the inventors propose an image sharing method, an image sharing apparatus, and an electronic device that can improve the above problems in the present application. After the pictures can be directly selected in the photo album, the sharing operation of the original pictures can be directly triggered, so that the original pictures can be directly shared in the photo album to the application program, the convenience of sharing the original pictures is greatly improved, and the user experience is improved.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, an image sharing method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
step S110: and acquiring an image to be shared, wherein the image to be shared is a selected image in an album of the electronic equipment.
It can be understood that, in this embodiment, the user may first select a subsequent image that needs to be directly shared with the original image in the album. Then, in the process of selecting an image by the user, the image selected by the user may be marked so as to be acquired as an image to be shared.
Step S120: and if the original image sharing operation on the image to be shared is detected, triggering an application program corresponding to the original image sharing operation to start so as to display an image sharing configuration area.
In this embodiment, the electronic device may provide a plurality of ways for triggering the sharing operation of the image to be shared. Correspondingly, the user can also trigger the original image sharing operation of the image to be shared in various ways.
As one mode, after detecting that an image in an album is selected as an image to be shared, the electronic device may suspend and display an image operation control independent of the album, where an image operation option is configured in the image operation control, and the option may include an original image sharing option. In this case, if it is detected that the original image sharing option is touched, it is determined that the original image sharing operation on the image to be shared is detected, and an application program corresponding to the original image sharing operation is triggered to be started to display an image sharing configuration area.
Optionally, the image operation control may be configured with other options besides the original image sharing operation option, for example, a delete option, a beautiful image option, and the like. Optionally, the image operation control may move in response to the user operation or change the transparency in order not to affect the user to select and browse the images in the album.
It should be noted that in this manner, the image operation control is independent from the album, and in order to facilitate the image operation control to trigger the operation on the image in the album, the image operation control may perform process-to-process communication with the album. In this way, if the image operation control detects that the user triggers the deletion option, the image operation control further sends a deletion instruction to the album in a process communication manner, so as to delete the image currently selected by the user. And if the photo album detects that the user cancels the previously selected image, the photo album also sends a display cancellation instruction to the image operation control so that the image operation control cancels the display.
For example, as shown in fig. 2, an exemplary display style of an image manipulation control is presented. The image manipulation control 99 shown in fig. 2 is provided with an original image sharing option and a deletion option. In addition, in fig. 2, a hook with a ring is marked at the lower right corner of the image to represent the image to be shared selected by the user. Then when the image that has been selected by the user is deselected by the user, the previous image manipulation control 99 will also disappear as shown in fig. 3.
It can be understood that the mode of configuring the image operation control individually can realize the sharing operation of the original image directly from the album without changing the configuration interface of the album. Moreover, the interface and the function of the image operation control are simple and convenient, and the later maintenance is facilitated.
In another mode, sharing operation controls belonging to the album are configured in the album. And after the control is detected to be applied to the sharing operation, judging that the original image sharing operation on the image to be shared is detected, and further triggering an application program corresponding to the original image sharing operation to start to display an image sharing configuration area.
Based on the above manner, the application program may be triggered to start to display the image sharing configuration area, and it can be understood that the application program is an application program that needs to perform image sharing subsequently.
Step S130: and in the image sharing configuration area, triggering the application program to select the image to be shared and select the original image sharing effect based on a click simulation mode, so that the application program can share the image to be shared in the sharing area.
It can be understood that the image sharing configuration area is used for an application program needing image sharing to acquire an image to be shared which is selected in an album by a user before. Then the electronic device may trigger the application to display the image selection interface based on the simulation operation as a way that does not require manual operation by the user.
It is understood that the electronic device may pre-record a position of a control triggering the image selection interface to be displayed in the image sharing configuration area of the application program as a mark position. Then, after the electronic device detects that the application program displays the image configuration area, the electronic device may simulate clicking on the aforementioned mark position based on a simulation operation mode so as to trigger the display of the image selection interface.
It should be noted that, taking an operating system of an electronic device as an Android system as an example, the simulation operations of the electronic device are all based on an Android control layer, and mainly relate to Widgets and WebView. In the simulation operation process, view information of the current window is obtained through various services provided by the Android. Then, a target control (i.e., a control which triggers the display of the image selection interface in the image sharing configuration area) is searched in the current view, the coordinates of the center point of the target control are calculated according to the attribute information of the target control, and then an Android Input event is constructed to realize the simulation operation of the target control, so that the same effect as that of manually touching the target control by a user can be realized. For example, it may be based on the Uiautomator framework. In this way, the method can be implemented based on Hierachyview combined with monkey mode, specifically, the Hierachyview establishes connection with the device side ViewServer through socket, and the port is 4939. Next, control attribute information is obtained by a command "dump-1". The information is stored in the ViewNode. Thirdly, traversing the control tree to find the target control according to the ViewNode information, and calculating the coordinate of the central point according to the bounds information.
As one mode, the image configuration operation area of the application program is an interface of the application program. The electronic device may detect whether the currently foreground displayed interface is the image configuration operation region by pre-marking the identifier of the interface as the image configuration operation region. For example, optionally, registration of an interface as an image configuration operation region may be performed in advance for each application program that can share an image. As a mode, the electronic device may pre-establish a list, and store the application identifier and the interface identifier corresponding to the interface serving as the image configuration operation area in the list. Then, after an interface runs, the electronic device may first obtain an interface identifier of the currently running interface in the foreground, then search in the list, if the interface identifier can be found, the interface serving as the image configuration operation area is represented to be displayed in the foreground, and may also correspondingly obtain an application program to which the interface belongs.
If the electronic device is an electronic device of an Android operating system, the electronic device can acquire a foreground running interface in a getringing activityname () mode.
As a mode, in the image sharing configuration area, triggering the application program to select the image to be shared and select an original image sharing effect based on a mode of simulated clicking, so that the step of the application program sharing the image to be shared in the sharing area includes:
triggering the application program to display an image selection interface, wherein the image displayed in the image selection interface is obtained from the album, selecting the image to be shared in the image selection interface based on a simulated click mode and selecting an original image sharing effect, so that the application program can share the image to be shared in a sharing area corresponding to the image sharing configuration area after detecting an original image sharing control acting on the image selection interface.
After the image selection interface is displayed, the electronic device can further simulate the operation of the touch screen of the user based on a simulation operation mode so as to select the image to be shared which is selected in the album before. Of course, when the image to be shared is selected in the image selection interface, the sharing effect shared by the original image is also selected.
In the image selection interface 98 shown in fig. 4, the images read from the album are displayed, and the electronic device selects the image that has been selected by the user in the album based on the simulation operation, and also selects the control for sharing the original image with the sharing effect through the simulation operation.
It should be noted that, in the embodiment of the present application, the provided image sharing method may be executed by an album, or may be executed by a program independent of the album. If the image sharing is executed through the album, the album is directly executed in the process of triggering the application program corresponding to the original image sharing operation to be started to display the image sharing configuration area. In the embodiment of the present application, if the image sharing method is executed by a program independent from the album, the independent program is used to trigger the application program corresponding to the original image sharing operation to start to display the image sharing configuration area.
According to the image sharing method, after the selected image to be shared in the album of the electronic equipment is obtained, if the original image sharing operation of the image to be shared is detected, an application program corresponding to the original image sharing operation is triggered to start to display an image sharing configuration area; in the image sharing configuration area, triggering the application program to display an image selection interface including the images acquired in the album based on a simulated click mode, selecting the images to be shared and selecting an original image sharing effect in the image selection interface based on the simulated click mode, so that the application program can share the images to be shared in the sharing area corresponding to the image sharing configuration area after detecting an original image sharing control acting on the image selection interface. By means of the method, after the pictures can be directly selected in the photo album, the original picture sharing operation can be directly triggered, so that the original pictures can be directly shared in the photo album to the application program, and convenience in original picture sharing is greatly improved.
Referring to fig. 5, an image sharing method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
step S210: and acquiring the selected image in the album of the electronic equipment as the image to be shared.
Step S220: configuring the selected image display position as a designated position.
It will be appreciated that during image selection by a user in an album, the selected image need not be the most recently captured or downloaded image. It is possible that images that are one day, several days, or even longer before are selected, which means that the images selected by the user may be distributed in multiple areas of the album.
In this embodiment, as a way, in order to facilitate subsequent acquisition of the image that has been selected by the user in the album in the image selection interface of the application program, the image selection interface may be accurately and quickly acquired. The display positions of the images selected by the user in the album may be all configured as the designated positions. For example, it may be configured to be displayed in the positions that are all sorted close. In this way, after all the selected images are sorted at the front positions, in the image selection interface of the subsequent application program, several images sorted at the front in the image selection interface can also be directly selected as the images to be shared based on a simulated click mode.
Illustratively, as shown in fig. 6, the left side in the content shown in fig. 6 is in the album interface, and the right side image is in the image selection interface of the application program. In the album interface on the left side of fig. 6, it is known that the user selects image a and image C. In this manner, the display positions of the image a and the image C are configured to the first two digits. Then the corresponding image a and image C would be displayed in the top two sorted digits of the image selection interface of the application on the right side of fig. 6. For another example, as shown in fig. 7, it is known that the user selects image a, image C, and image D. In this manner, the display positions of the image a, the image C, and the image D are configured to be the three first digits. Then the corresponding image selection interface of the application on the right side of fig. 7 would show image a, image C, and image D in the top three digits of the ranking. It will be appreciated that in this manner, the electronic device will configure the display position of the user-selected image to be the first few digits.
Furthermore, in addition to directly reconfiguring display positions. The image selected by the user can also be copied into a newly created folder. Then in this manner, the application will subsequently read the image directly from the newly created folder after triggering the application to display the image selection interface. For example, as shown in fig. 8, it is known that the user selects image a, image C, and image D. Then in this manner, image a, image C, and image D would be copied into the new folder. In this way, as shown in the right image of fig. 8, the application program only reads the images in the new folder in the album, and further only displays the images in the new folder in the album in its image display interface.
It should be noted that, in this way of copying the image selected by the user into a new folder, after a subsequent touch operation on the original image sharing control is detected, the electronic device may update the default album reading address, and point the updated album reading address to the address of the new file, so that the image in the new folder may be directly read subsequently.
Step S230: and displaying an original image sharing control of the photo album.
Optionally, after the sharing triggering control in the album is detected to be touched, the electronic device may display the original image sharing control of the album. For example, as shown in fig. 9, in the content shown in fig. 9, a sharing trigger control 97 is displayed in the interface of the album. If a touch operation on the sharing trigger control 97 is detected, the sharing detailed interface 96 is displayed, and the original image sharing control 95 is displayed in the sharing detailed interface 96.
Step S240: and if the touch operation acting on the original image sharing control is detected, triggering an application program corresponding to the original image sharing control to start so as to display an image sharing configuration area.
It should be noted that, in the embodiment of the present application, the original image sharing control may be implemented in various ways.
As one mode, at least one original image sharing control is provided, and each original image sharing control is bound with a corresponding application program. In this manner, if a touch operation acting on the original image sharing control is detected, the step of triggering an application program corresponding to the original image sharing control to start to display an image sharing configuration area includes: and if the touch operation acting on the original image sharing control is detected, triggering an application program bound with the original image sharing control to start so as to display an image sharing configuration area.
For example, as shown in fig. 10, there are a plurality of original image sharing controls in the interface shown in fig. 10, and each original image sharing control is bound with an application program. For example, as shown in fig. 10, the original image sharing control 95 has an application a bound thereto, the original image sharing control 94 has an application B bound thereto, and the original image sharing control 93 has an application C bound thereto. In this way, if a touch operation on the original image sharing control 95 is detected, the application a corresponding to the original image sharing control 95 is triggered to start to display the image sharing configuration area. If a touch operation on the original image sharing control 94 is detected, the application program B corresponding to the original image sharing control 94 is triggered to start to display an image sharing configuration area. If a touch operation acting on the original image sharing control 93 is detected, an application program C corresponding to the original image sharing control 93 is triggered to start to display an image sharing configuration area.
In this manner, the application program bound by the original image sharing control displayed in the sharing detailed interface is an application program marked in advance to support original image sharing. As one way, the application programs marked in advance to support the sharing of the original image may be recorded in a manner of creating a list in advance. And if yes, configuring and adding a corresponding original image sharing control in the sharing detailed interface. Correspondingly, if the updated application program is detected to belong to the application programs in the list, the corresponding original image sharing control is added to the configuration of the sharing detailed interface. For example, if the electronic device detects that the application E is newly installed at present, it further detects whether the application E is in the list of the application programs supporting original image sharing, and if so, configures an original image sharing control corresponding to the application E to be added in the sharing detailed interface.
Moreover, when detecting that an application is deleted, the electronic device may also correspondingly detect the deleted application, and detect whether the deleted application is in a list of applications that support original image sharing. If so, deleting the original image sharing control corresponding to the deleted application program from the sharing detailed interface.
The electronic device stores a configuration file corresponding to the album. The configuration file records an original image sharing control bound by which application programs need to be displayed by the sharing detailed interface. Then, during the operation of adding and deleting the original image sharing control, it may be understood as operating the configuration file.
Alternatively, there is only one of the artwork sharing controls. In this manner, if a touch operation acting on the original image sharing control is detected, the step of triggering an application program corresponding to the original image sharing control to start to display an image sharing configuration area includes: detecting a touch operation acting on the original image sharing control, and displaying an identifier of at least one application program so as to facilitate selection of a user; and acquiring the application program selected by the user from the at least one application program identifier, and triggering the application program selected by the user to start to display the image sharing configuration area.
For example, as shown in fig. 11, in this manner, the artwork sharing control displayed in the sharing detail interface is not bound with an application. Then, after detecting that there is a touch operation on the original image sharing control in fig. 11, the electronic device displays an interface 91 so that the user selects which application is specifically triggered to start to display the image sharing configuration area.
Step S250: and in the image sharing configuration area, triggering the application program to display an image selection interface based on a simulated click mode, wherein the image displayed in the image selection interface is acquired from the album.
Step S260: and selecting the image to be shared from the designated position and selecting an original image sharing effect in the image selection interface based on a simulated click mode, so that the application program can share the image to be shared in a sharing area corresponding to the image sharing configuration area after detecting an original image sharing control acting on the image selection interface.
According to the image sharing method, after the pictures can be directly selected from the photo album, the original image sharing operation can be directly triggered, so that the original image can be directly shared in the photo album to the application program, and the convenience of original image sharing is greatly improved. In addition, in the implementation, the original image sharing control can be displayed, so that after a user selects an image in the album, the user can directly trigger subsequent operation from the original image sharing control in the album, and the convenience of user operation is improved. Moreover, for the selected picture, the selected image display position is configured to be the designated position, so that when the previously selected picture of the user is selected based on the simulation operation in the image selection interface, the image to be shared can be selected from the designated position directly based on the simulation click mode, and the selection efficiency and convenience are improved.
Referring to fig. 12, an image sharing method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
step S310: and acquiring an image to be shared, wherein the image to be shared is a selected image in an album of the electronic equipment.
Step S320: and if the original image sharing operation on the image to be shared is detected, triggering an application program corresponding to the original image sharing operation to start so as to display a session list.
In this embodiment, the image to be shared is shared in the scene of the session. When the electronic device triggers the subsequent application program needing to share the image to start, the electronic device triggers the application program needing to share the image to start and then displays the session list. In this manner, the user is prompted to select a session for convenience. A prompt message may be displayed as shown in fig. 13. Specifically, as shown in fig. 13, the session list includes a group chat a, a group chat B, and a group chat C. Correspondingly, a prompt box is displayed in the interface, and prompt information of 'please select a session' is displayed in the prompt box.
Step S330: and after the target session is determined from the session list, displaying a session content interface of the target session as an image sharing configuration area.
It is understood that part of the image sharing application is a third-party application, and the electronic device may not be able to control or read information from the third-party application. For example, the electronic device may not be able to directly know whether the user selected the target session from fig. 13 by means of information interaction. Then, as one way, when a touch operation acting on the session list is detected, it may be determined that the target session is determined from the session list.
Step S340: and displaying a trigger control in a floating manner in the session content interface of the target session.
It will be appreciated that the floating display trigger control displayed within the session content interface of the target session may serve as a switch for the user to trigger whether to follow-up. In this way, when a touch operation on the trigger control is detected, a subsequent operation of displaying the image selection interface can be triggered. For example, as shown in FIG. 14, a displayed trigger control 90 is hovered.
As a mode, a preview image of the image to be shared is displayed in the touch control. The preview image may have various embodiments. Optionally, if the image to be shared selected by the user in the album is one image, the preview image mentioned in this embodiment may be a thumbnail of the one image. In addition, optionally, if a plurality of images to be shared are selected in the album by the user, the preview image mentioned in this embodiment may be thumbnails of the plurality of images, or thumbnails of partial images of the plurality of images.
Step S350: if the touch operation of the trigger control is detected, triggering the application program to display an image selection interface in the image sharing configuration area based on a simulated click mode, wherein the image displayed in the image selection interface is acquired from the album.
Step S360: and selecting the image to be shared and selecting an original image sharing effect in the image selection interface based on a simulated click mode, so that the application program can share the image to be shared in a sharing area corresponding to the image sharing configuration area after detecting an original image sharing control acting on the image selection interface.
In addition to the session list, as another manner, if an original image sharing operation on the image to be shared is detected, the step of triggering an application program corresponding to the original image sharing operation to start up to display an image sharing configuration area includes: and if the original image sharing operation on the image to be shared is detected, triggering an application program corresponding to the original image sharing operation to start so as to display a social information sending configuration interface, wherein the social information sending configuration interface is an image sharing configuration area.
According to the image sharing method, after the pictures can be directly selected from the photo album, the original image sharing operation can be directly triggered, so that the original image can be directly shared in the photo album to the application program, and the convenience of original image sharing is greatly improved. In addition, in the implementation, after the application program is triggered to start, the session list interface of the display is directly displayed, so that a user can directly select a target session, and then subsequently and directly share and sign the selected image to be shared in the target session.
Referring to fig. 15, an image sharing method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
step S410: if the fact that the original image sharing operation is triggered in the album is detected, an application program corresponding to the original image sharing operation is triggered to start to display an image sharing configuration area, and the selected image in the album of the electronic device is used as the image to be shared.
Step S420: and in the image sharing configuration area, triggering the application program to display an image selection interface based on a simulated click mode, wherein the image displayed in the image selection interface is acquired from the album.
Step S430: and selecting the image to be shared and selecting an original image sharing effect in the image selection interface based on a simulated click mode, so that the application program can share the image to be shared in a sharing area corresponding to the image sharing configuration area after detecting an original image sharing control acting on the image selection interface.
According to the image sharing method, after the pictures can be directly selected from the photo album, the original image sharing operation can be directly triggered, so that the original image can be directly shared in the photo album to the application program, and the convenience of original image sharing is greatly improved.
Referring to fig. 16, in an image sharing apparatus 400 provided in an embodiment of the present application, when the apparatus 400 operates in an electronic device, the apparatus 400 includes:
an image obtaining unit 410, configured to obtain an image to be shared, where the image to be shared is a selected image in an album of the electronic device.
The program starting unit 420 is configured to, if an original image sharing operation on the image to be shared is detected, trigger an application program corresponding to the original image sharing operation to start to display an image sharing configuration area.
As one mode, as shown in fig. 17, the program starting unit 420 specifically includes:
and a control display subunit 421, configured to display an original image sharing control of the album.
And the starting subunit 422 is configured to, if a touch operation acting on the original image sharing control is detected, trigger an application program corresponding to the original image sharing control to start so as to display an image sharing configuration area.
As one mode, the program starting unit 420 is specifically configured to, if an original image sharing operation on the image to be shared is detected, trigger an application program corresponding to the original image sharing operation to start to display a session list; and after the target session is determined from the session list, displaying a session content interface of the target session as an image sharing configuration area.
Optionally, the program starting unit 420 is specifically configured to float and display a trigger control in the session content interface of the target session; and if the touch operation of the trigger control is detected, triggering the application program to display an image selection interface in the image sharing configuration area based on a simulated click mode. And displaying a preview image of the image to be shared in the touch control.
Optionally, at least one original image sharing control is provided, and each original image sharing control is bound with a corresponding application program. In this manner, the starting subunit 422 is specifically configured to, if a touch operation acting on the original image sharing control is detected, trigger an application program bound to the original image sharing control to start to display an image sharing configuration area.
The image sharing operation unit 430 is configured to trigger the application program to select the image to be shared and to select an original image sharing effect based on a click simulation manner in the image sharing configuration area, so that the application program shares the image to be shared in the sharing area.
As one mode, the image sharing operation unit 430 is specifically configured to trigger the application program to display an image selection interface based on a simulated click mode in the image sharing configuration area, where the image displayed in the image selection interface is obtained from the album, and select the image to be shared and select an original image sharing effect based on the simulated click mode in the image selection interface, so that the application program, after detecting an original image sharing control acting on the image selection interface, shares the image to be shared in a sharing area corresponding to the image sharing configuration area.
As one mode, the image obtaining unit 410 is specifically configured to obtain a selected image in an album of the electronic device as an image to be shared; configuring the selected image display position as a designated position. The image sharing operation unit 430 is specifically configured to select the image to be shared from the designated position in the image selection interface based on a simulated click manner.
It should be noted that the device embodiment and the method embodiment in the present application correspond to each other, and specific principles in the device embodiment may refer to the contents in the method embodiment, which is not described herein again.
An electronic device provided by the present application will be described below with reference to fig. 18.
Referring to fig. 18, based on the image sharing method and apparatus, another electronic device 200 capable of performing the image sharing method is further provided in the embodiment of the present application. The electronic device 200 includes one or more processors 102 (only one shown), memory 104, and network module 106 coupled to each other. The memory 104 stores programs that can execute the content of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104.
Processor 102 may include one or more cores for processing data, among other things. The processor 102 interfaces with various components throughout the electronic device 200 using various interfaces and circuitry to perform various functions of the electronic device 200 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104 and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 102 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 102, but may be implemented by a communication chip.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The network module 106 is configured to receive and transmit electromagnetic waves, and implement interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, for example, an audio playing device. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 106 may interact with a base station.
Referring to fig. 19, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 1100 has stored therein program code that can be called by a processor to perform the method described in the above-described method embodiments.
The computer-readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1100 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 1110 may be compressed, for example, in a suitable form.
According to the image sharing method, the image sharing device and the electronic equipment, after the selected image to be shared in the album of the electronic equipment is obtained, if the original image sharing operation of the image to be shared is detected, an application program corresponding to the original image sharing operation is triggered to start to display an image sharing configuration area; in the image sharing configuration area, triggering the application program to display an image selection interface including the images acquired in the album based on a simulated click mode, selecting the images to be shared and selecting an original image sharing effect in the image selection interface based on the simulated click mode, so that the application program can share the images to be shared in the sharing area corresponding to the image sharing configuration area after detecting an original image sharing control acting on the image selection interface. By means of the method, after the pictures can be directly selected in the photo album, the original picture sharing operation can be directly triggered, so that the original pictures can be directly shared in the photo album to the application program, and convenience in original picture sharing is greatly improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (13)
1. An image sharing method is applied to an electronic device, and comprises the following steps:
acquiring an image to be shared, wherein the image to be shared is a selected image in an album of the electronic equipment;
if the original image sharing operation on the image to be shared is detected, triggering an application program corresponding to the original image sharing operation to start so as to display an image sharing configuration area;
and in the image sharing configuration area, triggering the application program to select the image to be shared and select the original image sharing effect based on a click simulation mode, so that the application program can share the image to be shared in the sharing area.
2. The method according to claim 1, wherein the step of triggering the application program to select the image to be shared and to select the original image sharing effect based on a simulated click in the image sharing configuration area comprises:
triggering the application program to display an image selection interface, wherein the image displayed in the image selection interface is obtained from the album;
and selecting the image to be shared and selecting the original image sharing effect in the image selection interface based on a simulated click mode.
3. The method of claim 1, wherein the step of obtaining the image to be shared comprises:
acquiring a selected image in an album of the electronic equipment as an image to be shared;
configuring the selected image display position as a designated position;
the step of selecting the image to be shared in the image selection interface based on a simulated click mode comprises the following steps:
and selecting the image to be shared from the designated position in the image selection interface based on a simulated click mode.
4. The method of claim 3, wherein the designated location is a designated sort location in the album; the step of selecting the image to be shared from the designated position in the image selection interface based on a simulated click mode comprises the following steps:
and selecting the images at the appointed sorting positions as the images to be shared in the image selection interface based on a simulated click mode.
5. The method according to claim 1, wherein the step of triggering an application program corresponding to the original image sharing operation to start to display an image sharing configuration area if the original image sharing operation on the image to be shared is detected comprises:
displaying an original image sharing control of the album;
and if the touch operation acting on the original image sharing control is detected, triggering an application program corresponding to the original image sharing control to start so as to display an image sharing configuration area.
6. The method of claim 3, wherein there is at least one artwork sharing control, and each artwork sharing control is bound with a corresponding application program; the step of triggering an application program corresponding to the original image sharing control to start to display an image sharing configuration area if the touch operation acting on the original image sharing control is detected comprises the following steps:
and if the touch operation acting on the original image sharing control is detected, triggering an application program bound with the original image sharing control to start so as to display an image sharing configuration area.
7. The method according to claim 1, wherein the step of triggering an application program corresponding to the original image sharing operation to start to display an image sharing configuration area if the original image sharing operation on the image to be shared is detected comprises:
if the original image sharing operation on the image to be shared is detected, triggering an application program corresponding to the original image sharing operation to start so as to display a session list;
and after the target session is determined from the session list, displaying a session content interface of the target session as an image sharing configuration area.
8. The method according to claim 7, wherein the step of triggering the application program to display an image selection interface based on a simulated click in the image sharing configuration area comprises:
displaying a trigger control in a floating manner in a session content interface of the target session;
and if the touch operation of the trigger control is detected, triggering the application program to display an image selection interface in the image sharing configuration area based on a simulated click mode.
9. The method according to claim 7, wherein a preview image of the image to be shared is displayed in the touch control.
10. The method according to claim 1, wherein the step of triggering an application program corresponding to the original image sharing operation to start to display an image sharing configuration area if the original image sharing operation on the image to be shared is detected comprises:
and if the original image sharing operation on the image to be shared is detected, triggering an application program corresponding to the original image sharing operation to start so as to display a social information sending configuration interface, wherein the social information sending configuration interface is an image sharing configuration area.
11. An image sharing apparatus, operable on an electronic device, the apparatus comprising:
the image acquisition unit is used for acquiring an image to be shared, wherein the image to be shared is a selected image in an album of the electronic equipment;
the program starting unit is used for triggering an application program corresponding to the original image sharing operation to be started to display an image sharing configuration area if the original image sharing operation on the image to be shared is detected;
and the image sharing operation unit is used for triggering the application program to select the image to be shared and select the original image sharing effect in the image sharing configuration area, so that the application program can share the image to be shared in the sharing area.
12. An electronic device comprising a processor and a memory;
one or more programs are stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-10.
13. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910850079.XA CN110618975A (en) | 2019-09-10 | 2019-09-10 | Image sharing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910850079.XA CN110618975A (en) | 2019-09-10 | 2019-09-10 | Image sharing method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110618975A true CN110618975A (en) | 2019-12-27 |
Family
ID=68922721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910850079.XA Pending CN110618975A (en) | 2019-09-10 | 2019-09-10 | Image sharing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110618975A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113420172A (en) * | 2021-07-16 | 2021-09-21 | 北京达佳互联信息技术有限公司 | Picture sharing method and device, computer equipment and medium |
CN114157626A (en) * | 2021-11-22 | 2022-03-08 | 北京安云世纪科技有限公司 | Method, system, storage medium and computer equipment for transmitting photos by photographing |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984151A (en) * | 2012-11-26 | 2013-03-20 | 北京奇虎科技有限公司 | Method and server for providing picture data for computing terminal |
CN105897564A (en) * | 2016-05-31 | 2016-08-24 | 努比亚技术有限公司 | Photo sharing apparatus and method |
CN107908337A (en) * | 2017-12-14 | 2018-04-13 | 广州三星通信技术研究有限公司 | Share the method and apparatus of picture material |
US20190213711A1 (en) * | 2018-01-08 | 2019-07-11 | National Kaohsiung University Of Science And Technology | Color image authentication method based on palette compression technique |
-
2019
- 2019-09-10 CN CN201910850079.XA patent/CN110618975A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984151A (en) * | 2012-11-26 | 2013-03-20 | 北京奇虎科技有限公司 | Method and server for providing picture data for computing terminal |
CN105897564A (en) * | 2016-05-31 | 2016-08-24 | 努比亚技术有限公司 | Photo sharing apparatus and method |
CN107908337A (en) * | 2017-12-14 | 2018-04-13 | 广州三星通信技术研究有限公司 | Share the method and apparatus of picture material |
US20190213711A1 (en) * | 2018-01-08 | 2019-07-11 | National Kaohsiung University Of Science And Technology | Color image authentication method based on palette compression technique |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113420172A (en) * | 2021-07-16 | 2021-09-21 | 北京达佳互联信息技术有限公司 | Picture sharing method and device, computer equipment and medium |
CN114157626A (en) * | 2021-11-22 | 2022-03-08 | 北京安云世纪科技有限公司 | Method, system, storage medium and computer equipment for transmitting photos by photographing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110703966B (en) | File sharing method, device and system, corresponding equipment and storage medium | |
CN111858522B (en) | File sharing method, device, terminal and storage medium | |
WO2020147665A1 (en) | File processing method and device, terminal, and storage medium | |
CN108496150B (en) | Screen capture and reading method and terminal | |
KR101821750B1 (en) | Picture processing method and device | |
US10942616B2 (en) | Multimedia resource management method and apparatus, and storage medium | |
US10327015B2 (en) | Picture combining method, terminal, and picture combining system | |
WO2022001341A1 (en) | Application program tag generation method, application interface display method and device | |
US20220417417A1 (en) | Content Operation Method and Device, Terminal, and Storage Medium | |
CN111127595B (en) | Image processing method and electronic equipment | |
WO2019233307A1 (en) | User interface display method and apparatus, and terminal and storage medium | |
CN111612873A (en) | GIF picture generation method and device and electronic equipment | |
CN113300938A (en) | Message sending method and device and electronic equipment | |
CN104615421A (en) | Virtual gift display method and device | |
CN110875871A (en) | Management method of instant messaging application and electronic equipment | |
CN111367457A (en) | Content sharing method and device and electronic equipment | |
CN110618975A (en) | Image sharing method and device and electronic equipment | |
CN110928397B (en) | User interface refreshing method and device, storage medium and electronic device | |
US20110086648A1 (en) | Apparatus and method for transmitting and receiving message in mobile communication terminal with touch screen | |
CN111324398B (en) | Method, device, terminal and storage medium for processing latest content | |
CN114691277A (en) | Application program processing method, intelligent terminal and storage medium | |
CN110533742B (en) | Image color filling method, device, equipment and storage medium | |
CN105204718B (en) | Information processing method and electronic equipment | |
CN110888701B (en) | Method, electronic device and medium for remotely configuring software resources | |
CN107145286B (en) | Browsing interaction processing method and device |
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 |