WO2019196831A1 - 复制粘贴的方法和移动终端 - Google Patents

复制粘贴的方法和移动终端 Download PDF

Info

Publication number
WO2019196831A1
WO2019196831A1 PCT/CN2019/081899 CN2019081899W WO2019196831A1 WO 2019196831 A1 WO2019196831 A1 WO 2019196831A1 CN 2019081899 W CN2019081899 W CN 2019081899W WO 2019196831 A1 WO2019196831 A1 WO 2019196831A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
text
target
paste
interface
Prior art date
Application number
PCT/CN2019/081899
Other languages
English (en)
French (fr)
Inventor
刘少玲
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2019196831A1 publication Critical patent/WO2019196831A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present disclosure relates to the field of terminals, and in particular, to a method for copying and pasting and a mobile terminal.
  • Text input is an important auxiliary function and is widely used in mobile terminals.
  • the mobile terminal supports the copy and paste function of text.
  • the implementation of copy and paste is to copy and paste first, that is, the user copies the text in the copy operation interface, then switches to the paste operation interface, and pastes the text on the paste operation interface.
  • the embodiment of the present disclosure provides a method for copying and pasting, which solves the problem that the steps of copying and pasting operations are cumbersome and the user experience is poor, after the user enters the paste operation interface and enters the copy operation interface.
  • a method for copying and pasting comprising:
  • the first mode of the user input is detected on the paste operation interface, and the copy mode is triggered;
  • Pasting the to-be-paste text into a paste area on the paste operation interface
  • a mobile terminal in a second aspect, includes:
  • a triggering unit configured to detect a first operation input by the user on the paste operation interface, triggering a copy mode
  • a text obtaining unit configured to acquire text to be pasted copied by the user in the copy mode
  • a text pasting unit configured to paste the to-be-paste text into a pasting area on the paste operation interface.
  • a mobile terminal comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor.
  • a computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the method of copy and paste as described in the first aspect.
  • the copy mode when the first operation input by the user is detected on the paste operation interface, the copy mode is triggered, and after the text to be pasted copied by the user in the copy mode is acquired, the text to be pasted is pasted into the paste.
  • the pasting area of the operation interface reduces the number of times that the user presses the paste operation interface and then enters the copy operation interface to perform the long press operation, reduces the complexity of the copy and paste operation, and improves the user experience.
  • FIG. 1 is a schematic flow chart of a method of copy and paste according to an embodiment of the present disclosure.
  • FIG. 2 is a schematic diagram of a method of copy-and-paste according to an embodiment of the present disclosure.
  • FIG. 3 is a schematic diagram of a method of copy-and-paste according to another embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of a method of copy-and-paste according to still another embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of a method of copy and paste according to still another embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a method of copy-and-paste according to still another embodiment of the present disclosure.
  • FIG. 7 is a schematic flow chart of a method of copy and paste according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic flow chart of a method of copy and paste according to another embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a mobile terminal according to another embodiment of the present disclosure.
  • FIG. 1 is a schematic flow chart of a method of copy and paste according to an embodiment of the present disclosure.
  • the method shown in FIG. 1 can be performed by a mobile terminal, and the method shown in FIG. 1 includes:
  • the first operation input by the user on the paste operation interface is a long press operation on the paste area.
  • the pasting area here can be, for example, an input box.
  • the first operation input by the user on the paste operation interface is a click operation of the menu of “Enter Copy Mode” popped up by the mobile terminal, where the menu of “Enter Copy Mode” may be that the mobile terminal responds to the user on the paste operation interface.
  • the mobile terminal displays a prompt message on the status bar to prompt the user that the copy mode has been triggered. For example, you can display "Currently copy mode, please select the text to copy” on the status bar. Further, the color of the status bar can be changed and the prompt information displayed at the same time.
  • the pasting area for pasting the text to be pasted onto the paste operation interface in S130 is automatically completed by the mobile terminal.
  • S120 specifically includes: detecting a second operation of the user input in the copy mode, detecting the second operation input by the user in the copy mode, and switching the current interface from the paste operation interface to the copy Operation interface; when the third operation interface input by the user is detected on the copy operation interface, the text to be pasted is copied.
  • the method shown in FIG. 1 further includes: switching the current interface by the copy operation interface. Go to the paste operation interface. Since the switching of the copy operation interface to the paste operation interface can be automatically performed, the user does not need to manually switch the interface, thereby further reducing the complexity of the copy and paste operation and improving the user experience.
  • the paste operation interface and the copy operation interface may be different interfaces in the same application (Application, APP), or may be interfaces in different APPs.
  • the paste operation interface is an interface of the first application
  • the copy operation interface is an interface of the second application.
  • the mobile terminal pops up the “Enter Copy Mode” menu, and when detecting the operation of the user clicking the menu, the mobile terminal triggers the copy mode and is in the state. The user is prompted to "currently copy mode, please select the text to be copied".
  • the mobile terminal detects the second operation input by the user (the second operation is used to trigger the switching of the currently running application from the first application to the first application) Second application), the currently running application is switched from the first application to the second application, and if the third operation input by the user is detected on the interface of the second application (for example, long-pressing the operation of the text to be pasted), then copying After the text is pasted, the mobile terminal automatically switches the currently running application from the second application back to the first application, and automatically pastes the text to be pasted into the input box.
  • the second operation is used to trigger the switching of the currently running application from the first application to the first application
  • Second application Second application
  • the currently running application is switched from the first application to the second application
  • the third operation input by the user for example, long-pressing the operation of the text to be pasted
  • the mobile terminal may record the name of the first application when the user enters the first application, so as to automatically switch the currently running application back from the second application after the user copies the text to be pasted.
  • the first application The mobile terminal records the name of the input box when the user presses the input box on the interface of the first application, so that the text to be pasted can be automatically pasted into the input box.
  • the second operation input by the user may be an operation of the user clicking an icon of the second application displayed on the desktop or an operation of the user selecting the second application from the recently run application.
  • the paste operation interface is an interface of the first application
  • the copy operation interface is an interface of the second application
  • the method shown in FIG. 1 further includes: retrieving the presence and the presence of the installed application in the copy mode
  • the target application that matches the target label displays an icon of the target application on the paste operation interface, and the target label is a label of the pasted area.
  • the second operation of detecting the user input in the copy mode comprises: detecting the fourth operation input by the user on the paste operation interface in the copy mode, detecting the second operation input by the user, fourth The operation is used to trigger an instruction to cancel the selection of the application from the target application, and the second operation is used to trigger an instruction to switch the currently running application from the first application to the second application; or, in the copy mode, the paste operation interface detects The second operation input by the user is used to trigger an instruction to select the second application from the target application and switch the currently running application from the first application to the second application.
  • the mobile terminal may retrieve a target application that matches the label of the pasted area from the installed application, and if the target application is retrieved, display the target application on the pasting operation interface. Icon, if the displayed target application does not include an application to be pasted text, the user inputs a fourth operation for triggering cancellation of an instruction to select an application from the target application, after which the user re-enters the application for triggering the currently running application by the first When the second operation of the instruction of the second application is applied, the mobile terminal switches the currently running application from the first application to the second application when the second operation is detected, so that the user can copy the text to be pasted.
  • the second operation input by the user is used to trigger an instruction to select the second application from the target application and switch the currently running application from the first application to the second application,
  • the mobile terminal switches the currently running application from the first application to the second application, so that the user can copy the text to be pasted.
  • the mobile terminal cannot The user recommends the target application.
  • the user can switch the currently running application from the first application to the second application by clicking the operation of the icon of the second application displayed on the desktop or selecting the operation of the second application from the recently run application.
  • the paste operation interface is an interface of the first application.
  • the mobile terminal pops up “Enter Copy Mode”.
  • the menu when detecting the operation of the user clicking the menu, the mobile terminal triggers the copy mode, and prompts the user on the status bar that "currently is the copy mode, please select the text to be copied", at this time, if the mobile terminal detects the installed application There is a target application matching the target tag ("telephone" in Fig. 3), and the icon of the target application (the phone icon and the address book icon shown in Fig.
  • the fourth operation is further configured to trigger an instruction to cancel the selection of the text from the target text, the target text is matched with the target label
  • the method illustrated in FIG. 1 further includes: retrieving the target in the copy mode Text, the target text is displayed on the paste operation interface.
  • the mobile terminal can retrieve the target application that matches the label of the pasted area from the installed application and retrieve the target text that matches the label of the pasted area, if the target application and the target application are retrieved
  • the target text displays the target application and target text on the paste operation interface.
  • the user input is used to trigger the cancellation of the instruction to select the application from the target application and trigger to cancel the selection of the text from the target text.
  • a fourth operation of the instruction after which the user re-enters a second operation for triggering an instruction to switch the currently running application from the first application to the second application, and the mobile terminal, when detecting the second operation, will execute the currently running application Switching from the first application to the second application for the user to copy the text to be pasted. Therefore, the method in the embodiment of the present invention can intelligently infer the text that the user needs to copy or the application that needs to be entered, reduce the process of the user manually searching for the application, further reduce the complexity of the copy and paste operation, and improve the convenience.
  • the paste operation interface is an interface of the first application.
  • the mobile terminal pops up “Enter Copy Mode”.
  • the menu when detecting the operation of the user clicking the menu, the mobile terminal triggers the copy mode, and prompts the user on the status bar that "currently is the copy mode, please select the text to be copied", at this time, if the mobile terminal detects the installed application There is a target application matching the target tag ("telephone" in FIG. 4), and the target text matching the target tag is retrieved, and the icon of the target application is displayed on the paste operation interface (shown in FIG.
  • the paste operation interface is an interface of the first application
  • the copy operation interface is an interface of the second application
  • the method shown in FIG. 1 further includes: retrieving the target tag in the copy mode to match The target text is displayed on the paste operation interface, and the target label is a label of the pasted area.
  • the second operation of detecting the user input in the copy mode comprises: detecting the second operation input by the user on the paste operation interface in the copy mode, detecting the second operation input by the user, The five operations are used to trigger an instruction to cancel the selection of text from the target text.
  • the mobile terminal when detecting that the pasted area has a label, can retrieve the target text that matches the label of the pasted area, and if the target text is retrieved, the target text is displayed on the paste operation interface, if the target text is displayed.
  • the user does not include the text to be pasted, and the user inputs a fifth operation for triggering the instruction to cancel the selection of the text from the target text, after which the user inputs an instruction for triggering the switching of the currently running application from the first application to the second application.
  • a second operation when detecting the second operation, the mobile terminal switches the currently running application from the first application to the second application, so that the user can copy the text to be pasted.
  • the mobile terminal detects that the pasted area has no label, or the mobile terminal detects that the pasted area has a label but does not retrieve the target text that matches the target label, the mobile terminal will not be able to recommend the target text to the user.
  • the user can switch the currently running application from the first application to the second application by clicking the operation of the icon of the second application displayed on the desktop or selecting the operation of the second application from the recently run application.
  • the paste operation interface is an interface of the first application.
  • the mobile terminal pops up “Enter Copy Mode”.
  • Menu when detecting the operation of the user clicking the menu, the mobile terminal triggers the copy mode, and prompts the user in the status bar that "currently is the copy mode, please select the text to be copied", at this time, if the mobile terminal detects the target tag ("Phone” in Figure 5) matches the target text, then the target text is displayed on the paste operation interface ("13589670000" and "15183360000” in Figure 5), when the user clicks the "Cancel” button and manually places the current
  • the running interface is switched from the interface of the first application to the interface of the second application, the mobile terminal switches the currently running application from the first application to the second application, and the text to be pasted on the interface of the user copying the second application (figure After "13589670001" in 5), the mobile terminal automatically switches the
  • the method shown in FIG. 1 further includes: when the target text matching the target label is retrieved in the copy mode, the target text is displayed on the paste operation interface, and the target label is the pasted area. label.
  • acquiring the text to be pasted copied by the user in the copy mode includes: in the copy mode, the sixth operation of detecting the user input on the paste operation interface, copying the text to be pasted, and the sixth operation is used to trigger the target The instruction to select and copy the text to be pasted in the text.
  • the mobile terminal when detecting that the pasted area has a label, can retrieve the target text that matches the label of the pasted area, and if the target text is retrieved, the target text is displayed on the paste operation interface, if the target text is displayed.
  • the sixth operation including the text to be pasted, the user inputting an instruction for triggering selection and copying the text to be pasted from the target text, and the mobile terminal copying the text to be pasted when the sixth operation is detected.
  • the mobile terminal detects that the pasted area has no label, or the mobile terminal detects that the pasted area has a label but does not retrieve the target text that matches the target label, the mobile terminal will not be able to recommend the target text to the user.
  • the user can switch the currently running application from the first application to the second application by clicking the operation of the icon of the second application displayed on the desktop or selecting the operation of the second application from the recently run application.
  • the paste operation interface is an interface of the first application.
  • the mobile terminal pops up “Enter Copy Mode”.
  • Menu when detecting the operation of the user clicking the menu, the mobile terminal triggers the copy mode, and prompts the user in the status bar that "currently is the copy mode, please select the text to be copied", at this time, if the mobile terminal detects the target tag ("Phone" in Fig. 6) matches the target text, then the target text is displayed on the paste operation interface ("13589670000" and "15183360000” in Fig. 6) when the user clicks on the text to be pasted in the target text (Fig. In the "13589670000” of 6), the mobile terminal copies the text to be pasted, and then the mobile terminal automatically fills in the input box with the text to be pasted.
  • the paste operation interface is displayed in a fuzzy manner. (Or understood as blurring the first application).
  • the mobile terminal when detecting whether the pasted area has a label, can determine whether the input box carries a label by parsing the layout parameter of the input box space. For example, for the input box space in Android is Edit Text, if its parent control is a Linear Layout, the previous Text View child of the input box space is the label of the input box; if its parent control is RelativeLayout (RelativeLayout), according to the relative layout parameters can get the TextView control on the left side of the input box, the TextView control is the label of the input box.
  • the layout parameter of the input box space For example, for the input box space in Android is Edit Text, if its parent control is a Linear Layout, the previous Text View child of the input box space is the label of the input box; if its parent control is RelativeLayout (RelativeLayout), according to the relative layout parameters can get the TextView control on the left side of the input box, the TextView control is the label of the input box.
  • RelativeLayout
  • the method shown in FIG. 1 further includes: detecting that an application belonging to the preset application list exists in the installed application, determining that the target application exists, and An application belonging to the preset application list is determined to be the target application; or, if it is detected that the installed application includes an application whose name includes a part or all of the characters included in the target label, the presence of the presence is determined. Determining the target application, and determining, as the target application, an application in which the character included in the application name is identical to the part or all of the characters included in the target tag.
  • the mobile terminal when the mobile terminal searches for the target application that matches the target tag, it can pre-configure a configuration file that records the tag and the list of applications that the tag matches.
  • the format of the configuration file is: Phone: Phone / Contact / Address Book; Mobile: Phone / Contact / Address Book; Mail: Mail / Email / Contact / Address Book; Bank Card Number: China Merchants Bank / Bank of China / Construction Bank.
  • the phone, mobile, mail and bank card numbers here are labels.
  • the mobile terminal can read the preset application list (or the application list) that matches the target label from the configuration file, and if the mobile terminal has an icon belonging to the application in the preset application list on the desktop of the mobile terminal, the application is applied to the target.
  • the tags match.
  • an application's application name is exactly the same as the label part, then the application to the target label is considered to match. For example, assuming the target tag is "telephone”, the “telephone” application on the desktop matches the target tag. Assuming the target tag is "Express Delivery Number”, the "Shunfeng Express” on the desktop is applied to the target tag to match.
  • the method shown in FIG. 1 further includes: extracting all the texts in the recently run application; and retrieving the text in the text that meets the target text format in all the texts,
  • the text in which the text format satisfies the target text format is determined as the target text, and the target text format is a text format corresponding to the target tag.
  • the mobile terminal may pre-configure a configuration file that records a text format corresponding to the label, and if the extracted text has text that satisfies a text format corresponding to the target label (eg, a regular expression), the text Matches the target tag.
  • a text format corresponding to the target label e.g, a regular expression
  • the format of the configuration file is:
  • extracting all the texts in the recently run application includes: generating an image corresponding to the interface of the recently run application, and determining the text recognized from the image as the all texts Or acquiring a text control included in an interface of the recently run application and determining text extracted from the text control as the entire text. For example, take a screenshot of all interfaces in a recently run application, generate a temporary image, use image recognition technology, identify and extract the text in the screenshot, and then delete the generated image.
  • FIG. 7 is a schematic flow chart of a method of copy and paste according to an embodiment of the present disclosure. As shown in FIG. 7, the method shown in FIG. 7 includes:
  • the mobile terminal when the user directly presses the text, the mobile terminal does not pop up the menu, and the purpose of the long-press operation of the default user is to perform text copying.
  • FIG. 8 is a schematic flow chart of a method of copy and paste according to another embodiment of the present disclosure. As shown in FIG. 8, the method shown in FIG. 8 includes:
  • the text list is displayed, asking the user whether the text needs to be copied from the text list; if the application matching the label of the target input box is retrieved, the application icon list is displayed. Ask the user if they need to enter the app copy text in the app icon list.
  • the mobile terminal displays the first application in a fuzzy manner.
  • the mobile terminal detects whether the target input box has a label implementation manner, the mobile terminal searches for a text matching the label of the target input box, and the mobile terminal searches and targets.
  • the implementation of the application in which the labels of the input boxes are matched is the same as the corresponding implementation in the method shown in FIG. 1. To avoid repetition, details are not described herein again.
  • the mobile terminal 90 shown in FIG. 9 includes:
  • the triggering unit 91 is configured to detect a first operation input by the user on the paste operation interface, and trigger a copy mode
  • a text obtaining unit 92 configured to acquire text to be pasted copied by the user in the copy mode
  • the text pasting unit 93 is configured to paste the to-be-paste text into the pasting area on the paste operation interface in the copy mode.
  • the text obtaining unit 92 includes:
  • a detecting subunit configured to detect a second operation of the user input in the copy mode
  • An interface switching subunit configured to switch the current interface from the paste operation interface to the copy operation interface by detecting, by the detecting subunit, the second operation input by the user in the copy mode;
  • a text copying subunit configured to copy the text to be pasted when the third operation of the user input is detected on the copy operation interface.
  • the interface switching sub-unit further Used for:
  • the paste operation interface is an interface of the first application
  • the copy operation interface is an interface of the second application
  • the mobile terminal 90 further includes:
  • a first display unit configured to display, in the copy mode, that the target application that matches the target label exists in the installed application, and then display an icon of the target application on the paste operation interface, where the target label is a label of the pasting area;
  • the detecting subunit is specifically configured to:
  • the fourth operation of the user input is detected on the paste operation interface, and the second operation input by the user is detected, and the fourth operation is used to trigger cancellation of the target application.
  • Selecting an instruction of the application, the second operation is for triggering an instruction to switch the currently running application from the first application to the second application; or
  • the second operation is for triggering selection of the second application from the target application and the currently running application is The first application switches to an instruction of the second application.
  • the fourth operation is further configured to trigger an instruction to cancel the selection of text from the target text, the target text is matched with the target label, and the first display unit is further configured to:
  • the target text is displayed on the paste operation interface.
  • the first display unit is further configured to:
  • the application that belongs to the preset application list exists in the installed application, it is determined that the target application exists, and the application that belongs to the preset application list is determined to be the target application;
  • the installed application has an application whose name includes a part or all of the characters included in the target label, determining that the target application exists, and including the character included in the application name and the target The application in which the tags include characters or all of the same is determined to be the target application.
  • the paste operation interface is an interface of the first application
  • the copy operation interface is an interface of the second application
  • the mobile terminal 90 further includes:
  • a second display unit configured to: in the copy mode, retrieve the target text that matches the target label, and then display the target text on the paste operation interface, where the target label is a label of the pasted area;
  • the detecting subunit is specifically configured to:
  • the fifth operation of the user input is detected on the paste operation interface, and the second operation input by the user is detected, and the fifth operation is used to trigger cancellation from the text.
  • the mobile terminal 90 further includes:
  • a third display unit configured to: in the copy mode, retrieve the target text that matches the target label, and then display the target text on the paste operation interface, where the target label is a label of the pasted area;
  • the text obtaining unit is specifically configured to:
  • the sixth operation of the user input is detected on the paste operation interface, and the text to be pasted is copied, and the sixth operation is used to trigger selection and copying from the target text.
  • the instruction to paste the text is used to trigger selection and copying from the target text.
  • the mobile terminal further includes:
  • a text extraction unit for extracting all text in a recently run application
  • a text retrieval unit configured to retrieve text in the text format that satisfies a target text format, and determine, in the text format, the text that satisfies the target text format as the target text, where the target text format is The text format corresponding to the target tag.
  • the text extraction unit is specifically configured to:
  • a mobile terminal may refer to a flow of a method corresponding to an embodiment of the present disclosure, and each unit/module in the mobile terminal and the other operations and/or functions described above are respectively implemented in the method shown in FIG. The corresponding process, for the sake of brevity, will not be described here.
  • FIG. 10 is a schematic structural diagram of hardware of a mobile terminal that implements an embodiment of the present disclosure.
  • the mobile terminal 1000 includes, but is not limited to, a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, and a memory 1009. , processor 1010, and power supply 1011 and other components.
  • a radio frequency unit 1001 a radio frequency unit 1001
  • a network module 1002 an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, and a memory 1009.
  • processor 1010 and power supply 1011 and other components.
  • the mobile terminal structure shown in FIG. 10 does not constitute a limitation of the mobile terminal, and the mobile terminal may include more or less components than those illustrated, or combine some components, or different components. Arrangement.
  • the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle terminal, a wearable device, a pedometer, and the like.
  • the processor 1010 is configured to: if the first operation input by the user is detected on the paste operation interface, trigger a copy mode; acquire the text to be pasted copied by the user in the copy mode; in the copy mode And automatically pasting the to-be-paste text into a paste area on the paste operation interface.
  • the mobile terminal of the embodiment of the present disclosure triggers the copy mode by detecting the first operation input by the user on the paste operation interface, and automatically pastes the text to be pasted after the text to be pasted copied by the user in the copy mode is acquired.
  • To the pasting area of the paste operation interface reduce the number of times that the user presses the paste operation interface and then enters the copy operation interface to perform the long press operation, reduces the complexity of the copy and paste operation, and improves the user experience. .
  • the radio frequency unit 1001 can be used for receiving and transmitting signals during and after receiving or transmitting information or a call, and specifically, after receiving downlink data from the base station, processing the processor 1010; The uplink data is sent to the base station.
  • radio frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio unit 1001 can also communicate with the network and other devices through a wireless communication system.
  • the mobile terminal provides wireless broadband Internet access to the user through the network module 1002, such as helping the user to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 1003 can convert the audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as a sound. Moreover, the audio output unit 1003 may also provide audio output (eg, call signal reception sound, message reception sound, etc.) related to a specific function performed by the mobile terminal 1000.
  • the audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 1004 is for receiving an audio or video signal.
  • the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 images an still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode.
  • the data is processed.
  • the processed image frame can be displayed on the display unit 1006.
  • the image frames processed by the graphics processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002.
  • the microphone 10042 can receive sound and can process such sound as audio data.
  • the processed audio data can be converted to a format output that can be transmitted to the mobile communication base station via the radio unit 1001 in the case of a telephone call mode.
  • the mobile terminal 1000 also includes at least one type of sensor 1005, such as a light sensor, motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 10061 according to the brightness of the ambient light, and the proximity sensor can close the display panel 10061 when the mobile terminal 1000 moves to the ear. / or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the attitude of the mobile terminal (such as horizontal and vertical screen switching, related games).
  • sensor 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensor or the like, wherein the infrared sensor can measure the distance between the object and the mobile terminal by transmitting and receiving infrared light, and details are not described herein again.
  • the display unit 1006 is for displaying information input by the user or information provided to the user.
  • the display unit 1006 can include a display panel 10061.
  • the display panel 10061 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the user input unit 1007 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal.
  • the user input unit 1007 includes a touch panel 10071 and other input devices 10072.
  • the touch panel 10071 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 10071 or near the touch panel 10071. operating).
  • the touch panel 10071 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1010 receives the commands from the processor 1010 and executes them.
  • the touch panel 10071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the user input unit 1007 may also include other input devices 10072.
  • the other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which are not described herein.
  • the touch panel 10071 can be overlaid on the display panel 10061. After the touch panel 10071 detects a touch operation thereon or nearby, the touch panel 10071 transmits to the processor 1010 to determine the type of the touch event, and then the processor 1010 according to the touch. The type of event provides a corresponding visual output on display panel 10061.
  • the touch panel 10071 and the display panel 10061 are used as two independent components to implement the input and output functions of the mobile terminal in FIG. 10, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated. The input and output functions of the mobile terminal are implemented, and are not limited herein.
  • the interface unit 1008 is an interface in which an external device is connected to the mobile terminal 1000.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
  • the interface unit 1008 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 1000 or can be used at the mobile terminal 1000 and externally Data is transferred between devices.
  • an external device eg, data information, power, etc.
  • the memory 1009 can be used to store software programs as well as various data.
  • the memory 1009 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • the memory 1009 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the processor 1010 is a control center of the mobile terminal that connects various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1009, and recalling data stored in the memory 1009.
  • the mobile terminal performs various functions and processing data to perform overall monitoring on the mobile terminal.
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and a modulation solution
  • the processor mainly handles wireless communication. It will be appreciated that the above described modem processor may also not be integrated into the processor 1010.
  • the mobile terminal 1000 may further include a power source 1011 (such as a battery) for supplying power to various components.
  • a power source 1011 such as a battery
  • the power source 1011 may be logically connected to the processor 1010 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the mobile terminal 1000 includes some functional modules not shown, and details are not described herein again.
  • an embodiment of the present disclosure further provides a mobile terminal, including a processor 1010, a memory 1009, a computer program stored on the memory 1009 and executable on the processor 1010, and the computer program is executed by the processor 1010.
  • a mobile terminal including a processor 1010, a memory 1009, a computer program stored on the memory 1009 and executable on the processor 1010, and the computer program is executed by the processor 1010.
  • the embodiment of the present disclosure further provides a computer readable storage medium, where the computer program is stored on a computer program, and when the computer program is executed by the processor, the processes of the method shown in FIG. 1 are implemented, and the same can be achieved. Technical effects, to avoid repetition, will not be repeated here.
  • the computer readable storage medium such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • embodiments of the present disclosure can be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or a combination of software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本文公开了一种复制粘贴的方法和移动终端,该方法包括:在粘贴操作界面上检测到用户输入的第一操作,则触发复制模式;获取所述用户在所述复制模式下复制的待粘贴文本;在所述复制模式下,将所述待粘贴文本粘贴到所述粘贴操作界面上的粘贴区域。

Description

复制粘贴的方法和移动终端
相关申请的交叉引用
本申请主张在2018年4月12日在中国提交的中国专利申请号No.201810327138.0的优先权,其全部内容通过引用包含于此。
技术领域
本公开涉及终端领域,尤其涉及一种复制粘贴的方法和移动终端。
背景技术
文字输入作为一项重要的辅助功能,在移动终端中得到广泛的运用。为了提高文字输入的效率,移动终端会支持文字的复制粘贴功能。通常复制粘贴的实现方式是先复制后粘贴,即用户在复制操作界面复制文本,之后切换到粘贴操作界面,在粘贴操作界面上进行文本粘贴。
但有时候用户会遇到先进入粘贴操作界面后进入到复制操作界面的场景,在这种场景下,用户需要先退出粘贴操作界面并进入复制操作界面,在复制操作界面上长按文本实现文本的复制,之后退出复制操作界面并再次进入粘贴操作界面,在粘贴操作界面上长按输入框,将复制的文本粘贴到输入框中。也就是说,在这种场景下,用户需要执行多次切换界面以及多次长按操作,导致复制粘贴操作的步骤繁琐,用户体验差。
发明内容
本公开实施例提供一种复制粘贴的方法,以解决在用户先进入粘贴操作界面后进入到复制操作界面的场景中,复制粘贴操作的步骤繁琐,用户体验差的问题。
第一方面,提供了一种复制粘贴的方法,该方法包括:
在粘贴操作界面上检测到用户输入的第一操作,则触发复制模式;
获取所述用户在所述复制模式下复制的待粘贴文本;
将所述待粘贴文本粘贴到所述粘贴操作界面上的粘贴区域。
第二方面,提供了一种移动终端,该移动终端包括:
触发单元,用于在粘贴操作界面上检测到用户输入的第一操作,则触发复制模式;
文本获取单元,用于获取所述用户在所述复制模式下复制的待粘贴文本;
文本粘贴单元,用于将所述待粘贴文本粘贴到所述粘贴操作界面上的粘贴区域。
第三方面,提供了一种移动终端,该移动终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的复制粘贴的方法的步骤。
第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的复制粘贴的方法的步骤。
在本公开实施例中,通过在粘贴操作界面上检测到用户输入的第一操作时,触发复制模式,并在获取到用户在复制模式下复制的待粘贴文本后,将待粘贴文本粘贴到粘贴操作界面的粘贴区域,减少在用户在进行文本复制粘贴时,先进入粘贴操作界面后进入到复制操作界面的场景中执行长按操作的次数,降低复制粘贴操作的复杂度,提高用户体验。
附图说明
此处所说明的附图用来提供对本公开的进一步理解,构成本公开的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:
图1是根据本公开的一个实施例的复制粘贴的方法的示意性流程图。
图2是根据本公开的一个实施例的复制粘贴的方法的示意图。
图3是根据本公开的另一个实施例的复制粘贴的方法的示意图。
图4是根据本公开的再一个实施例的复制粘贴的方法的示意图。
图5是根据本公开的再一个实施例的复制粘贴的方法的示意图。
图6是根据本公开的再一个实施例的复制粘贴的方法的示意图。
图7是根据本公开的一个具体实施例的复制粘贴的方法的示意性流程图。
图8是根据本公开的另一个具体实施例的复制粘贴的方法的示意性流程图。
图9是根据本公开一个实施例的移动终端的结构示意图。
图10是根据本公开另一个实施例的移动终端的结构示意图。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
图1是根据本公开一个实施例的复制粘贴的方法的示意性流程图。图1所示的方法可以由移动终端执行,图1所示的方法包括:
S110,在粘贴操作界面上检测到用户输入的第一操作,则触发复制模式。
可选地,在一些实施例中,用户在粘贴操作界面上输入的第一操作为对粘贴区域的长按操作。这里的粘贴区域例如可以是一个输入框。或者用户在粘贴操作界面上输入的第一操作为对移动终端弹出的“进入复制模式”的菜单的点击操作,这里“进入复制模式”的菜单可以是移动终端在响应用户对粘贴操作界面上的粘贴区域的长按操作时弹出的菜单。
进一步地,在一些实施例中,移动终端在触发复制模式之后,在状态栏上显示提示信息,提示用户已经触发复制模式。例如可以在状态栏上显示“当前是复制模式,请选择要复制的文本”。更进一步的,可以改变状态栏的颜色,并同时显示提示信息。
S120,获取所述用户在所述复制模式下复制的待粘贴文本。
S130,在所述复制模式下,将所述待粘贴文本粘贴到所述粘贴操作界面上的粘贴区域。
可以理解的是,在S130中将待粘贴文本粘贴到粘贴操作界面上的粘贴区域是由移动终端自动完成的。
可选地,在一些实施例中,S120具体包括:在复制模式下检测用户输入的第二操作,检测到用户在复制模式下输入的第二操作,则将当前界面由粘 贴操作界面切换到复制操作界面;在复制操作界面检测到用户输入的第三操作界面,则复制待粘贴文本。
进一步地,在一些实施例中,在复制待粘贴文本之后,且在将待粘贴文本粘贴到粘贴操作界面上的粘贴区域之前,图1所示的方法还包括:将当前界面由复制操作界面切换到粘贴操作界面。由于可以自动实现复制操作界面到粘贴操作界面的切换,因此不需要用户手动进行界面的切换,进一步降低复制粘贴操作的复杂度,提高用户体验。
需要说明的是,在本申请实施例中,粘贴操作界面和复制操作界面可以是同一个应用(Application,APP)中的不同界面,也可以是不同APP中的界面。
举例来说,如图2所示出的,粘贴操作界面为第一应用的界面,复制操作界面为第二应用的界面。当用户进入第一应用并长按第一应用的界面上的输入框时,移动终端弹出“进入复制模式”菜单,在检测到用户点击该菜单的操作时,移动终端触发复制模式,并在状态栏上提示用户“当前是复制模式,请选择需要复制的文本”,此时如果移动终端检测到用户输入的第二操作(第二操作用于触发将当前运行的应用由第一应用切换为第二应用),则将当前运行的应用由第一应用切换为第二应用,若在第二应用的界面上检测到用户输入的第三操作(例如,长按待粘贴文本的操作),则复制待粘贴文本,之后移动终端自动将当前运行的应用由第二应用切换回第一应用,并自动将待粘贴文本粘贴到输入框中。
可选地,在图2所示的例子中,移动终端可以在用户进入第一应用时记录第一应用的名称,以便在用户复制待粘贴文本后自动将当前运行的应用由第二应用切换回第一应用。移动终端在用户在第一应用的界面上长按输入框时记录输入框的名称,以便能够自动将待粘贴文本粘贴到输入框中。在图2所示的例子中,用户输入的第二操作可以是用户点击桌面上显示的第二应用的图标的操作或者用户从近期运行的应用中选择第二应用的操作。
具体地,在一些实施例中,粘贴操作界面为第一应用的界面,复制操作界面为第二应用的界面,图1所示的方法还包括:在复制模式下检索到安装的应用中存在与目标标签相匹配的目标应用,则在粘贴操作界面上显示目标 应用的图标,所述目标标签为所述粘贴区域的标签。相对应的,在S120,在复制模式下检测用户输入的第二操作包括:在复制模式下所述粘贴操作界面上检测到用户输入的第四操作,则检测用户输入的第二操作,第四操作用于触发取消从目标应用中选择应用的指令,第二操作用于触发将当前运行的应用由第一应用切换为第二应用的指令;或,在复制模式下所述粘贴操作界面上检测用户输入的第二操作,第二操作用于触发从目标应用中选择第二应用并将当前运行的应用由第一应用切换为第二应用的指令。
也就是说,移动终端在检测到粘贴区域带有标签时,可以从安装的应用中检索与粘贴区域的标签相匹配的目标应用,如果检索到目标应用,则在粘贴操作界面上显示目标应用的图标,如果显示的目标应用中没有包括待粘贴文本的应用,用户输入用于触发取消从目标应用中选择应用的指令的第四操作,之后用户再输入用于触发将当前运行的应用由第一应用切换为第二应用的指令的第二操作,移动终端在检测到第二操作时,将当前运行的应用由第一应用切换到第二应用,供用户实现待粘贴文本的复制。或者如果显示的目标应用中有包括待粘贴文本的应用,用户输入的第二操作用于触发从目标应用中选择第二应用并将当前运行的应用由第一应用切换为第二应用的指令,移动终端在检测到第二操作时,将当前运行的应用由第一应用切换为第二应用,供用户实现待粘贴文本的复制。
可以理解的是,如果移动终端检测到粘贴区域不带标签,或者移动终端检测到粘贴区域带有标签,但是从安装的应用中没有检索到与目标标签匹配的目标应用,则移动终端将无法向用户推荐目标应用。此时用户可以通过点击桌面上显示的第二应用的图标的操作或者从近期运行的应用中选择第二应用的操作将当前运行的应用由第一应用切换为第二应用。
举例来说,如图3所示出的,粘贴操作界面为第一应用的界面,当用户进入第一应用并长按第一应用的界面上的输入框时,移动终端弹出“进入复制模式”菜单,在检测到用户点击该菜单的操作时,移动终端触发复制模式,并在状态栏上提示用户“当前是复制模式,请选择需要复制的文本”,此时如果移动终端检测到安装的应用中存在与目标标签(图3中的“电话”)相匹配的目标应用,则在粘贴操作界面上显示目标应用的图标(图3中所示的电话 图标和通讯录图标),当用户点击“取消”按键,并手动将当前运行的界面由第一应用的界面切换为第二应用的界面时,或者当用户点击目标应用的图标中的一个图标时,移动终端将当前运行的应用由第一应用切换为第二应用,在用户复制第二应用的界面上的待粘贴文本之后,移动终端自动将当前运行的应用由第二应用切换回第一应用,并自动将待粘贴文本填入输入框中。
进一步地,在一些实施例中,第四操作还用于触发取消从目标文本中选择文本的指令,目标文本与目标标签相匹配,图1所示的方法还包括:在复制模式下检索到目标文本,则在粘贴操作界面上显示目标文本。换言之,移动终端在检测到粘贴区域带有标签时,可以从安装的应用中检索与粘贴区域的标签相匹配的目标应用以及检索与粘贴区域的标签相匹配的目标文本,如果检索到目标应用和目标文本,则在粘贴操作界面上显示目标应用和目标文本。但如果显示的目标应用中没有包括待粘贴文本的应用,且显示的目标文本中不包括待粘贴文本,用户输入用于触发取消从目标应用中选择应用的指令以及触发取消从目标文本中选择文本的指令的第四操作,之后用户再输入用于触发将当前运行的应用由第一应用切换为第二应用的指令的第二操作,移动终端在检测到第二操作时,将当前运行的应用由第一应用切换到第二应用,供用户实现待粘贴文本的复制。因此,本申请实施例的方法,能够智能推测用户需要复制的文本或需要进入的应用,减少用户手动查找应用的过程,进一步降低了复制粘贴操作的复杂度,提升了便捷性。
举例来说,如图4所示出的,粘贴操作界面为第一应用的界面,当用户进入第一应用并长按第一应用的界面上的输入框时,移动终端弹出“进入复制模式”菜单,在检测到用户点击该菜单的操作时,移动终端触发复制模式,并在状态栏上提示用户“当前是复制模式,请选择需要复制的文本”,此时如果移动终端检测到安装的应用中存在与目标标签(图4中的“电话”)相匹配的目标应用,且检索到与目标标签相匹配的目标文本,则在粘贴操作界面上显示目标应用的图标(图4中所示的电话图标和通讯录图标)和目标文本(图4中的“13589670000”和“15183360000”),当用户点击“取消”按键,并手动将当前运行的界面由第一应用的界面切换为第二应用的界面时,移动终端将当前运行的应用由第一应用切换为第二应用,在用户复制第二应用的界 面上的待粘贴文本(图4中的“13589670001”)之后,移动终端自动将当前运行的应用由第二应用切换回第一应用,并自动将待粘贴文本填入输入框中。
具体地,在另一些实施例中,粘贴操作界面为第一应用的界面,复制操作界面为第二应用的界面,图1所示的方法还包括:在复制模式下检索到目标标签相匹配的目标文本,则在粘贴操作界面上显示目标文本,所述目标标签为所述粘贴区域的标签。相对应的,在S120,在复制模式下检测用户输入的第二操作包括:若在复制模式下所述粘贴操作界面上检测到用户输入的第五操作,则检测用户输入的第二操作,第五操作用于触发取消从目标文本中选择文本的指令。
也就是说,移动终端在检测到粘贴区域带有标签时,可以检索与粘贴区域的标签相匹配的目标文本,如果检索到目标文本,则在粘贴操作界面上显示目标文本,如果显示的目标文本中没有包括待粘贴文本,用户输入用于触发取消从目标文本中选择文本的指令的第五操作,之后用户再输入用于触发将当前运行的应用由第一应用切换为第二应用的指令的第二操作,移动终端在检测到第二操作时,将当前运行的应用由第一应用切换到第二应用,供用户实现待粘贴文本的复制。
可以理解的是,如果移动终端检测到粘贴区域不带标签,或者移动终端检测到粘贴区域带有标签,但是没有检索到与目标标签匹配的目标文本,则移动终端将无法向用户推荐目标文本。此时用户可以通过点击桌面上显示的第二应用的图标的操作或者从近期运行的应用中选择第二应用的操作将当前运行的应用由第一应用切换为第二应用。
举例来说,如图5所示出的,粘贴操作界面为第一应用的界面,当用户进入第一应用并长按第一应用的界面上的输入框时,移动终端弹出“进入复制模式”菜单,在检测到用户点击该菜单的操作时,移动终端触发复制模式,并在状态栏上提示用户“当前是复制模式,请选择需要复制的文本”,此时如果移动终端检测到与目标标签(图5中的“电话”)相匹配的目标文本,则在粘贴操作界面上显示目标文本(图5中的“13589670000”和“15183360000”),当用户点击“取消”按键,并手动将当前运行的界面由第一应用的界面切换为第二应用的界面时,移动终端将当前运行的应用由第一应用切换为第二应 用,在用户复制第二应用的界面上的待粘贴文本(图5中的“13589670001”)之后,移动终端自动将当前运行的应用由第二应用切换回第一应用,并自动将待粘贴文本填入输入框中。
具体地,在另一些实施例中,图1所示的方法还包括:在复制模式下检索到与目标标签相匹配的目标文本,则在粘贴操作界面上显示目标文本,目标标签为粘贴区域的标签。其中在S120中,获取用户在复制模式下复制的待粘贴文本包括:在复制模式下粘贴操作粘贴界面上检测到用户输入的第六操作,则复制待粘贴文本,第六操作用于触发从目标文本中选择并复制待粘贴文本的指令。
也就是说,移动终端在检测到粘贴区域带有标签时,可以检索与粘贴区域的标签相匹配的目标文本,如果检索到目标文本,则在粘贴操作界面上显示目标文本,如果显示的目标文本中包括待粘贴文本,用户输入用于触发从目标文本中选择并复制待粘贴文本的指令的第六操作,移动终端在检测到第六操作时,复制待粘贴文本。
可以理解的是,如果移动终端检测到粘贴区域不带标签,或者移动终端检测到粘贴区域带有标签,但是没有检索到与目标标签匹配的目标文本,则移动终端将无法向用户推荐目标文本。此时用户可以通过点击桌面上显示的第二应用的图标的操作或者从近期运行的应用中选择第二应用的操作将当前运行的应用由第一应用切换为第二应用。
举例来说,如图6所示出的,粘贴操作界面为第一应用的界面,当用户进入第一应用并长按第一应用的界面上的输入框时,移动终端弹出“进入复制模式”菜单,在检测到用户点击该菜单的操作时,移动终端触发复制模式,并在状态栏上提示用户“当前是复制模式,请选择需要复制的文本”,此时如果移动终端检测到与目标标签(图6中的“电话”)相匹配的目标文本,则在粘贴操作界面上显示目标文本(图6中的“13589670000”和“15183360000”),当用户点击目标文本中的待粘贴文本(图6中的“13589670000”)时,移动终端复制待粘贴文本,之后移动终端自动将待粘贴文本填入输入框中。
可选地,作为一个例子,在图3至图6所示的例子中,在粘贴操作界面上只显示目标应用、同时显示目标应用和目标文本以及只显示目标文本时, 将粘贴操作界面模糊显示(或者理解为将第一应用模糊显示)。
在本申请实施例中,以粘贴区域为输入框为例,移动终端在检测到粘贴区域是否带有标签时,可以通过解析输入框空间的布局参数判断输入框是否带有标签。例如,对于Android中的输入框空间是Edit Text,如果其父控件是线性布局(Linear Layout)的,则输入框空间的前一个Text View子节点即为该输入框的标签;如果其父控件是相对布局(RelativeLayout)的,则根据相对布局的参数可以获得输入框左边的TextView控件,该TextView控件即为该输入框的标签。
在本公开实施例中,可选地,图1所示的方法还包括:检测到所述安装的应用中存在属于预设应用名单中的应用,则确定存在所述目标应用,并将所述属于预设应用名单中的应用确定为所述目标应用;或,检测到所述安装的应用中存在应用名称包括的字符与所述目标标签包括的字符部分或全部相同的应用,则确定存在所述目标应用,并将所述应用名称包括的字符与所述目标标签包括的字符部分或全部相同的应用确定为所述目标应用。
也就是说,移动终端在检索与目标标签相匹配的目标应用时,可以预配置一个配置文件,该配置文件记录标签以及标签相匹配的应用列表。例如,配置文件的格式为:电话:电话/联系人/通讯录;手机:电话/联系人/通讯录;邮件:邮件/电子邮件/联系人/通讯录;银行卡号:招商银行/中国银行/建设银行。这里的电话、手机、邮件和银行卡号为标签。移动终端可以从配置文件中读取目标标签相匹配的预设应用名单(或者理解为应用列表),如果移动终端的桌面上有属于预设应用名单中的应用的图标,则说明该应用于目标标签相匹配。或者,如果一个应用的应用名称与标签部分或完全相同,则认为该应用于目标标签相匹配。例如,假设目标标签为“电话”,则桌面上的“电话”应用与该目标标签是相匹配的。假设目标标签为“快递单号”,则桌面上的“顺风快递”应用于该目标标签是相匹配的。
在本公开实施例中,可选地,图1所示的方法还包括:提取近期运行的应用中的所有文本;检索到所述所有文本中存在文本格式满足目标文本格式的文本,则将所述文本格式满足所述目标文本格式的文本确定为所述目标文本,所述目标文本格式为所述目标标签对应的文本格式。
举例来说,移动终端可以预配置一个配置文件,该配置文件记录标签对应的文本格式,如果提取出的文本中有满足目标标签对应的文本格式(例如,正则表达式)的文本,则该文本与目标标签相匹配。例如,配置文件的格式为:
电话:^1[3|4|5|8][0-9]\d{8}$;
电话:^(0\\d{2}-\\d{8}(-\\d{1,4})?)|(0\\d{3}-\\d{7,8}(-\\d{1,4})?)$;
手机:^1[3|4|5|8][0-9]\d{8}$;邮件:^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$;
身份证:^(\d{6})(18|19|20)?(\d{2})([01]\d)([0123]\d)(\d{3})(\d|X|x)?$。
可选地,作为一个例子,提取近期运行的应用中的所有文本包括:生成与所述近期运行的应用的界面对应的图像,并将从所述图像中识别出的文本确定为所述所有文本;或,获取所述近期运行的应用的界面中包括的文本控件,并将从所述文本控件中提取出的文本确定为所述所有文本。例如,对近期运行的应用中的所有界面做截屏,生成临时的图像,利用图像识别技术,识别并提取截屏中的文本,然后删除生成的图像。或者解析近期运行的应用中的界面的空间布局参数,即从顶级控件开始,遍历其所所有树状的子节点,如果子节点为文本控件(例如,在Android中,TextView就是文本控件),则提取该子节点中的文本。
下面将结合具体的例子详细描述根据本公开实施例的复制粘贴的方法。
图7是根据本公开的一个具体实施例的复制粘贴的方法的示意性流程图。如图7所示出的,图7所示的方法包括:
S701,在检测到用户进入第一应用,并长按目标输入框时,弹出“进入复制模式”菜单,并检测到用户点击该菜单。
S702,改变状态栏的背景颜色,并提示用户当前处于复制模式。
S703,检测到用户输入用于触发切换应用的指令的操作,将当前运行的应用由第一应用切换为第二应用。
S704,在检测到用户长按第二应用中的文本的操作时,复制文本。
可选地,在复制模式下,用户直接长按文本时,移动终端不弹出菜单,直接默认用户的长按操作的目的是进行文本复制。
S705,自动将当前运行的应用由第二应用切换回第一应用。
S706,自动将文本粘贴到目标输入框中。
S707,退出复制模式,状态栏恢复正常显示。
可选地,在图7所示的方法中,如果在S702和S703之间,检测到用户点击状态栏的操作,移动终端退出复制模式,恢复正常模式。
图8是根据本公开的另一个具体实施例的复制粘贴的方法的示意性流程图。如图8所示出的,图8所示的方法包括:
S801,在检测到用户进入第一应用,并长按目标输入框时,弹出“进入复制模式”菜单,并检测到用户点击该菜单。
S802,改变状态栏的背景颜色,并提示用户当前处于复制模式。
S803,检测目标输入框是否带有标签。
S804,如果有标签,则从近期任务中提取所有文本,以及从桌面应用中提取所有应用名称。
可选地,如果没有标签,则执行S805,在检测到用户输入用于触发切换应用的指令的操作时,将当前运行的应用由第一应用切换为第二应用。
S806,确定所有文本中是否检索到与目标输入框的标签相匹配的文本,以及确定应用名称中是否检索到与目标输入框的标签相匹配的应用。
可选地,如果没有检索到与目标输入框的标签相匹配的文本以及没有与目标输入框的标签相匹配的应用,则执行S805。
S807,如果检索到与目标输入框的标签相匹配的文本,显示文本列表,询问用户是否需要从文本列表中复制文本;如果检索到与目标输入框的标签相匹配的应用,显示应用图标列表,询问用户是否需要进入应用图标列表中的应用复制文本。
可选地,在S807中,移动终端将第一应用模糊显示。
S808,如果用户取消从文本列表中复制文本,且取消进入应用列表中的应用复制文本,则执行S805。
S809,如果用户从文本列表中复制文本,则在检测到用户点击要复制的文本的操作时,复制要复制的文本,并恢复第一应用的正常显示。
S810,如果用户需要进入应用列表中的应用复制文本,在检测到用户点 击要进入的第二应用的操作时,显示第二应用的界面。
S811,在检测到用户长按第二应用中的文本的操作时,复制文本,并自动将当前运行的应用由第二应用切换回第一应用。
S812,自动将文本内容粘贴到目标输入框中。
S813,退出复制模式,状态栏恢复正常显示。
可选地,在图8所示的方法中,如果在S802和S803之间,检测到用户点击状态栏的操作,移动终端退出复制模式,恢复正常模式。
需要说明的是,在图8所示的方法中,移动终端检测目标输入框是否带有标签的实现方式、移动终端检索与目标输入框的标签相匹配的文本的实现方式以及移动终端检索与目标输入框的标签相匹配的应用的实现方式与图1所示的方法中的相应实现方式相同,为避免重复,在此不再赘述。
以上结合图1至图8详细描述了根据本公开实施例的复制粘贴的方法,下面将结合图9详细描述根据本申请实施例的移动终端。如图9所示移动终端90包括:
触发单元91,用于在粘贴操作界面上检测到用户输入的第一操作,则触发复制模式;
文本获取单元92,用于获取所述用户在所述复制模式下复制的待粘贴文本;
文本粘贴单元93,用于在所述复制模式下,将所述待粘贴文本粘贴到所述粘贴操作界面上的粘贴区域。
可选地,作为一个实施例,所述文本获取单元92包括:
检测子单元,用于在所述复制模式下检测所述用户输入的第二操作;
界面切换子单元,用于所述检测子单元检测到所述用户在所述复制模式下输入的所述第二操作,则将当前界面由所述粘贴操作界面切换到复制操作界面;
文本复制子单元,用于在所述复制操作界面检测到所述用户输入的第三操作,则复制所述待粘贴文本。
可选地,作为一个实施例,在所述复制所述待粘贴文本之后,且在所述将所述待粘贴文本粘贴到所述粘贴操作界面上的粘贴区域之前,所述界面切 换子单元还用于:
将所述当前界面由所述复制操作界面切换到所述粘贴操作界面。
可选地,作为一个实施例,所述粘贴操作界面为第一应用的界面,所述复制操作界面为第二应用的界面,所述移动终端90还包括:
第一显示单元,用于在所述复制模式下检索到安装的应用中存在与目标标签相匹配的目标应用,则在所述粘贴操作界面上显示所述目标应用的图标,所述目标标签为所述粘贴区域的标签;
其中,所述检测子单元具体用于:
在所述复制模式下所述粘贴操作界面上检测到所述用户输入的第四操作,则检测所述用户输入的所述第二操作,所述第四操作用于触发取消从所述目标应用中选择应用的指令,所述第二操作用于触发将当前运行的应用由所述第一应用切换为所述第二应用的指令;或,
在所述复制模式下所述粘贴操作界面上检测所述用户输入的第二操作,所述第二操作用于触发从所述目标应用中选择所述第二应用并将当前运行的应用由所述第一应用切换为所述第二应用的指令。
可选地,作为一个实施例,所述第四操作还用于触发取消从目标文本中选择文本的指令,所述目标文本与所述目标标签相匹配,所述第一显示单元还用于:
在所述复制模式下检索到所述目标文本,则在所述粘贴操作界面上显示所述目标文本。
可选地,作为一个实施例,所述第一显示单元还用于:
检测到所述安装的应用中存在属于预设应用名单中的应用,则确定存在所述目标应用,并将所述属于预设应用名单中的应用确定为所述目标应用;或,
检测到所述安装的应用中存在应用名称包括的字符与所述目标标签包括的字符部分或全部相同的应用,则确定存在所述目标应用,并将所述应用名称包括的字符与所述目标标签包括的字符部分或全部相同的应用确定为所述目标应用。
可选地,作为一个实施例,所述粘贴操作界面为第一应用的界面,所述 复制操作界面为第二应用的界面,所述移动终端90还包括:
第二显示单元,用于在所述复制模式下检索到与目标标签相匹配的目标文本,则在所述粘贴操作界面上显示所述目标文本,所述目标标签为所述粘贴区域的标签;
其中,所述检测子单元具体用于:
在所述复制模式下所述粘贴操作界面上检测到所述用户输入的第五操作,则检测所述用户输入的所述第二操作,所述第五操作用于触发取消从所述文本中选择文本的指令,所述第二操作用于触发将当前运行的应用由所述第一应用切换为所述第二应用的指令。
可选地,作为一个实施例,所述移动终端90还包括:
第三显示单元,用于在所述复制模式下检索到与目标标签相匹配的目标文本,则在所述粘贴操作界面上显示所述目标文本,所述目标标签为所述粘贴区域的标签;
其中,所述文本获取单元具体用于:
在所述复制模式下所述粘贴操作界面上检测到所述用户输入的第六操作,则复制所述待粘贴文本,所述第六操作用于触发从所述目标文本中选择并复制所述待粘贴文本的指令。
可选地,作为一个实施例,所述移动终端还包括:
文本提取单元,用于提取近期运行的应用中的所有文本;
文本检索单元,用于检索到所述所有文本中存在文本格式满足目标文本格式的文本,则将所述文本格式满足所述目标文本格式的文本确定为所述目标文本,所述目标文本格式为所述目标标签对应的文本格式。
可选地,作为一个实施例,所述文本提取单元具体用于:
生成与所述近期运行的应用的界面对应的图像,并将从所述图像中提取出的文本确定为所述所有文本;或,
获取所述近期运行的应用的界面中包括的文本控件,并将从所述文本控件中提取出的文本确定为所述所有文本。
根据本公开实施例的移动终端可以参照对应本公开实施例的方法的流程,并且,该移动终端中的各个单元/模块和上述其他操作和/或功能分别为了实现 图1所示的方法中的相应流程,为了简洁,在此不再赘述。
图10为实现本公开实施例的移动终端的硬件结构示意图。如图10所示,该移动终端1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、处理器1010、以及电源1011等部件。本领域技术人员可以理解,图10中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器1010,用于若在粘贴操作界面上检测到用户输入的第一操作,则触发复制模式;获取所述用户在所述复制模式下复制的待粘贴文本;在所述复制模式下,自动将所述待粘贴文本粘贴到所述粘贴操作界面上的粘贴区域。
本公开实施例的移动终端,通过在粘贴操作界面上检测到用户输入的第一操作时,触发复制模式,并在获取到用户在复制模式下复制的待粘贴文本后,自动将待粘贴文本粘贴到粘贴操作界面的粘贴区域,减少在用户在进行文本复制粘贴时,先进入粘贴操作界面后进入到复制操作界面的场景中执行长按操作的次数,降低复制粘贴操作的复杂度,提高用户体验。
应理解的是,本公开实施例中,射频单元1001可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1010处理;另外,将上行的数据发送给基站。通常,射频单元1001包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1001还可以通过无线通信系统与网络和其他设备通信。
移动终端通过网络模块1002为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元1003可以将射频单元1001或网络模块1002接收的或者在存储器1009中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1003还可以提供与移动终端1000执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1003包括扬 声器、蜂鸣器以及受话器等。
输入单元1004用于接收音频或视频信号。输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1006上。经图形处理器10041处理后的图像帧可以存储在存储器1009(或其它存储介质)中或者经由射频单元1001或网络模块1002进行发送。麦克风10042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1001发送到移动通信基站的格式输出。
移动终端1000还包括至少一种传感器1005,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板10061的亮度,接近传感器可在移动终端1000移动到耳边时,关闭显示面板10061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1005还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,其中红外线传感器能够通过发射和接收红外光测量物体与移动终端之间的距离,在此不再赘述。
显示单元1006用于显示由用户输入的信息或提供给用户的信息。显示单元1006可包括显示面板10061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板10061。
用户输入单元1007可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何 适合的物体或附件在触控面板10071上或在触控面板10071附近的操作)。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1010,接收处理器1010发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板10071。除了触控面板10071,用户输入单元1007还可以包括其他输入设备10072。具体地,其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板10071可覆盖在显示面板10061上,当触控面板10071检测到在其上或附近的触摸操作后,传送给处理器1010以确定触摸事件的类型,随后处理器1010根据触摸事件的类型在显示面板10061上提供相应的视觉输出。虽然在图10中,触控面板10071与显示面板10061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板10071与显示面板10061集成而实现移动终端的输入和输出功能,具体此处不做限定。
接口单元1008为外部装置与移动终端1000连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1008可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端1000内的一个或多个元件或者可以用于在移动终端1000和外部装置之间传输数据。
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1009可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器1010是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器1009内的软件程序和/或模块,以及调用存储在存储器1009内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器1010可包括一个或多个处理单元;可选的,处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
移动终端1000还可以包括给各个部件供电的电源1011(比如电池),可选的,电源1011可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,移动终端1000包括一些未示出的功能模块,在此不再赘述。
可选地,本公开实施例还提供一种移动终端,包括处理器1010,存储器1009,存储在存储器1009上并可在所述处理器1010上运行的计算机程序,该计算机程序被处理器1010执行时实现上述图1所示的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述图1所示的方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本领域内的技术人员应明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本公开是参照根据本公开实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程 和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖 非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本公开的实施例可提供为方法、系统或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
以上所述仅为本公开的实施例而已,并不用于限制本公开。对于本领域技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本公开的权利要求范围之内。

Claims (16)

  1. 一种复制粘贴的方法,包括:
    在粘贴操作界面上检测到用户输入的第一操作,则触发复制模式;
    获取所述用户在所述复制模式下复制的待粘贴文本;
    在所述复制模式下,将所述待粘贴文本粘贴到所述粘贴操作界面上的粘贴区域。
  2. 根据权利要求1所述的方法,其中,所述获取用户在所述复制模式下复制的待粘贴文本,包括:
    在所述复制模式下检测所述用户输入的第二操作;
    检测到所述用户在所述复制模式下输入的所述第二操作,则将当前界面由所述粘贴操作界面切换到复制操作界面;
    在所述复制操作界面检测到所述用户输入的第三操作,则复制所述待粘贴文本。
  3. 根据权利要求2所述的方法,所述粘贴操作界面为第一应用的界面,所述复制操作界面为第二应用的界面,所述方法还包括:
    在所述复制模式下检索到安装的应用中存在与目标标签相匹配的目标应用,则在所述粘贴操作界面上显示所述目标应用的图标,所述目标标签为所述粘贴区域的标签;
    其中,所述在复制模式下检测所述用户输入的第二操作,包括:
    在所述复制模式下所述粘贴操作界面上检测到所述用户输入的第四操作,则检测所述用户输入的所述第二操作,所述第四操作用于触发取消从所述目标应用中选择应用的指令,所述第二操作用于触发将当前运行的应用由所述第一应用切换为所述第二应用的指令;或,
    在所述复制模式下所述粘贴操作界面上检测所述用户输入的第二操作,所述第二操作用于触发从所述目标应用中选择所述第二应用并将当前运行的应用由所述第一应用切换为所述第二应用的指令。
  4. 根据权利要求3所述的方法,还包括:
    检测到所述安装的应用中存在属于预设应用名单中的应用,则确定存在 所述目标应用,并将所述属于预设应用名单中的应用确定为所述目标应用;或,
    检测到所述安装的应用中存在应用名称包括的字符与所述目标标签包括的字符部分或全部相同的应用,则确定存在所述目标应用,并将所述应用名称包括的字符与所述目标标签包括的字符部分或全部相同的应用确定为所述目标应用。
  5. 根据权利要求2所述的方法,所述粘贴操作界面为第一应用的界面,所述复制操作界面为第二应用的界面,所述方法还包括:
    在所述复制模式下检索到与目标标签相匹配的目标文本,则在所述粘贴操作界面上显示所述目标文本,所述目标标签为所述粘贴区域的标签;
    其中,所述在所述复制模式下检测所述用户输入的第二操作,包括:
    在所述复制模式下所述粘贴操作界面上检测到所述用户输入的第五操作,则检测所述用户输入的所述第二操作,所述第五操作用于触发取消从所述文本中选择文本的指令,所述第二操作用于触发将当前运行的应用由所述第一应用切换为所述第二应用的指令。
  6. 根据权利要求1所述的方法,还包括:
    在所述复制模式下检索到与目标标签相匹配的目标文本,则在所述粘贴操作界面上显示所述目标文本,所述目标标签为所述粘贴区域的标签;
    其中,所述获取用户在所述复制模式下复制的待粘贴文本,包括:
    在所述复制模式下所述粘贴操作界面上检测到所述用户输入的第六操作,则复制所述待粘贴文本,所述第六操作用于触发从所述目标文本中选择并复制所述待粘贴文本的指令。
  7. 根据权利要求6所述的方法,还包括:
    提取近期运行的应用中的所有文本;
    检索到所述所有文本中存在文本格式满足目标文本格式的文本,则将所述文本格式满足所述目标文本格式的文本确定为所述目标文本,所述目标文本格式为所述目标标签对应的文本格式。
  8. 一种移动终端,包括:
    触发单元,用于在粘贴操作界面上检测到用户输入的第一操作,则触发 复制模式;
    文本获取单元,用于获取所述用户在所述复制模式下复制的待粘贴文本;
    文本粘贴单元,用于在所述复制模式下,将所述待粘贴文本粘贴到所述粘贴操作界面上的粘贴区域。
  9. 根据权利要求8所述的移动终端,其中,所述文本获取单元包括:
    检测子单元,用于在所述复制模式下检测所述用户输入的第二操作;
    界面切换子单元,用于所述检测子单元检测到所述用户在所述复制模式下输入的所述第二操作,则将当前界面由所述粘贴操作界面切换到复制操作界面;
    文本复制子单元,用于在所述复制操作界面检测到所述用户输入的第三操作,则复制所述待粘贴文本。
  10. 根据权利要求9所述的移动终端,其中,所述粘贴操作界面为第一应用的界面,所述复制操作界面为第二应用的界面,所述移动终端还包括:
    第一显示单元,用于在所述复制模式下检索到安装的应用中存在与目标标签相匹配的目标应用,则在所述粘贴操作界面上显示所述目标应用的图标,所述目标标签为所述粘贴区域的标签;
    其中,所述检测子单元具体用于:
    在所述复制模式下所述粘贴操作界面上检测到所述用户输入的第四操作,则检测所述用户输入的所述第二操作,所述第四操作用于触发取消从所述目标应用中选择应用的指令,所述第二操作用于触发将当前运行的应用由所述第一应用切换为所述第二应用的指令;或,
    在所述复制模式下所述粘贴操作界面上检测所述用户输入的第二操作,所述第二操作用于触发从所述目标应用中选择所述第二应用并将当前运行的应用由所述第一应用切换为所述第二应用的指令。
  11. 根据权利要求10所述的移动终端,其中,所述第一显示单元还用于:
    检测到所述安装的应用中存在属于预设应用名单中的应用,则确定存在所述目标应用,并将所述属于预设应用名单中的应用确定为所述目标应用;或,
    检测到所述安装的应用中存在应用名称包括的字符与所述目标标签包括 的字符部分或全部相同的应用,则确定存在所述目标应用,并将所述应用名称包括的字符与所述目标标签包括的字符部分或全部相同的应用确定为所述目标应用。
  12. 根据权利要求9所述的移动终端,其中,所述粘贴操作界面为第一应用的界面,所述复制操作界面为第二应用的界面,所述移动终端还包括:
    第二显示单元,用于在所述复制模式下检索到与目标标签相匹配的目标文本,则在所述粘贴操作界面上显示所述目标文本,所述目标标签为所述粘贴区域的标签;
    其中,所述检测子单元具体用于:
    在所述复制模式下所述粘贴操作界面上检测到所述用户输入的第五操作,则检测所述用户输入的所述第二操作,所述第五操作用于触发取消从所述文本中选择文本的指令,所述第二操作用于触发将当前运行的应用由所述第一应用切换为所述第二应用的指令。
  13. 根据权利要求8所述的移动终端,还包括:
    第三显示单元,用于在所述复制模式下检索到与目标标签相匹配的目标文本,则在所述粘贴操作界面上显示所述目标文本,所述目标标签为所述粘贴区域的标签;
    其中,所述文本获取单元具体用于:
    在所述复制模式下所述粘贴操作界面上检测到所述用户输入的第六操作,则复制所述待粘贴文本,所述第六操作用于触发从所述目标文本中选择并复制所述待粘贴文本的指令。
  14. 根据权利要求13所述的移动终端,还包括:
    文本提取单元,用于提取近期运行的应用中的所有文本;
    文本检索单元,用于检索到所述所有文本中存在文本格式满足目标文本格式的文本,则将所述文本格式满足所述目标文本格式的文本确定为所述目标文本,所述目标文本格式为所述目标标签对应的文本格式。
  15. 一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述的复制粘贴的方法的步骤。
  16. 一种计算机可读存储介质,存储计算机程序,所述计算机程序被处理器执行时实现如权利要1至7中任一项所述的复制粘贴的方法的步骤。
PCT/CN2019/081899 2018-04-12 2019-04-09 复制粘贴的方法和移动终端 WO2019196831A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810327138.0A CN108829301A (zh) 2018-04-12 2018-04-12 复制粘贴的方法和移动终端
CN201810327138.0 2018-04-12

Publications (1)

Publication Number Publication Date
WO2019196831A1 true WO2019196831A1 (zh) 2019-10-17

Family

ID=64155375

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/081899 WO2019196831A1 (zh) 2018-04-12 2019-04-09 复制粘贴的方法和移动终端

Country Status (2)

Country Link
CN (1) CN108829301A (zh)
WO (1) WO2019196831A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829301A (zh) * 2018-04-12 2018-11-16 维沃移动通信有限公司 复制粘贴的方法和移动终端
CN110286991B (zh) * 2019-06-30 2021-08-17 联想(北京)有限公司 一种信息处理方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040250215A1 (en) * 2003-06-05 2004-12-09 International Business Machines Corporation System and method for content and information transfer between program entities
CN101694650A (zh) * 2009-10-10 2010-04-14 宇龙计算机通信科技(深圳)有限公司 一种复制和粘贴数据的方法、装置和移动终端
CN105808058A (zh) * 2016-03-04 2016-07-27 陈包容 一种智能显示粘贴提示的方法及装置
CN106776082A (zh) * 2017-01-17 2017-05-31 维沃移动通信有限公司 文本的粘贴方法及装置
CN107608583A (zh) * 2017-09-01 2018-01-19 广东欧珀移动通信有限公司 应用间交互方法、装置、移动终端及计算机可读存储介质
CN108829301A (zh) * 2018-04-12 2018-11-16 维沃移动通信有限公司 复制粘贴的方法和移动终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9292522B2 (en) * 2012-10-04 2016-03-22 Dmytro Shyryayev Method and system for automating the editing of computer files
CN104407787A (zh) * 2014-10-27 2015-03-11 深圳市金立通信设备有限公司 一种终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040250215A1 (en) * 2003-06-05 2004-12-09 International Business Machines Corporation System and method for content and information transfer between program entities
CN101694650A (zh) * 2009-10-10 2010-04-14 宇龙计算机通信科技(深圳)有限公司 一种复制和粘贴数据的方法、装置和移动终端
CN105808058A (zh) * 2016-03-04 2016-07-27 陈包容 一种智能显示粘贴提示的方法及装置
CN106776082A (zh) * 2017-01-17 2017-05-31 维沃移动通信有限公司 文本的粘贴方法及装置
CN107608583A (zh) * 2017-09-01 2018-01-19 广东欧珀移动通信有限公司 应用间交互方法、装置、移动终端及计算机可读存储介质
CN108829301A (zh) * 2018-04-12 2018-11-16 维沃移动通信有限公司 复制粘贴的方法和移动终端

Also Published As

Publication number Publication date
CN108829301A (zh) 2018-11-16

Similar Documents

Publication Publication Date Title
CN108762954B (zh) 一种对象分享方法及移动终端
CN107846352B (zh) 一种信息显示方法、移动终端
CN108415652B (zh) 一种文本处理方法及移动终端
WO2019120192A1 (zh) 文本编辑方法及移动终端
CN110099296B (zh) 一种信息显示方法及终端设备
CN110764666B (zh) 一种显示控制方法及电子设备
CN109522278B (zh) 一种文件存储方法及终端设备
CN109358931B (zh) 一种界面显示方法及终端
CN108874906B (zh) 一种信息推荐方法及终端
WO2019141130A1 (zh) 支付方法及终端设备
CN110703972B (zh) 一种文件控制方法及电子设备
WO2020192322A1 (zh) 显示方法及终端设备
WO2021169954A1 (zh) 搜索方法及电子设备
CN111600931A (zh) 一种信息分享方法及电子设备
WO2015003636A1 (zh) 一种页面元素的拦截方法和装置
CN110990679A (zh) 信息搜索方法及电子设备
CN111459361B (zh) 应用图标显示方法、装置及电子设备
WO2019196831A1 (zh) 复制粘贴的方法和移动终端
CN111405043A (zh) 信息处理方法、装置及电子设备
CN110012152B (zh) 一种界面显示方法及终端设备
CN110932964A (zh) 一种信息的处理方法及装置
CN109117037B (zh) 一种图像处理的方法及终端设备
CN111090529A (zh) 共享信息的方法及电子设备
WO2021012955A1 (zh) 界面切换方法及终端设备
CN110175063B (zh) 操作辅助方法、装置、移动终端及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19785952

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19785952

Country of ref document: EP

Kind code of ref document: A1