WO2017193496A1 - 应用数据的处理方法、装置和终端设备 - Google Patents

应用数据的处理方法、装置和终端设备 Download PDF

Info

Publication number
WO2017193496A1
WO2017193496A1 PCT/CN2016/096108 CN2016096108W WO2017193496A1 WO 2017193496 A1 WO2017193496 A1 WO 2017193496A1 CN 2016096108 W CN2016096108 W CN 2016096108W WO 2017193496 A1 WO2017193496 A1 WO 2017193496A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
display data
application
control
interface
Prior art date
Application number
PCT/CN2016/096108
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 华为技术有限公司
Priority to CN202210933195.XA priority Critical patent/CN115454286B/zh
Priority to CN201680087057.7A priority patent/CN109328329A/zh
Priority to PCT/CN2016/096108 priority patent/WO2017193496A1/zh
Publication of WO2017193496A1 publication Critical patent/WO2017193496A1/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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • 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]
    • 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

Definitions

  • the present invention relates to communication technologies, and in particular, to a method, an apparatus, and a terminal device for processing application data.
  • APP applications
  • mobile devices With the continuous development of mobile devices, a variety of applications (applications, referred to as APP) appear on mobile devices to provide convenience and entertainment for users' lives.
  • third-party application developers have given content collection and content sharing functions to third-party applications. Users can collect or share their own content to other applications. For example, suppose the user is currently viewing the headlines. "A news on the APP, the user needs to share this news into the "WeChat” app, then the user clicks the share button on the "Today's Headline” APP, and the sharing interface of the application display will pop up, the user can select in this interface.
  • the target application that needs to be shared that is, choose to share with the WeChat app.
  • the collection and sharing functions of the above application content are functions provided by the application itself. Therefore, the collected data can only be viewed in the source APP, and the user operation is cumbersome; for the sharing of the content, the authorization of the source APP is affected, for example, The product link in Taobao (source APP) cannot be shared into WeChat (target APP). Therefore, the collection and sharing methods of the application data in the prior art cannot fully satisfy the user's use requirements, and the user experience is poor.
  • the method, device, and terminal device for processing application data provided by the embodiments of the present invention are used to solve the method for collecting and sharing application data in the prior art, and cannot fully satisfy the user's use requirements, and the user experience is poor, so that the human-machine interaction is insufficient. Intelligent technical issues.
  • an embodiment of the present invention provides a method for processing application data, including:
  • the display data is processed according to a data manipulation instruction input by the user based on the processing control.
  • the terminal device acquires display data of the source application on the current display interface by using the received trigger instruction of the user, and displays the display data including the display data on the current display interface.
  • the event information and the processing control process the interface to process the display data according to a data operation instruction input by the user based on the processing control.
  • the terminal device since the terminal device has acquired the display data of the source application on the current display interface, and displays the event information of the display data on the processing interface of the APP having the content collection and sharing function,
  • the display data has been deviated from the authorization limit of the source application, so that the terminal device can perform arbitrary collection or sharing processing on the event information of the display data on the processing interface according to the data operation instruction input by the user, and the target of the display display data
  • the APP or the target APP sharing the display data is not restricted by the authorization of the source APP, which not only simplifies the operation of the user, but also greatly improves the sharing experience of the user, and makes the interaction of the application on the user and the terminal device more intelligent;
  • the embodiment of the invention can also collect or share the display data on the system-level application that cannot provide the sharing or collecting function, and save or save the processing space and the memory of the terminal device, thereby further improving the memory of the terminal device.
  • System level application and Intelligent user interaction since the terminal device has acquired the display data of the source application
  • the displaying the processing interface on the current display interface includes:
  • the data type of the display data includes data of the multimedia application, data of the social chat application, data of the reading application, data of the shopping application, data of the express application Any one or more of them;
  • the event information of the display data and the processing control are displayed on the processing interface.
  • the event information of the display data is determined according to the data type of the display data, and specifically includes one or more of the following:
  • determining event information of the display data includes a name of the multimedia file and an creator and an artist of the multimedia file
  • the display data is the data of the social chat application, determining that the event information of the display data includes time information, location information, and event content related to the schedule event in the conversation content;
  • determining event information of the display data includes reading a title of the content and a source of the reading content
  • determining event information of the display data includes a product name and a commodity price
  • determining the event information of the display data includes the delivery order number and the logistics information corresponding to the express delivery number.
  • the processing the data according to the data operation instruction input by the user based on the processing control specifically:
  • the event information carries at least one of a display data name, a data type of the display data, a data content of the display data, a source of the display data, and a user name related to the display data;
  • the determining, according to the determination result, the interface content to be displayed on the sharing selection interface specifically including one or two of the following:
  • the interface content includes event information of the display data and a target sharing application that matches a data type of the display data
  • the processing method of the application data provided in each of the above possible designs, after the user inputs the sharing instruction based on the sharing control on the processing interface, determining whether the event information of the display data satisfies the content according to the data type of the display data.
  • the first preset condition corresponding to the data type of the display data when the event information of the display data on the processing interface does not satisfy the first preset condition, the terminal device obtains the first preset condition by obtaining interaction with the network server.
  • the event information is used as the interface content to be displayed on the sharing selection interface, and the interface content is displayed on the sharing selection interface, so that when the user selects the first target sharing application, the display data satisfying the first preset condition is
  • the event information is shared to the first target sharing application, and the data sharing between the applications is realized, so that the target sharing application can better provide services for the user, and the user experience is greatly improved.
  • the processing data is processed according to the data operation instruction input by the user based on the processing control, and specifically includes:
  • the target collection application is a system-level application integrated by the system and not undeletable;
  • the event information of the data carries at least one of a display data name, a data type of the display data, a data content of the display data, a source of the display data, and a user name related to the display data;
  • the determining, according to the determination result, the collection content to be collected to the first target collection application specifically including one or more of the following:
  • the processing method of the application data provided in each of the foregoing possible designs, by determining the first target favorite application that matches the data type according to the data type of the display data and the preset first mapping relationship, and according to the first The application type of the target collection application, and the event that determines the display data Whether the information meets the second preset condition corresponding to the first target collection application, and when the event information of the display data does not satisfy the second preset condition, by performing interaction with the network server, obtaining a display that satisfies the second preset condition
  • the event information of the data is collected in the first target collection application, so that the user can view the more complete data through the first target collection application, and the view can be viewed without using the source application, thereby greatly simplifying the operation of the user and improving the operation.
  • the effectiveness of the data collection by determining the first target favorite application that matches the data type according to the data type of the display data and the preset first mapping relationship, and according to the first The application type of the target collection application, and the event that determines the display
  • the obtaining the display data of the source application on the current display interface according to the triggering instruction includes:
  • the obtaining the display data of the source application on the current display interface according to the triggering instruction includes:
  • the control is an interface element on the current display interface
  • the preset configuration includes Determining at least one of a version number of the source application, an application identifier of the source application, a page identifier of the current display interface, a control type of the control, and a data type of the display data;
  • the display data is acquired according to the content of each of the controls.
  • the obtaining the display data according to the content of each control includes:
  • the effective control is a control carrying data that meets a third preset condition;
  • the data attribute includes the control The length of the text in the text, the picture in the control occupies the size of the current interface, and the animation in the control occupies at least one of the size of the current interface;
  • the display data is acquired according to the content of each of the valid controls.
  • the determining, according to the data attribute of the content of each control, the effective control on the current display interface of the source application specifically includes:
  • the data attribute of the control is the length of the text in the control, and the text length of the content in the control is greater than a preset first threshold, determining that the control is a valid control;
  • the data attribute of the control is that the picture in the control occupies the size of the current interface, and the picture in the control occupies the size of the current interface is greater than a preset second threshold, determining that the control is Effective control
  • the data attribute of the control is the size of the current interface in the control, and the animation in the control occupies the size of the current interface is greater than a preset third threshold, determining that the control is a valid control;
  • the third preset condition includes that the text length of the content in the control is greater than the first threshold, the size of the current interface in the control is greater than the second threshold, and the animation in the control is occupied.
  • the size of the current interface is greater than any of the third thresholds.
  • the terminal device obtains the content on each control according to the data acquisition method carried by the control itself by traversing the control of the source application on the current display interface, and according to the data of the content of each control
  • the attribute determines the effective control of the source application on the current display interface, and then obtains the display data of the source application on the current display interface according to the content of each valid control, and the display data obtained by the method belongs to the content collection and sharing in FIG.
  • the function of the APP which is not restricted by the authorization of the source application, so that the terminal device can share or collect the display data arbitrarily based on the APP having the content collection and sharing function, and collect the target APP of the display data or share the display data.
  • the target APP is not restricted by the authorization of the source APP, which not only simplifies the operation of the user, but also greatly improves the sharing and collection experience of the user, and makes the interaction of the application on the user and the terminal device more intelligent.
  • a second aspect of the present invention provides an apparatus for processing application data, including:
  • a receiving module configured to receive a trigger instruction input by a user
  • An obtaining module configured to acquire, according to the triggering instruction, display data of a source application on a current display interface
  • a display module configured to display a processing interface on the current display interface, where the processing interface includes event information and a processing control of the display data, where the processing control is configured to receive a data operation instruction of the user;
  • a processing module configured to process the display data according to a data operation instruction input by the user based on the processing control.
  • the display module specifically includes:
  • a first determining unit configured to determine event information of the display data according to a data type of the display data;
  • the data type of the display data includes data of a multimedia application, and a social chat application Any one or more of data, data for reading applications, data for shopping applications, and data for express applications;
  • a display unit configured to display event information of the display data and the processing control on the processing interface.
  • the first determining unit is specifically used for one or more of the following: when the display data is data of a multimedia application, determining event information of the display data includes a name of the multimedia file. And the creator and the performer of the multimedia file; specifically, when the display data is data of a social chat application, determining event information of the display data includes time information and location information related to a schedule event in the conversation content And event content; when the display data is data of the reading application, determining event information of the display data includes reading a title of the content and a source of the reading content; when the display data is data of the shopping application, determining The event information of the display data includes a product name and a commodity price; when the display data is data of a express application, determining event information of the display data includes a delivery order number and logistics information corresponding to the express delivery number.
  • the processing control includes at least one of a sharing control and a favorite control.
  • the processing module specifically includes: a first determining unit, a second determining unit, and a sharing unit;
  • the first determining unit is configured to determine, according to the data type of the display data, whether the event information of the display data satisfies a first preset condition corresponding to a data type of the display data; wherein the first The preset condition includes at least one of a display data name, a data type of the display data, a data content of the display data, a source of the display data, and a user name related to the display data, in the event information of the display data;
  • the second determining unit is configured to determine, according to the determination result, an interface content to be displayed on the sharing selection interface
  • the display module is further configured to display the sharing selection interface according to the interface content
  • the sharing unit is configured to share the interface content to the first target sharing application according to the first target sharing application selected by the user.
  • the second determining unit is specifically used for one or two of the following: when the event information of the display data satisfies the first preset condition, determining the interface content package The event information of the display data and the target sharing application matching the data type of the display data; when the event information of the display data does not satisfy the first preset condition, sending the display to the network server a first data processing request of the data, to acquire event information of the display data that satisfies the first preset condition by the network server, and determine that the interface content includes the event that meets the display data of the first preset condition A target sharing application in the information and terminal device that matches the data type of the display data.
  • the processing module includes:
  • a third determining unit configured to determine, according to the data type of the display data and the preset first mapping relationship, a first target favorite application that matches the data type; the first mapping relationship includes different data types and Corresponding relationship between different types of target collection applications, the target collection application being a system-level application integrated by the system and not undeletable;
  • a second determining unit configured to determine, according to an application type of the first target favorite application, whether event information of the display data meets a second preset condition corresponding to the first target favorite application; wherein, the second The preset condition includes at least one of a display data name, a data type of the display data, a data content of the display data, a source of the display data, and a user name related to the display data, in the event information of the display data;
  • a collecting unit configured to determine, according to the determination result, the collected content to be collected to the first target favorite application, and collect the collected content to the first target favorite application.
  • the collecting unit is specifically used for one or more of the following: when the event information of the display data satisfies the second preset condition, determining that the favorite content includes the display Event information of the data; when the event information of the display data does not satisfy the second preset condition, sending a second data processing request carrying the display data to the network server, to obtain, by the network server, that the information is satisfied The event information of the display data of the second preset condition, and determining that the favorite content includes event information of the display data satisfying the second preset condition.
  • the source application includes a system level application or a non-system level application, which is a non-system integrated and deletable application.
  • the acquiring module is specifically configured to invoke the acquisition shared data interface getShareData() of the source application according to the triggering instruction, by using the obtaining sharing.
  • the data interface acquires the display data.
  • the acquiring module is specifically configured to acquire, on the current display interface of the source application, according to the triggering instruction and the preset configuration.
  • the content of the control and obtaining the display data according to the content of each control;
  • the control is an interface element on the current display interface, and the preset configuration includes a version number of the source application, an application identifier of the source application, a page identifier of the current display interface, and the control At least one of a control type, a data type of the display data.
  • the obtaining module is specifically configured to determine, according to a data attribute of the content of each control, a valid control on the current display interface of the source application, and according to each of the effective controls Content, obtaining the display data;
  • the valid control is a control that carries data that meets a third preset condition; the data attribute includes a text length in the control, a picture in the control occupies a size of a current interface, and an animation in the control At least one of the sizes of the current interface.
  • the obtaining module is specifically configured to: when a data attribute of the control is a text length in the control, and a text length in the control is greater than a preset first threshold, determine The control is a valid control; or, when the data attribute of the control is the size of the current interface in the control, and the image in the control occupies the size of the current interface is greater than a preset second threshold, Determining that the control is a valid control; or, when the data attribute of the control is the size of the current interface in the control, and the animation in the control occupies the size of the current interface is greater than a preset third threshold , determining that the control is a valid control;
  • the third preset condition includes that the length of the text in the control is greater than the first threshold, the size of the picture in the control occupies the size of the current interface is greater than the second threshold, and the animation in the control occupies the current The size of the interface is greater than any of the third thresholds.
  • the processing results of the application data provided by the second aspect and the possible design of the second aspect may be beneficially referred to the advantages of the first aspect and the possible designs of the first aspect, and Let me repeat.
  • an embodiment of the present invention provides a terminal device, including:
  • Input device for receiving a trigger command input by a user
  • a processor configured to acquire display data of the source application on the current display interface according to the triggering instruction
  • a display device configured to display a processing interface on the current display interface; wherein the processing boundary
  • the surface includes the event information and the processing control of the display data, and the processing control is configured to receive a data operation instruction of the user;
  • the processor is further configured to process the display data according to a data operation instruction input by a user based on the processing control.
  • the processor is further configured to determine event information of the display data according to a data type of the display data;
  • the data type of the display data includes data of the multimedia application, and data of the social chat application. , reading any one or more of the application data, the shopping application data, and the express application data;
  • the display device is specifically configured to display event information of the display data and the processing control on the processing interface.
  • the processor is further configured to determine event information of the display data according to a data type of the display data, specifically:
  • the processor is specifically used in one or more of the following: when the display data is data of a multimedia application, determining event information of the display data includes a name of the multimedia file and a creator and a performance of the multimedia file When the display data is data of a social chat application, determining event information of the display data includes time information related to a schedule event in the conversation content, location information, and event content; when the display data is a reading application At the time of data, determining event information of the display data includes reading a title of the content and a source of the read content; when the display data is data of the shopping application, determining event information of the display data includes a product name and a commodity price And when the display data is the data of the express application, determining the event information of the display data includes the delivery order number and the logistics information corresponding to the express delivery number.
  • the processing control includes at least one of a sharing control and a favorite control.
  • the processor is configured to process the display data according to a data operation instruction input by the user based on the processing control, and specifically includes:
  • the processor is configured to determine, according to the data type of the display data, whether event information of the display data satisfies a first preset condition corresponding to a data type of the display data, and determine, to be displayed, according to the determination result. And sharing the interface content of the selection interface; wherein the first preset condition includes the data type of the display data name and the display data in the event information of the display data At least one of a type, a data content of the display data, a source of the display data, and a username associated with the display data;
  • the display device is further configured to display the sharing selection interface according to the interface content
  • the processor is further configured to share the interface content to the first target sharing application according to the first target sharing application selected by the user.
  • the terminal device further includes a transceiver
  • the processor is configured to determine, according to the determination result, an interface content to be displayed on the sharing selection interface, specifically:
  • the processor is specifically configured to: when the event information of the display data satisfies the first preset condition, determining that the interface content includes event information of the display data and a target sharing application that matches the data type of the display data; when the event information of the display data does not satisfy the first preset condition, sending, by the transceiver, a first data processing request carrying the display data to the network server And acquiring, by the network server, event information that meets the display data of the first preset condition, and determining that the interface content includes event information of the display data that satisfies the first preset condition, and all the The data sharing type of the display data matches the target sharing application.
  • the processor is configured to process the display data according to a data operation instruction input by the user based on the processing control, and specifically includes:
  • the processor is specifically configured to determine, according to the data type of the display data and a preset first mapping relationship, a first target favorite application that matches the data type, and according to the application of the first target favorite application Type, determining whether the event information of the display data meets a second preset condition corresponding to the first target favorite application; and determining, according to the determination result, the favorite content to be collected to the first target favorite application, and determining Collecting the collected content to the first target collection application;
  • the first mapping relationship includes a correspondence between different data types and different types of target collection applications, where the target collection application is a system-level application integrated by the system and cannot be deleted;
  • the second preset condition includes
  • the event information of the display data carries at least one of a display data name, a data type of the display data, a data content of the display data, a source of the display data, and a user name related to the display data.
  • the processor is configured to determine, according to the judgment result, that the to-be-collected
  • the collection content of the first target collection application includes:
  • the processor is specifically configured to: when the event information of the display data satisfies the second preset condition, determining that the favorite content includes event information of the display data; When the event information of the display data does not satisfy the second preset condition, the second data processing request carrying the display data is sent to the network server by the transceiver, so that the second preset condition is met by the network server. Displaying event information of the data, and determining that the favorite content includes event information of the display data satisfying the second preset condition.
  • the source application includes a system level application or a non-system level application, which is a non-system integrated and deletable application.
  • the processor is configured to obtain display data of the source application on the current display interface according to the triggering instruction, and specifically includes:
  • the processor is specifically configured to invoke the acquisition shared data interface getShareData() of the source application according to the triggering instruction, and obtain the display data by using the acquired shared data interface.
  • the processor is configured to obtain display data of the source application on the current display interface according to the triggering instruction, and specifically includes:
  • the processor is configured to acquire content of each control on the current display interface of the source application according to the triggering instruction and a preset configuration, and acquire the display data according to content of each control ;
  • the control is an interface element on the current display interface, and the preset configuration includes a version number of the source application, an application identifier of the source application, a page identifier of the current display interface, and the control At least one of a control type, a data type of the display data.
  • the processor is configured to obtain the display data according to the content of each of the controls, and specifically includes:
  • the processor is specifically configured to determine, according to the data attribute of the content of each control, a valid control on the current display interface of the source application, and obtain the display data according to content of each of the effective controls;
  • the valid control is a control that carries data that meets a third preset condition; the data attribute includes a text length in the control, a picture in the control occupies a size of a current interface, and an animation in the control occupies a current At least one of the sizes of the interfaces.
  • the processor is configured to count the content of each of the controls Determining, according to the attribute, a valid control on the current display interface of the source application, specifically:
  • the processor is specifically configured to: when the data attribute of the control is a text length in the control, and the text length in the control is greater than a preset first threshold, determine that the control is a valid control; or Determining that the control is a valid control when the data attribute of the control is that the picture in the control occupies a size of the current interface, and the picture in the control occupies a size of the current interface that is greater than a preset second threshold; Alternatively, when the data attribute of the control is the size of the current interface in the control, and the animation in the control occupies the size of the current interface is greater than a preset third threshold, determining that the control is a valid control ;
  • the third preset condition includes that the length of the text in the control is greater than the first threshold, the size of the picture in the control occupies the size of the current interface is greater than the second threshold, and the animation in the control occupies the current The size of the interface is greater than any of the third thresholds.
  • FIG. 1 is a schematic diagram of an application data sharing scenario according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an application data collection scenario according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing a hardware structure of a mobile phone according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of an Android operating system in the prior art according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of an Android operating system according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of Embodiment 1 of a method for processing application data according to an embodiment of the present disclosure
  • FIG. 7 is a schematic flowchart of Embodiment 2 of a method for processing application data according to an embodiment of the present disclosure
  • FIG. 8 is a schematic flowchart of Embodiment 3 of a method for processing application data according to an embodiment of the present disclosure
  • FIG. 9 is a schematic diagram 1 of a processing interface according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram 1 of a sharing selection interface according to an embodiment of the present invention.
  • FIG. 11 is a current display interface of shrimp music provided by an embodiment of the present invention.
  • FIG. 12 is a schematic diagram 2 of a processing interface according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram 2 of a sharing selection interface according to an embodiment of the present invention.
  • FIG. 14 is a schematic flowchart diagram of Embodiment 4 of a method for processing application data according to an embodiment of the present disclosure
  • FIG. 15 is a schematic flowchart of Embodiment 5 of a method for processing application data according to an embodiment of the present disclosure
  • FIG. 16 is a schematic structural diagram of Embodiment 1 of an apparatus for processing application data according to an embodiment of the present disclosure
  • FIG. 17 is a schematic structural diagram of Embodiment 2 of an apparatus for processing application data according to an embodiment of the present disclosure
  • FIG. 18 is a schematic structural diagram of Embodiment 3 of an apparatus for processing application data according to an embodiment of the present disclosure
  • FIG. 19 is a schematic structural diagram of Embodiment 4 of an apparatus for processing application data according to an embodiment of the present disclosure.
  • FIG. 20 is a schematic structural diagram of an embodiment of a terminal device according to an embodiment of the present invention.
  • the application data processing method provided by the embodiment of the present invention can be applied not only to a scenario in which application data is shared between any two applications on the terminal device, but also to a scenario in which the terminal device collects some data involved in the application program.
  • the application in the scenario shown in FIG. 1 and FIG. 2 is a user-oriented, user-accessible application. (Application, referred to as APP).
  • the process data generated by the user when using the APP is generally very valuable to the user.
  • the user hopes that the third-party application in the terminal device can use the process data to provide better service for the user.
  • the user chats with the friend in WeChat, and the chat content may include the user's personal information, travel information, picture information, etc.
  • Some or all of the data in the chat content can be shared with the third party application according to the chat content. For example, according to a message sent by a user to a friend in WeChat, "Tomorrow at 3 pm in Xinjiekou tomorrow", The schedule app creates a schedule reminder for the user at 3 pm tomorrow (that is, sharing the message content to the calendar application).
  • the prior art needs to collect the data of the application A, and the data can be collected according to the prior art, but the collected data can only be viewed through the application A, and the user's viewing mode is limited.
  • the data of the application A can be collected into a system-level application, and the user can directly view the system-level application without being restricted by the application A, and the viewing manner is various.
  • the specific process refer to the description of the following embodiments.
  • the terminal device may include a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the like.
  • FIG. 3 is a block diagram showing a part of the structure of the mobile phone 100 related to the embodiment of the present invention.
  • the mobile phone 100 includes an RF (Radio Frequency) circuit 110, a memory 120, other input devices 130, a display 140, a sensor 150, an audio circuit 160, and an input/output (I/O).
  • Components such as system 170, processor 180, and power supply 190.
  • display 140 is a User Interface (UI) and that handset 100 may include a user interface that is smaller than shown or less.
  • UI User Interface
  • the components of the mobile phone 100 will be specifically described below with reference to FIG. 3:
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 180 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile) Communication, Global System for Mobile Communications, GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone 100 by running software programs and modules stored in the memory 120.
  • the memory 120 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. Data created according to the use of the mobile phone 100 (such as audio data, phone book, etc.).
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • Other input devices 130 can be used to receive input numeric or character information, as well as generate key signal inputs related to user settings and function controls of the handset 100.
  • other input devices 130 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and light mice (the light mouse is not sensitive to display visual output).
  • function keys such as volume control buttons, switch buttons, etc.
  • trackballs mice, joysticks, and light mice (the light mouse is not sensitive to display visual output).
  • Other input devices 130 are coupled to other input device controllers 171 of I/O subsystem 170 for signal interaction with processor 180 under the control of other device input controllers 171.
  • the display screen 140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone 100, and can also accept user input.
  • the display screen 140 may include a display panel 141 and a touch panel 142.
  • the display panel 141 can be configured by using an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch panel 142 also referred to as a touch screen, a touch sensitive screen, etc., can collect contact or non-contact operations on or near the user (eg, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 142.
  • the operation in the vicinity of the touch panel 142 may also include a somatosensory operation; the operation includes a single-point control operation, a multi-point control operation, and the like, and drives the corresponding connection device according to a preset program.
  • the touch panel 142 may include two parts: a touch detection device and a touch controller. Wherein the touch detection device detects the user's touch Azimuth, posture, and detecting a signal from a touch operation, transmitting a signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into information that the processor can process, and sends the signal to the processor 180. And can receive commands from the processor 180 and execute them.
  • the touch panel 142 can be implemented by using various types such as resistive, capacitive, infrared, and surface acoustic waves, and the touch panel 142 can be implemented by any technology developed in the future.
  • the touch panel 142 can cover the display panel 141, and the user can display the content according to the display panel 141 (the display content includes, but is not limited to, a soft keyboard, a virtual mouse, a virtual button, an icon, etc.) on the display panel 141. Operation is performed on or near the covered touch panel 142.
  • the touch panel 142 After detecting the operation thereon or nearby, the touch panel 142 transmits to the processor 180 through the I/O subsystem 170 to determine user input, and then the processor 180 according to the user The input provides a corresponding visual output on display panel 141 via I/O subsystem 170.
  • the touch panel 142 and the display panel 141 are two independent components to implement the input and input functions of the mobile phone 100, in some embodiments, the touch panel 142 and the display panel 141 may be Integration and implementation of the input and output functions of the handset 100.
  • the handset 100 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile phone 100 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 gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the mobile phone 100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the handset 100.
  • the audio circuit 160 can transmit the converted audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into a signal, which is received by the audio circuit 160.
  • the audio data is converted to audio data, which is then output to the RF circuit 110 for transmission to, for example, another mobile phone, or the audio data is output to the memory 120 for further processing.
  • the I/O subsystem 170 is used to control external devices for input and output, and may include other device input controllers 171, sensor controllers 172, and display controllers 173. Optional, one or more other losses
  • the incoming control device controller 171 receives signals from other input devices 130 and/or sends signals to other input devices 130.
  • Other input devices 130 may include physical buttons (press buttons, rocker buttons, etc.), dials, slide switches, joysticks Click on the wheel, light mouse (the light mouse is a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by the touch screen). It is worth noting that other input control device controllers 171 can be connected to any one or more of the above devices.
  • Display controller 173 in I/O subsystem 170 receives signals from display 140 and/or transmits signals to display 140. After the display 140 detects the user input, the display controller 173 converts the detected user input into an interaction with the user interface object displayed on the display screen 140, ie, implements human-computer interaction. Sensor controller 172 can receive signals from one or more sensors 150 and/or send signals to one or more sensors 150.
  • the processor 180 is the control center of the handset 100, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the mobile phone 100 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the handset 100 also includes a power source 190 (such as a battery) that supplies power to the various components.
  • a power source 190 such as a battery
  • the power source can be logically coupled to the processor 180 via a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
  • the mobile phone 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • FIG. 3 introduces the structural framework of the terminal device by using the mobile phone as an example.
  • the method for processing application data according to the embodiment of the present invention also relates to the software architecture of the terminal device.
  • the method according to the embodiment of the present invention can be applied to an operating system such as an Android system, an OS system, a Darwin system, an RTXC system, a Linux system, a Unix system, a Windows system, an embedded operating system such as VxWorks.
  • an operating system such as an Android system, an OS system, a Darwin system, an RTXC system, a Linux system, a Unix system, a Windows system, an embedded operating system such as VxWorks.
  • the following is a system framework of the software operating system involved in the method of the embodiment of the present invention, taking the operating system as the Android system on the mobile phone as an example.
  • Android is an open source mobile operating system. As a mobile device platform, its hierarchy includes an operating system, middleware (Wareware) and applications. (Application), as shown in Figure 4, the Android operating system is divided into the following levels:
  • SDK Android Software Development Kit
  • the operating system itself also includes some basic applications, such as SMS, phone, photo viewer, web browser and other system level. application.
  • Android's application framework layer provides various application programming interfaces (APIs) for the application layer. It contains various controls required in the User Interface (UI) program, for example: Views (views) Components) include TextView, ListView, Buttons, WebView (Web Browser Control)
  • APIs application programming interfaces
  • This layer includes two parts: various libraries and runtime environment.
  • the various libraries are mainly C library, multimedia library, graphics processing engine, etc.
  • the runtime environment is mainly Dalvik virtual machine, which is different from the standard JAVA virtual machine.
  • the .dex file is a virtual machine that has been tailored and optimized for mobile devices.
  • Linux kernel development is based on the Linux kernel development, and its core system services, memory management, process management, network protocols and drivers all depend on the Linux kernel.
  • Linux kernel layer is the hardware layer of the phone described in Figure 2.
  • Figures 3 and 4 above illustrate the architecture of the terminal device from the perspective of hardware and software.
  • the APP currently running on the terminal device set as the source APP
  • the data can only be viewed by the login source APP when viewed in the future.
  • the method, device, and terminal device for processing application data provided by the embodiments of the present invention
  • the user's use requirements are not fully satisfied, the user experience is poor, and the human-computer interaction is not intelligent enough.
  • the Android system is taken as an example, and the embodiment of the present invention is based on the Android operating system architecture level shown in FIG. 4 above, and the application layer of the Android operating system is applied.
  • Improved with the Application Framework layer which adds an app with the ability to collect and share data from any application at the application layer, and adds content acquisition devices and content collections at the application framework level.
  • a sharing service device that integrates a content acquisition interface for acquiring data from the content acquisition device, and a sharing interface for receiving a sharing request from the third-party application and a collection interface for receiving a collection request of the third-party application.
  • the interface can be a software interface, such as an API interface.
  • the embodiment of the present invention obtains the display data of the source application on the current display interface by using the content obtaining device.
  • the display data of the source application in the prior art is acquired by the source application, and the display data is shared. And the collection is authorized by the source application.
  • the invention can obtain the display data by traversing the control of the source application on the current display interface.
  • the source application is a system-level application
  • the source application can also be obtained by calling the source application.
  • the data sharing interface "get data share()" obtains display data, and the obtained display data belongs to the APP of the collection and sharing function in FIG. 5, that is, the collection and sharing of the display data is not controlled by the source application.
  • the user can trigger the APP with the function of collecting and sharing the data of any application through the corresponding triggering instruction (the specific content of the triggering instruction can be referred to the description of the following embodiment), and the application is applied to the source through the APP.
  • the data is displayed for sharing or sharing, and the object to be shared is not limited to the authorization of the source APP, and the content of the collection may be collected to different APPs, and is not limited by the limitation that the prior art must view the collected content based on the source APP.
  • the APP having the function of collecting and sharing data of any application in the embodiment of the present invention can interact with the network server side to make the shared or collected content more
  • the specific process can be referred to the description of the following embodiments.
  • the executor of the following method embodiments may be a terminal device, and may also be a processing device of application data integrated in the terminal device, and the device may be implemented by software, hardware, or a combination of software and hardware.
  • the following method embodiment is described by taking an execution subject as a terminal device as an example.
  • FIG. 6 is a schematic flowchart of Embodiment 1 of a method for processing application data according to an embodiment of the present disclosure.
  • the embodiment relates to the terminal device triggering the terminal device to acquire the display data on the current display interface of the source application according to the trigger instruction input by the user, and processing the display data according to the generated processing interface and the operation of the user on the processing interface.
  • S101 Receive a trigger instruction input by a user.
  • the triggering instruction in the embodiment of the present invention may trigger the APP having the function of collecting and sharing data of any application in FIG. 5, and when the APP is triggered, it is equivalent to triggering the terminal device to obtain the source application in the current display.
  • the display data on the interface may be determined by the terminal device according to a trigger operation on the current display interface.
  • the terminal device may preset a trigger operation set, where the set may include one or more trigger operations, and the terminal device determines the current receiving as long as the trigger operation currently input by the user matches the trigger operation in the set. The trigger command to the user input.
  • the triggering operation in the foregoing triggering operation set may be a sliding operation along a preset trajectory, such as an upper sliding or pull-down operation on the current screen, or a sliding operation of the user along the S-shaped trajectory, etc.
  • the triggering operation may also be an operation of long pressing a virtual control, for example, a long press of the home button.
  • the triggering operation may also be a preset operation or a preset frequency click operation, such as a double click operation or a multiple click operation. and many more.
  • S102 Acquire display data of the source application on the current display interface according to the triggering instruction, and display a processing interface on the current display interface.
  • the processing interface includes event information and a processing control of the display data, and the processing control is configured to receive a data operation instruction of the user.
  • the terminal device acquires display data of the source application on the current display interface.
  • the display data may be part or all of the display of the source application on the current display interface.
  • the terminal device can obtain the display data of the source application on the current display interface by using the content obtaining device in FIG. 5, and transmit the content to the content collection and sharing function in FIG. 5 through the content collection and sharing service device.
  • the APP that is, the display data of the source application acquired by the terminal device on the current display interface is currently affiliated with the APP having the content collection and sharing function, which is out of the authorization restriction of the source application.
  • the source application is an application that is currently running on the terminal device and is being displayed.
  • the source application may be a system-level application, or may be a non-system-level application (a third-party application), where the system-level application is a non-deletable application integrated by the system, for example, a call, a short message, a gallery, and the like.
  • System-level applications are non-system-integrated and removable applications (that is, applications installed by users from the application market or on the network, such as WeChat, Weibo, QQ, etc.).
  • the terminal device After the terminal device obtains the display data of the source application on the current display interface, the terminal device generates a processing interface (in combination with FIG. 5 above, the triggering instruction triggers the APP startup with the function of collecting and sharing the data of any application,
  • the processing interface is suspended on the current display interface, and the processing interface includes event information of the display data and a processing control corresponding to the event information of the display data, where the processing control is used to receive the user's Data manipulation instructions.
  • the event information of the display data may be partial data in the display data, or may be all display data, the event information of the display data is related to the data type of the display data, and different types of display data, corresponding to The event information of the display data is different. For example, if the display data is music data of the music application, the event information of the display data may be the name of the music and the singer of the music. This embodiment does not do the content of the event information of the display data. limited.
  • the processing control may be at least one of a favorite control and a sharing control. If the user clicks on the favorite control to represent the data operation instruction input by the user as a favorite instruction, if the user clicks the sharing control, the data operation instruction input by the user is shared.
  • the instruction optionally, the processing control may also be a voice input control, and the user may input a corresponding voice instruction through the voice input control, and the terminal device parses the voice instruction to determine whether the voice instruction is a collection instruction or a sharing instruction; The embodiment of the present invention does not limit the type of the processing control.
  • S103 Process the display data according to a data operation instruction input by the user based on the processing control.
  • the terminal device when the terminal device receives the data operation instruction input by the user based on the processing control on the display interface, the terminal device processes the event information of the display data according to the data operation instruction. Since the terminal device has acquired the display data of the source application on the current display interface, the display data belongs to the APP having the content collection and sharing function in FIG. 5, and the APP with the content collection and sharing function displays the event of the data. The information is displayed on the processing interface, which is equivalent to the authorization limit of the display data, so that the terminal device can perform arbitrary processing on the event information of the display data on the processing interface according to the data operation instruction input by the user.
  • the event information of the display data is shared into any target APP, and the authorization of the source APP is not required or the authorization limit of the target APP is not considered, thereby greatly improving the user experience, or collecting the event information of the display data.
  • the user can view the data while viewing the display without having to log in to the source APP, which greatly simplifies the user's operation.
  • the embodiment of the present invention does not limit the type of the source application, that is, if the source application is a system-level application, since the event information of the display data is already displayed on the processing interface (equivalent to the display data has been separated from the source application).
  • the technical solution of the embodiment of the present invention can also collect or share the display data of the system-level application on the current display interface, without collecting or sharing the image by means of screen capture, which greatly saves processing overhead and terminal.
  • the memory of the device further enhances the intelligence of system-level applications and user interaction.
  • the terminal device acquires display data of the source application on the current display interface by using the received trigger instruction of the user, and displays an event including the display data on the current display interface.
  • the information and processing control processes the interface to process the display data according to a data manipulation instruction input by the user based on the processing control.
  • the terminal device since the terminal device has acquired the display data of the source application on the current display interface, and displays the event information of the display data on the processing interface of the APP having the content collection and sharing function,
  • the display data has been deviated from the authorization limit of the source application, so that the terminal device can perform arbitrary collection or sharing processing on the event information of the display data on the processing interface according to the data operation instruction input by the user, and the target of the display display data
  • the APP or the target APP sharing the display data is not restricted by the authorization of the source APP, which not only simplifies the operation of the user, but also greatly improves the sharing experience of the user, and makes the interaction of the application on the user and the terminal device more intelligent;
  • the embodiment of the invention can also collect or share the display data on the system-level application that cannot provide the sharing or collecting function, and save or save the processing space and the memory of the terminal device, thereby further improving the memory of the terminal device.
  • System level application and Intelligent user interaction since the terminal device has acquired the display data of the source application
  • FIG. 7 is a schematic flowchart of Embodiment 2 of a method for processing application data according to an embodiment of the present disclosure.
  • the embodiment relates to a specific process for determining, by the terminal device, the event information of the display data according to the data type of the display data after acquiring the display data of the source application on the current display interface. Based on the above embodiment, further, the processing is displayed on the current display interface in the above S102.
  • the process of the interface may include the following steps:
  • S201 Determine event information of the display data according to a data type of the display data.
  • the data type of the display data includes any one or more of data of a multimedia application, data of a social chat application, data of a reading application, data of a shopping application, and data of a delivery application.
  • the multimedia application may include a music application, a video application, an animation application, and the like, and the data of the multimedia application may include music type data, video type data, animation type data, and the like;
  • the social chat application for example, may be a WeChat application.
  • the application of the social chat application may include text data, picture data, and the like in the conversation content.
  • the reading application may be, for example, an e-book application, and may be an application of the text message or a video chat.
  • the data of the reading application may include the text content, the image content, and the like in the reading content.
  • the shopping application may be, for example, an application involving commodity trading such as Taobao and Jingdong, and the data of the shopping application may include the transaction.
  • the terminal device After obtaining the display data of the source application on the current display interface, the terminal device determines the data type of the display data, and further determines event information of the display data that should be displayed on the processing interface according to the display type of the display data.
  • the terminal device determines that the event information of the display data includes the name of the multimedia file and the creator and the performer of the multimedia file; for example, if the display data is data of the music application, the display data The event information is the name of the music and the singer of the music. If the display data is the data of the video application, the event information of the display data is the name of the video and the director or artist information of the video.
  • the terminal device determines that the event information of the display data includes time information, location information, and event content related to the schedule event in the conversation content; for example, if the display data is data of the short message application, If the content of the conversation of the short message application includes the schedule information agreed by the two parties, the event information of the display data may include the time information of the schedule event, the location information, and the corresponding event content. For example, refer to the interface shown in FIG. schematic diagram.
  • the terminal device determines the event of the display data.
  • the information includes the title of the read content and the source of the read content; for example, if the display data is the data of the news application, for example, the display data of the current display interface is applied to the headline today, assuming that the current display interface of the current headline application is a news content, the terminal device determines
  • the event information of the display data may include the title of the news and the source website of the news.
  • the terminal device determines that the event information of the display data includes the product name and the product price; if the display data is the data of the express application, determining that the event information of the display data includes the express delivery number Logistics information corresponding to the express delivery number.
  • S202 Display event information of the display data and the processing control on the processing interface.
  • the sharing mode of the embodiment of the present invention is not limited by the authorization of the source APP, and the collection mode and Collections are also not restricted by the source app.
  • the technical solution of the embodiment of the present invention also solves the technical problem that the system-level application in the prior art cannot provide the sharing and collecting function.
  • the display data in the system-level application does not need to be processed by the screen capture. , can also carry out the corresponding collection and sharing.
  • FIG. 8 is a schematic flowchart diagram of Embodiment 3 of a method for processing application data according to an embodiment of the present disclosure.
  • the processing control includes at least one of a sharing control and a favorite control.
  • the processing interface may be as shown in FIG. 9.
  • the sharing selection interface may be suspended on the current display interface of the source APP.
  • the embodiment relates to a specific process of the terminal device sharing the data applied by the source device on the current display interface.
  • the user inputs a data operation instruction based on the sharing control in the processing interface, and the data operation instruction is a sharing instruction.
  • the method may include the following steps:
  • S301 Receive a trigger instruction input by a user.
  • S302 Acquire display data of the source application on the current display interface according to the triggering instruction, and display a processing interface on the current display interface.
  • the processing interface includes event information and a processing control of the display data, and the processing control is configured to receive a data operation instruction of the user.
  • the processing control includes a separate sharing control, or two controls including a sharing control and a favorite control.
  • the source application when the source application is a system-level application, when the terminal device receives the user input sharing After the command, the source application will actively report the display data on the current display interface to the content obtaining device in FIG. 5, for example, the terminal device invokes the acquisition shared data interface getShareData() of the source application according to the triggering instruction, and obtains the The shared data interface obtains display data of the source application on the current display interface.
  • the content acquiring device in FIG. 5 may Triggering instructions and preset configurations, obtaining data of each control on the current display interface of the source application, for example, traversing the control of the current display interface of the source application, such as TextView, ImageView, WebView, obtaining the content of each control, and then according to the interface On the content of each control, get the above display data.
  • the preset configuration may be a version number of the source application, an identifier of the source application, a page identifier of the current display interface, a type of the control in the page, a keyword of each control, and a data type (music, picture, article) in the page. , video) and so on.
  • the display data may be data in a JSON format. Assume that you need to obtain the music name in the play interface of the shrimp music. In the Android system, you can get the currently playing music name “Broad Sky” by the id:player_song_name of the text space.
  • the preset configuration here can be:
  • the first preset condition includes: carrying the display data name, the data type of the display data, the data content of the display data, the source of the display data, and the user name related to the display data in the event information of the display data. At least one of them.
  • the source application may be a system-level application or a non-system-level application. Therefore, when the source application is a non-system-level application, the terminal device applies the current display interface from the source through the trigger instruction and the preset configuration.
  • the captured data captured may not satisfy the first preset condition corresponding to the data type of the currently displayed data (eg, the captured display data is incomplete), and the first preset condition may include the event information of the display data. Carrying at least one of a display data name, a data type of the display data, a data content of the display data, a source of the display data, and a user name related to the display data. It should be noted that different types of display data have different contents of the corresponding first preset conditions.
  • the first preset condition corresponding to the event information of the display data may include content of the display data (ie, lyrics and cover of the music), name of the music (name of the display data), The singer of the music (the user name associated with the display data), the lyrics link of the music (the source of the display data), assuming that the source application is the music application "Shrimp Music", the current display interface is shown in FIG.
  • the terminal device receives After the instruction is triggered, the display data of the current display interface is obtained from the source application, and the obtained display data includes ⁇ "name": “Broad Sky”, “artist”: “Beyond”, “source”: “Shrimp Music” ⁇ Then, the terminal device can display the event information of the display data on the processing interface, wherein the event information of the display data includes “Broad Sky” and “Beyond”, and can refer to the processing interface diagram shown in FIG. 12; when the user is in the processing interface After inputting the sharing instruction based on the sharing control, the terminal device determines event information of the display data according to the data type of the display data. Does not include link information of the music and the cover, therefore, determines the event information to the display data does not satisfy a first predetermined condition corresponds to said source application.
  • the data that the terminal device wants to share to the target sharing application can meet the corresponding first preset condition, that is, the data that is desired to be shared to the target sharing application is more detailed and perfect, thereby realizing effective sharing of data between applications. Therefore, the steps of S304 and S305 described below are performed.
  • S304 Determine, according to the determination result, an interface content to be displayed on the sharing selection interface.
  • S305 Display the sharing selection interface according to the interface content, and share the interface content to the first target sharing application according to the first target sharing application selected by the user.
  • S305 displays the sharing selection interface, that is, the display step of the sharing selection interface is not affected by S303, but the interface content in the sharing selection interface. It is related to the judgment result of S303.
  • the terminal device determines that the interface content of the sharing selection interface may include the event information of the display data and the target sharing application that matches the data type of the display data, and then displays the interface content on the sharing selection interface.
  • the target sharing application matching the data type may be a target sharing application such as WeChat, Weibo, browser, QQ, etc. capable of processing the reading data.
  • the terminal device when the event information of the display data does not meet the first preset condition corresponding to the data type of the display data, the terminal device sends a first data processing request that carries the display data to the network server, thereby causing the network server Obtaining event information of the display data that meets the foregoing first preset condition from the network side according to the first data processing request, and returning to the terminal device, where the terminal device determines that the interface content to be displayed on the sharing selection interface includes satisfying the first pre- The event information of the conditional display data and all the target sharing applications in the terminal device that match the data type of the display data.
  • the first data processing request sent by the terminal device to the network server carries ⁇ "name”: “Broad Sky”, “artist”: “Beyond”, “source”:”shrimp music” ⁇ , in order to query the web server side for more detailed content according to the display data (ie, event information of the display data satisfying the first preset condition), the web server according to the display data in the first data processing request to the terminal device Return the following:
  • the terminal device can obtain the information of the link "download_url” of the music and the cover image "pic_url", thereby obtaining the event information of the display data satisfying the first preset condition, and further the event of the display data satisfying the first preset condition.
  • the information and the target sharing APP are displayed together on the sharing selection interface.
  • the sharing selection interface in this example can be seen in FIG.
  • the target sharing application on the sharing selection interface is only related to the data type of the display data displayed by the source application on the current display interface, and is not restricted by the authorization of the source APP, that is, any All applications on the terminal device that match the data type of the display data described above can be used as a target sharing application.
  • the target sharing application capable of sharing the display data of the source APP can still be displayed in the sharing selection interface.
  • the user can select a sharing application as the first target based on the target sharing application in the sharing selection interface, so that the terminal device shares the application according to the first target sharing application selected by the user.
  • the display data on the selection interface is shared to the first target sharing application, so that the target sharing application can obtain more detailed sharing data, and the data sharing between the applications is effectively realized.
  • the display data sharing of the source application when the display data sharing of the source application is performed, the display data of the source APP can be arbitrarily shared without being restricted by the authorization of the source APP, thereby greatly improving the sharing experience of the user.
  • the method for processing the application data provided by the embodiment of the present invention, after the user inputs the sharing instruction based on the sharing control on the processing interface, determining whether the event information of the display data satisfies the display data according to the data type of the display data.
  • the first preset condition corresponding to the data type when the event information of the display data on the processing interface does not satisfy the first preset condition, the terminal device obtains the display data that satisfies the first preset condition by interacting with the network server.
  • the event information is displayed as the interface content to be displayed in the sharing selection interface, and the content of the interface is displayed on the sharing selection interface, so that when the user selects the first target sharing application, the display data satisfying the first preset condition is displayed.
  • the event information is shared to the first target sharing application, and the data sharing between the applications is realized, so that the target sharing application can better provide services for the user, and the user experience is greatly improved.
  • FIG. 14 is a schematic flowchart diagram of Embodiment 4 of a method for processing application data according to an embodiment of the present disclosure.
  • the processing interface in this embodiment can also be referred to the above FIG.
  • the embodiment relates to a specific process for the terminal device to collect the display data of the source application on the current display interface.
  • the user inputs a data operation instruction based on the favorite control in the processing interface, and the data operation instruction is a collection. instruction.
  • the method may specifically include the following steps:
  • S401 Receive a trigger instruction input by a user.
  • S402 Acquire display data of the source application on the current display interface according to the triggering instruction, and display a processing interface on the current display interface.
  • the processing interface includes the display data and a processing control, and the processing control is configured to receive a data operation instruction of a user.
  • the processing control includes a separate favorite control, or two controls including a sharing control and a favorite control.
  • a separate favorite control or two controls including a sharing control and a favorite control.
  • S403 If the user inputs the collection instruction based on the collection control, determining, according to the data type of the display data and the preset first mapping relationship, the first target collection application that matches the data type.
  • the first mapping relationship includes a correspondence between different data types and different types of target collection applications, and the target collection application is a system-level application integrated by the system and not undeletable.
  • the terminal device determines and displays according to the acquired data type of the display data of the source application on the current display interface and the preset first mapping relationship.
  • the first target collection application of the data type matching of the data is a system-level application integrated by the system and not undeletable, such as a memo application, a gallery application, and the like.
  • the display data is the text data of the reading application
  • the determined first target favorite application may be a text collection application, such as a memo application; optionally, the display data is a picture data of the reading application.
  • the determined first target favorite application is a favorite application of the image, for example, a gallery application; optionally, if the display data is data of the video application, the determined first target favorite application is a video collection application, such as a system. A system-level video application built into the system.
  • S404 Determine, according to the application type of the first target favorite application, whether event information of the display data meets a second preset condition corresponding to the first target favorite application.
  • the second preset condition includes: carrying the display data name, the data type of the display data, the data content of the display data, the source of the display data, and the user name related to the display data in the event information of the display data. At least one of them.
  • the source device may be a system-level application or a non-system-level application. Therefore, when the source application is a non-system-level application, the terminal device uses the triggering command and the preset configuration to view the current display interface from the source application.
  • the captured display data does not satisfy the first corresponding to the first target favorite application.
  • the case of two preset conditions (for example, the captured display data is incomplete).
  • the second preset condition may include at least the display data name, the data type of the display data, the data content of the display data, the source of the display data, and the user name related to the display data in the event information of the display data.
  • different types of target collection applications have different contents of the corresponding second preset conditions.
  • the corresponding second preset condition may include displaying the data.
  • the name (the title of the news), the source of the display data (the source website of the news or the uniform location identifier URL), the content of the display data (the picture content in the news), and in the above embodiment, when the display data is the data of the news application
  • the corresponding event information only includes the title of the news and the source website of the news, and therefore, it does not satisfy the second preset condition corresponding to the first target favorite application.
  • the terminal device hopes that the display data of the target collection application can meet the second preset condition corresponding to the target collection application, that is, the data that is desired to be collected to the target collection application is more detailed and perfect, thereby facilitating effective viewing by the user. Therefore, the steps of the above S404 are performed.
  • S405 Determine, according to the determination result, the collected content to be collected to the first target favorite application, and collect the collected content to the first target favorite application.
  • the terminal device determines that the favorite content to be collected to the first target favorite application includes the event information of the display data, thereby collecting the event information of the display data. To the first target collection application.
  • the terminal device sends a second data processing request that carries the display data to the network server, to obtain, by using the network server, that the second preset condition is met.
  • the event information of the data is displayed, and the favorite content to be stored in the first target favorite application includes the event information of the display data satisfying the second preset condition, thereby collecting the favorite content into the first target favorite application.
  • the user when the user needs to view the display data in the future, the user can view the first target collection application directly, without using the source application, greatly simplifying the operation of the user, even if the source application is a system-level application that does not support the collection function.
  • the embodiment of the present invention can still view the collected display data by using the first target collection application, because the embodiment of the present invention obtains the display data of the source application on the current display interface and displays the data before the data collection is performed.
  • the processing interface it is equivalent to the limitation that the display data has been separated from the source application, and therefore, the terminal device can be based on The data type of the display data that has been acquired is used to arbitrarily collect the display data.
  • the terminal device may also pop up a favorite selection interface, where the favorite selection interface includes a first target collection application, so that the user can click the first target collection application to collect the display data. To the first target collection application.
  • the method for processing application data determines a first target favorite application that matches the data type according to the data type of the display data and the preset first mapping relationship, and collects the application according to the first target.
  • the application type determines whether the event information of the display data meets the second preset condition corresponding to the first target favorite application, and interacts with the network server when the event information of the display data does not satisfy the second preset condition Obtaining event information of the display data that meets the second preset condition and collecting the event information in the first target collection application, so that the user can view the more complete data through the first target favorite application, and can view the source application without using the source application. , greatly simplifying the user's operation and improving the effectiveness of data collection.
  • FIG. 15 is a schematic flowchart of Embodiment 5 of a method for processing application data according to an embodiment of the present disclosure.
  • This embodiment relates to a specific process in which the terminal device obtains display data of the current display interface of the source application by using a control on the current display interface of the source application when the source application is a non-system application.
  • the method may specifically include the following steps:
  • S501 Determine, according to the data attribute of the content of each control, a valid control on the current display interface of the source application.
  • the valid control is a control that carries data that meets a third preset condition; the data attribute includes a text length in the control, a picture in the control occupies a size of a current interface, and an animation in the control At least one of the sizes of the current interface.
  • the terminal device acquires the content of each control on the current display interface of the source application according to the triggering instruction and the preset configuration of the user, first determining, according to the data attribute of the content of each control, carrying the first control Whether the content meets the third preset condition, and if so, the terminal device determines that the control is a valid control, thereby determining all valid controls on the current display interface of the source application.
  • the control in this embodiment is an interface element on the current display interface of the source application. For example, if the source application is WeChat and the current display interface is a WeChat chat interface, the chat interface as a whole and the chat interface Text content, images or time, and even emoticons inserted in text content are controls in this chat interface.
  • the foregoing data attribute may include at least one of a text length in the first control, a picture in the first control occupies a size of the current interface, and an animation in the first control occupies a size of the current interface, and the third pre-previously
  • the condition may include that the text length of the content in the control is greater than a preset first threshold, the size of the current interface in the control is greater than a preset second threshold, and the size of the current interface in the control is greater than a preset. Any of the third thresholds.
  • the terminal device determines, according to the data attribute of the content of each control, and the third preset condition, the valid control on the current display interface of the source application, which may be: if the data attribute of the content of the control is in the first control The length of the text, and the length of the text in the control is greater than the preset first threshold, determining that the content on the control meets the third preset condition, that is, determining that the control is a valid control; or, if the content of the control is a data attribute If the image in the control occupies the size of the current interface, and the image in the control occupies the size of the current interface is greater than the preset second threshold, determining that the content on the control meets the third preset condition, that is, determining the control The effective control; or, if the data property of the content of the control is the size of the current interface in the control, and the animation in the control occupies the size of the current interface is greater than a preset third threshold, then determine the The content satisfies the above third preset condition
  • S502 Acquire the display data according to content of each of the valid controls.
  • the terminal device can use the content of each valid control as a set to directly display the display data of the current display interface as a source; optionally, the terminal device can also integrate the content of each valid control obtained, and The integrated data is used as display data of the current display interface of the source application, and the display data belongs to the APP having the content collection and sharing function in FIG. 5, which is not restricted by the authorization of the source application.
  • the terminal device obtains the content on each control according to the data acquisition method carried by the control itself by traversing the control of the source application on the current display interface, and according to the content of each control
  • the data attribute determines the effective control of the source application on the current display interface, and then obtains the display data of the source application on the current display interface according to the content of each valid control, and the display data obtained by the method belongs to the content collection and the content in FIG.
  • the sharing function APP is not restricted by the authorization of the source application, so that the terminal device can share or collect the display data arbitrarily based on the APP having the content collection and sharing function, and the number of the display is displayed.
  • the target APP or the target APP sharing the display data it is not restricted by the authorization of the source APP, which not only simplifies the operation of the user, but also greatly improves the sharing and collection experience of the user, and makes the interaction between the application on the user and the terminal device more intelligent. Chemical.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
  • FIG. 16 is a schematic structural diagram of Embodiment 1 of an apparatus for processing application data according to an embodiment of the present invention.
  • the processing device can be a stand-alone terminal device, and can also be integrated in the terminal device, that is, the processing device can be implemented by software, hardware, or a combination of software and hardware.
  • the processing device for the application data includes: a receiving module 10, an obtaining module 11, a display module 12, and a processing module 13.
  • the receiving module 10 is configured to receive a trigger instruction input by the user;
  • the obtaining module 11 is configured to obtain, according to the triggering instruction, display data of the source application on the current display interface;
  • the display module 12 is configured to display a processing interface on the current display interface, where the processing interface includes event information and a processing control of the display data, where the processing control is configured to receive a data operation instruction of the user;
  • the processing module 13 is configured to process the display data according to a data operation instruction input by the user based on the processing control.
  • the device for processing the application data provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • FIG. 17 is a schematic structural diagram of Embodiment 2 of an apparatus for processing application data according to an embodiment of the present disclosure.
  • the display module 12 further includes a first determining unit 121 and a display unit 122.
  • the first determining unit 121 is configured to determine event information of the display data according to a data type of the display data;
  • the data type of the display data includes data of the multimedia application, data of the social chat application, and data of the read application. , shopping application data, express application data Any of them;
  • the display unit 122 is configured to display event information of the display data and the processing control on the processing interface.
  • the first determining unit 121 is specifically used for one or more of the following: when the display data is data of a multimedia application, determining event information of the display data includes a name of the multimedia file and the multimedia a creator and a performer of the file; when the display data is data of a social chat application, determining event information of the display data includes time information related to a schedule event in the conversation content, location information, and event content; When the display data is data of the reading application, determining event information of the display data includes reading a title of the content and a source of the reading content; and when the display data is data of the shopping application, determining event information of the display data The product name and the commodity price are included; when the display data is the data of the express application, the event information determining the display data includes the express delivery number and the logistics information corresponding to the express delivery number.
  • the device for processing the application data provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the processing control includes at least one of a sharing control and a favorite control.
  • FIG. 18 is a schematic structural diagram of Embodiment 3 of an apparatus for processing application data according to an embodiment of the present invention.
  • the processing module 13 specifically includes: a first determining unit 131, a second determining unit 132, and a sharing unit. 133;
  • the first determining unit 131 is configured to determine, according to the data type of the display data, whether the event information of the display data satisfies a first preset condition corresponding to a data type of the display data; a preset condition includes at least one of a display data name, a data type of the display data, a data content of the display data, a source of the display data, and a user name related to the display data, in the event information of the display data;
  • the second determining unit 132 is configured to determine, according to the determination result, an interface content to be displayed on the sharing selection interface
  • the display module 12 is further configured to display the sharing selection interface according to the interface content
  • the sharing unit 133 is configured to share the interface content to the first target sharing application according to the first target sharing application selected by the user.
  • the second determining unit 132 is specifically used for one or two of the following: when When the event information of the display data satisfies the first preset condition, determining that the interface content includes event information of the display data and a target sharing application that matches a data type of the display data; when the event of displaying data When the information does not meet the first preset condition, the first data processing request carrying the display data is sent to the network server, so that event information of the display data that meets the first preset condition is acquired by the network server, And determining that the interface content includes event information of the display data that satisfies the first preset condition and all target sharing applications in the terminal device that match the data type of the display data.
  • the device for processing the application data provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • FIG. 19 is a schematic structural diagram of Embodiment 4 of an apparatus for processing application data according to an embodiment of the present invention.
  • the processing module 13 includes:
  • the third determining unit 134 is configured to determine, according to the data type of the display data and the preset first mapping relationship, a first target favorite application that matches the data type; the first mapping relationship includes different data types. Corresponding relationship with different types of target collection applications, which are system-level applications integrated by the system and not undeletable;
  • the second determining unit 135 is configured to determine, according to the application type of the first target favorite application, whether the event information of the display data meets a second preset condition corresponding to the first target favorite application;
  • the second preset condition includes at least one of a display data name, a data type of the display data, a data content of the display data, a source of the display data, and a user name related to the display data, in the event information of the display data;
  • the collecting unit 136 is configured to determine, according to the determination result, the collected content to be collected to the first target favorite application, and collect the collected content to the first target favorite application.
  • the collecting unit 136 is specifically configured to: when the event information of the display data satisfies the second preset condition, determining that the favorite content includes event information of the display data And sending, by the network server, a second data processing request that carries the display data to obtain, by the network server, that the second preset is met, when the event information of the display data does not satisfy the second preset condition.
  • the conditional display event information of the data, and determining that the favorite content includes the event information of the display data satisfying the second preset condition.
  • the source application includes a system level application or a non-system level application
  • the non-system level Applications are applications that are not integrated with the system and can be deleted.
  • the obtaining module 11 is specifically configured to invoke the acquisition shared data interface getShareData() of the source application according to the triggering instruction, and obtain the display data by using the acquiring shared data interface. .
  • the acquiring module 11 is specifically configured to acquire, according to the triggering instruction and the preset configuration, each control on the current display interface of the source application.
  • the content, and the display data is obtained according to the content of each of the controls; wherein the control is an interface element on the current display interface, the preset configuration includes a version number of the source application, and the At least one of an application identifier of the source application, a page identifier of the current display interface, a control type of the control, and a data type of the display data.
  • the obtaining module 11 is specifically configured to determine, according to the data attribute of the content of each control, a valid control on the current display interface of the source application, and obtain the location according to the content of each of the effective controls. Displaying data; wherein the valid control is a control carrying data that satisfies a third preset condition; the data attribute includes a text length in the control, a picture in the control occupies a size of a current interface, The animation in the control occupies at least one of the sizes of the current interface.
  • the obtaining module 11 is specifically configured to: when the data attribute of the control is a text length in the control, and the text length in the control is greater than a preset first threshold, determine the control The effective control; or, when the data attribute of the control is the size of the current interface in the control, and the image in the control occupies the size of the current interface is greater than a preset second threshold, determining the The control is a valid control; or, when the data attribute of the control is the size of the current interface in the control, and the animation in the control occupies the size of the current interface is greater than a preset third threshold, then determining The control is a valid control;
  • the third preset condition includes that the length of the text in the control is greater than the first threshold, the size of the picture in the control occupies the size of the current interface is greater than the second threshold, and the animation in the control occupies the current The size of the interface is greater than any of the third thresholds.
  • the device for processing the application data provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • FIG. 20 is a schematic structural diagram of an embodiment of a terminal device according to an embodiment of the present invention.
  • the terminal device may include an input device 20, a processor 21 such as a CPU, a memory 22, at least one communication bus 23, and a display device 24.
  • Communication bus 23 is used to implement communication between components Letter connection.
  • the memory 22 may include a high speed RAM memory, and may also include a non-volatile memory NVM, such as at least one disk memory, in which various programs may be stored for performing various processing functions and implementing the method steps of the present embodiment;
  • the input device 20 is configured to provide an input interface to a user, receive an operation or an instruction input by the user, and the like.
  • the terminal device may further include a transceiver 25, where the transmitter 251 and the receiver 252 are integrated, and the receiver 252 may be a corresponding input interface having a communication function and a function for receiving information, and may also be a terminal.
  • the RF module or the baseband module on the device, the transmitter 251 may be a corresponding output interface having a communication function and a function of transmitting information, and may also be a radio frequency module or a baseband module on the terminal device.
  • the input device 20 is configured to receive a trigger instruction input by the user.
  • the processor 21 is configured to acquire display data of the source application on the current display interface according to the triggering instruction
  • a display device 24 configured to display a processing interface on the current display interface, where the processing interface includes event information and a processing control of the display data, where the processing control is configured to receive a data operation instruction of the user;
  • the processor 21 is further configured to process the display data according to a data operation instruction input by a user based on the processing control.
  • the terminal device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the processor 21 is further configured to determine, according to a data type of the display data, event information of the display data; the data type of the display data includes data of a multimedia application, data of a social chat application, and a reading application. Any one or more of the data, the data of the shopping application, and the data of the express application;
  • the display device 24 is specifically configured to display event information of the display data and the processing control on the processing interface.
  • processor 21 is further configured to determine the event information of the display data according to the data type of the display data, and specifically includes:
  • the processor 21 is specifically configured to use one or more of the following: when the display data is data of a multimedia application, determining event information of the display data includes a name of the multimedia file and a creator of the multimedia file Artist; when the display data is data of a social chat application, Determining the event information of the display data includes time information related to the schedule event in the conversation content, location information, and event content; when the display data is data of the reading application, determining event information of the display data includes reading the content a title and a source of the reading content; or, when the display data is data of a shopping application, determining event information of the display data includes a product name and a commodity price; when the display data is data of a express application, The event information for determining the display data includes a delivery order number and logistics information corresponding to the delivery order number.
  • the terminal device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the processing control includes at least one of a sharing control and a favorite control.
  • the processor 21 is configured to process the display data according to a data operation instruction input by the user based on the processing control, specifically including :
  • the processor 21 is configured to determine, according to the data type of the display data, whether the event information of the display data satisfies a first preset condition corresponding to a data type of the display data, and determine, according to the determination result, Displaying the interface content in the sharing selection interface; wherein the first preset condition includes the event data carrying the display data name, the data type of the display data, the data content of the display data, the source of the display data, and the event information of the display data At least one of the user names related to the display data;
  • the display device 24 is further configured to display the sharing selection interface according to the interface content
  • the processor 21 is further configured to share the interface content to the first target sharing application according to the first target sharing application selected by the user.
  • the processor 21 is configured to determine, according to the determination result, the interface content to be displayed on the sharing selection interface, which specifically includes:
  • the processor 21 is specifically configured to: when the event information of the display data satisfies the first preset condition, determine that the interface content includes event information and information of the display data. a target sharing application that matches the data type of the display data; when the event information of the display data does not satisfy the first preset condition, sending, by the transceiver 25, the first data carrying the display data to the network server Processing the request to acquire event information of the display data that meets the first preset condition by using the network server, and determining that the interface content includes the event information of the display data that meets the first preset condition, and the terminal device All data classes with the display data Type matching target sharing app.
  • the terminal device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the processor 21 is configured to process the according to a data operation instruction input by the user based on the processing control.
  • Display data including:
  • the processor 21 is configured to determine, according to the data type of the display data and a preset first mapping relationship, a first target favorite application that matches the data type, and according to the first target favorite application Determining, by the application type, whether the event information of the display data meets a second preset condition corresponding to the first target favorite application; and determining, according to the determination result, the favorite content to be collected to the first target favorite application, and The collected content is collected to the first target collection application;
  • the first mapping relationship includes a correspondence between different data types and different types of target collection applications, where the target collection application is a system-level application integrated by the system and cannot be deleted;
  • the second preset condition includes
  • the event information of the display data carries at least one of a display data name, a data type of the display data, a data content of the display data, a source of the display data, and a user name related to the display data.
  • the processor 21 is configured to determine, according to the determination result, the collection content to be collected to the first target collection application, which specifically includes:
  • the processor 21 is specifically configured to: when the event information of the display data meets the second preset condition, determine that the favorite content includes event information of the display data; When the event information of the display data does not satisfy the second preset condition, the second data processing request carrying the display data is sent to the network server by the transceiver 25 to obtain the second pre-satisfaction obtained by the network server. Setting event information of the display data, and determining that the favorite content includes event information of the display data satisfying the second preset condition.
  • the terminal device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the source application comprises a system level application or a non-system level application, where the non-system level application is a non-system integrated and deletable application.
  • the display data of the source application on the current display interface includes:
  • the processor 21 is specifically configured to invoke the acquisition shared data interface getShareData() of the source application according to the triggering instruction, and obtain the display data by using the acquired shared data interface.
  • the processor 21 is configured to obtain display data of the source application on the current display interface according to the triggering instruction, and specifically includes:
  • the processor 21 is configured to acquire content of each control on the current display interface of the source application according to the triggering instruction and a preset configuration, and obtain the display according to the content of each control. data;
  • the control is an interface element on the current display interface, and the preset configuration includes a version number of the source application, an application identifier of the source application, a page identifier of the current display interface, and the control At least one of a control type, a data type of the display data.
  • processor 21 is configured to acquire the display data according to the content of each control, and specifically includes:
  • the processor 21 is configured to determine, according to the data attribute of the content of each control, a valid control on the current display interface of the source application, and obtain the display data according to content of each of the effective controls. ;
  • the valid control is a control that carries data that meets a third preset condition; the data attribute includes a text length in the control, a picture in the control occupies a size of a current interface, and an animation in the control occupies a current At least one of the sizes of the interfaces.
  • the processor 21 is configured to determine, according to the data attribute of the content of each control, a valid control on the current display interface of the source application, specifically:
  • the processor 21 is configured to determine that the control is a valid control when a data attribute of the control is a text length in the control, and a text length in the control is greater than a preset first threshold; Or determining that the control is a valid control when the data attribute of the control is that the picture in the control occupies the size of the current interface, and the picture in the control occupies a size of the current interface that is greater than a preset second threshold. Or, when the data attribute of the control is the size of the current interface in the control, and the animation in the control occupies the size of the current interface is greater than a preset third threshold, determining that the control is valid Control
  • the third preset condition includes that the length of the text in the control is greater than the first threshold, the size of the picture in the control is greater than the second threshold, and the animation in the control The size of the current interface is greater than any of the third thresholds.

Landscapes

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

Abstract

本发明提供一种应用数据的处理方法、装置和终端设备。该方法包括:接收用户的触发指令;根据触发指令获取源应用在当前显示界面上的显示数据,并显示处理界面;根据用户的数据操作指令处理显示数据,从而使得终端设备可以对显示数据的事件信息进行任意的收藏或分享处理,不仅简化了用户的操作,也大大提高了用户的体验效果。

Description

应用数据的处理方法、装置和终端设备 技术领域
本发明涉及通信技术,尤其涉及一种应用数据的处理方法、装置和终端设备。
背景技术
随着移动设备的不断发展,各式各样的应用程序(Application,简称APP)出现在移动设备上,为用户的生活提供方便和娱乐。
目前,部分第三方应用的开发商为第三方应用赋予了内容收藏和内容分享的功能,用户可以将自己关注的内容进行收藏或者分享给其他的应用,例如,假设用户当前查看的是“今日头条”APP上的一条新闻,用户需要将这条新闻分享到“微信”APP中,则用户点击“今日头条”APP上的分享按钮后,会弹出该应用展示的分享界面,用户可以在此界面选择需要分享的目标应用,即选择分享给“微信”APP。
上述应用内容的收藏和分享功能,均是应用自身提供的功能,因此,对于收藏的数据,只能在源APP中查看,用户操作繁琐;对于内容的分享,则受源APP的授权影响,例如淘宝(源APP)中的商品链接,无法分享到微信(目标APP)中。故而,现有技术中的应用数据的收藏和分享方式,无法完全满足用户的使用要求,用户体验较差。
发明内容
本发明实施例提供的应用数据的处理方法、装置和终端设备,用以解决现有技术中应用数据的收藏和分享方式,无法完全满足用户的使用要求,用户体验较差,使得人机交互不够智能化的技术问题。
第一方面,本发明实施例提供一种应用数据的处理方法,包括:
接收用户输入的触发指令;
根据所述触发指令获取源应用在当前显示界面上的显示数据,并在所述当前显示界面上显示处理界面;其中,所述处理界面包括所述显示数据的事件信 息和处理控件,所述处理控件用于接收用户的数据操作指令;
根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据。
该第一方面所提供的应用数据的处理方法,终端设备通过接收到的用户的触发指令,获取源应用在当前显示界面上的显示数据,并在所述当前显示界面上显示包括该显示数据的事件信息和处理控件处理界面,从而根据用户基于该处理控件输入的数据操作指令,处理上述显示数据。本发明实施例提供的方法,由于终端设备已经获取到源应用在当前显示界面上的显示数据,并将该显示数据的事件信息显示在上述具有内容收藏与分享功能的APP的处理界面上,相当于该显示数据已经脱离源应用的授权限制,这样使得终端设备根据用户输入的数据操作指令,可以对该处理界面上的显示数据的事件信息进行任意的收藏或者分享处理,其收藏显示数据的目标APP或者分享显示数据的目标APP不受源APP的授权限制,不仅简化了用户的操作,也大大提高了用户的分享体验,使得用户和终端设备上的应用程序的交互更加智能化;另外,本发明实施例还可以将无法提供分享或者收藏功能的***级应用上的显示数据进行收藏或者分享处理,无需通过截屏保存图片的方式收藏或者分享,大大节省了处理开销和终端设备的内存,进一步提高了***级应用与用户交互的智能化。
在一种可能的设计中,所述在当前显示界面上显示处理界面,具体包括:
根据显示数据的数据类型,确定所述显示数据的事件信息;所述显示数据的数据类型包括多媒体应用的数据、社交聊天应用的数据、阅读应用的数据、购物应用的数据、快递类应用的数据中的任一种或多种;
将所述显示数据的事件信息和所述处理控件显示在所述处理界面上。
在一种可能的设计中,所述根据显示数据的数据类型,确定所述显示数据的事件信息,具体包括以下一种或多种:
若所述显示数据为多媒体应用的数据,则确定所述显示数据的事件信息包括多媒体文件的名称和所述多媒体文件的创作者和演出者;
若所述显示数据为社交聊天应用的数据,则确定所述显示数据的事件信息包括对话内容中的涉及日程事件的时间信息、地点信息以及事件内容;
若所述显示数据为阅读应用的数据,则确定所述显示数据的事件信息包括阅读内容的标题和所述阅读内容的来源;
若所述显示数据为购物应用的数据,则确定所述显示数据的事件信息包括商品名称和商品价格;
若所述显示数据为快递类应用的数据,则确定所述显示数据的事件信息包括快递单号和所述快递单号对应的物流信息。
在一种可能的设计中,若用户基于分享控件输入数据操作指令,则所述根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
根据所述显示数据的数据类型,判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件;其中,所述第一预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
根据判断结果确定待显示在分享选择界面的界面内容;
根据所述界面内容显示所述分享选择界面,并根据用户所选择的第一目标分享应用,将所述界面内容分享至所述第一目标分享应用。
在一种可能的设计中,所述根据判断结果确定待显示在分享选择界面的界面内容,具体包括以下一种或两种:
若所述显示数据的事件信息满足所述第一预设条件,则确定所述界面内容包括所述显示数据的事件信息和与所述显示数据的数据类型匹配的目标分享应用;
若所述显示数据的事件信息不满足所述第一预设条件,则向网络服务器发送携带所述显示数据的第一数据处理请求,以通过所述网络服务器获取满足所述第一预设条件的显示数据的事件信息,并确定所述界面内容包括所述满足第一预设条件的显示数据的事件信息和终端设备中所有与所述显示数据的数据类型匹配的目标分享应用。
上述各可能的设计中所提供的应用数据的处理方法,当用户在处理界面上基于分享控件输入了分享指令之后,通过根据上述显示数据的数据类型判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件,在确定处理界面上的显示数据的事件信息不满足第一预设条件时,终端设备通过与网络服务器的交互获得获得满足第一预设条件的显示数据的 事件信息,作为待显示在分享选择界面的界面内容,并将该界面内容显示在分享选择界面上,从而当用户选择了第一目标分享应用后,将该满足第一预设条件的显示数据的事件信息分享至第一目标分享应用,实现应用之间的数据的有效性分享,使得目标分享应用能够更好的为用户提供服务,大大提高了用户的体验效果。
在一种可能的设计中,若用户基于收藏控件输入数据操作指令,则所述根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
根据所述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用;所述第一映射关系包括不同的数据类型与不同类型的目标收藏应用的对应关系,所述目标收藏应用为***所集成的且不可删除的***级应用;
根据所述第一目标收藏应用的应用类型,判断所述显示数据的事件信息是否满足所述第一目标收藏应用对应的第二预设条件;其中,所述第二预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,并将所述收藏内容收藏至所述第一目标收藏应用。
在一种可能的设计中,所述根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,具体包括以下一种或多种:
若所述显示数据的事件信息满足所述第二预设条件,则确定所述收藏内容包括所述显示数据的事件信息;
若所述显示数据的事件信息不满足所述第二预设条件,则向网络服务器发送携带所述显示数据的第二数据处理请求,以通过所述网络服务器获取满足所述第二预设条件的显示数据的事件信息,并确定所述收藏内容包括所述满足第二预设条件的显示数据的事件信息。
上述各可能的设计中所提供的应用数据的处理方法,通过根据上述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用,并根据第一目标收藏应用的应用类型,判断该显示数据的事件 信息是否满足该第一目标收藏应用对应的第二预设条件,并在该显示数据的事件信息不满足第二预设条件时,通过与网络服务器进行交互,获取满足第二预设条件的显示数据的事件信息并收藏至第一目标收藏应用中,从而使得用户可以通过该第一目标收藏应用查看到较为完善的数据,并且无需通过源应用即可查看,大大简化了用户的操作,也提高了数据收藏的有效性。
在一种可能的设计中,若所述源应用为***级应用,则所述根据所述触发指令获取源应用在当前显示界面上的显示数据,具体包括:
根据所述触发指令调用所述源应用的获取共享数据接口getShareData(),通过所述获取共享数据接口获取所述显示数据。
在一种可能的设计中,若所述源应用为非***级应用,则所述根据所述触发指令获取源应用在当前显示界面上的显示数据,具体包括:
根据所述触发指令和预设配置,获取所述源应用的当前显示界面上的每个控件的内容;其中,所述控件为所述当前显示界面上的界面元素,所述预设配置包括所述源应用的版本号、所述源应用的应用标识、所述当前显示界面的页面标识、所述控件的控件类型、所述显示数据的数据类型中的至少一个;
根据所述每个控件的内容,获取所述显示数据。
在一种可能的设计中,所述根据所述每个控件的内容,获取所述显示数据,具体包括:
根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件;所述有效控件为携带满足第三预设条件的数据的控件;所述数据属性包括所述控件中的文本长度、所述控件中的图片占当前界面的大小、所述控件中的动画占当前界面的大小中的至少一个;
根据每个所述有效控件的内容,获取所述显示数据。
在一种可能的设计中,所述根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,具体包括:
若所述控件的数据属性为所述控件中的文本长度,且所述控件中内容的文本长度大于预设的第一阈值,则确定所述控件为有效控件;
或者,
若所述控件的数据属性为所述控件中的图片占当前界面的大小,且所述控件中的图片占当前界面的大小大于预设的第二阈值,则确定所述控件为有 效控件;
或者,
若所述控件的数据属性为所述控件中的动画占当前界面的大小,且所述控件中的动画占当前界面的大小大于预设的第三阈值,则确定所述控件为有效控件;
其中,所述第三预设条件包括所述控件中内容的文本长度大于所述第一阈值、所述控件中的图片占当前界面的大小大于所述第二阈值、所述控件中的动画占当前界面的大小大于所述第三阈值中的任一个。
上述各可能的设计中所提供的方法,终端设备通过遍历源应用在当前显示界面上的控件,根据控件自身携带的数据获取方法获取每个控件上的内容,并根据每个控件的内容的数据属性确定源应用在当前显示界面上的有效控件,进而根据每个有效控件的内容获得源应用在当前显示界面上的显示数据,通过该方法获得的显示数据隶属于图5中具有内容收藏与分享功能的APP,其不受源应用的授权限制,从而使得终端设备基于具有内容收藏与分享功能的APP能够将该显示数据进行任意的分享或者收藏,其收藏显示数据的目标APP或者分享显示数据的目标APP不受源APP的授权限制,不仅简化了用户的操作,也大大提高了用户的分享和收藏体验,使得用户和终端设备上的应用程序的交互更加智能化。
第二方面,本发明实施例提供一种应用数据的处理装置,包括:
接收模块,用于接收用户输入的触发指令;
获取模块,用于根据所述触发指令获取源应用在当前显示界面上的显示数据;
显示模块,用于在所述当前显示界面上显示处理界面;其中,所述处理界面包括所述显示数据的事件信息和处理控件,所述处理控件用于接收用户的数据操作指令;
处理模块,用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据。
在一种可能的设计中,所述显示模块,具体包括:
第一确定单元,用于根据显示数据的数据类型,确定所述显示数据的事件信息;所述显示数据的数据类型包括多媒体应用的数据、社交聊天应用的 数据、阅读应用的数据、购物应用的数据、快递类应用的数据中的任一种或多种;
显示单元,用于将所述显示数据的事件信息和所述处理控件显示在所述处理界面上。
在一种可能的设计中,所述第一确定单元,具体用于以下一种或多种:当所述显示数据为多媒体应用的数据时,确定所述显示数据的事件信息包括多媒体文件的名称和所述多媒体文件的创作者和演出者;具体用于当所述显示数据为社交聊天应用的数据时,确定所述显示数据的事件信息包括对话内容中的涉及日程事件的时间信息、地点信息以及事件内容;当所述显示数据为阅读应用的数据时,确定所述显示数据的事件信息包括阅读内容的标题和所述阅读内容的来源;当所述显示数据为购物应用的数据时,确定所述显示数据的事件信息包括商品名称和商品价格;当所述显示数据为快递类应用的数据时,确定所述显示数据的事件信息包括快递单号和所述快递单号对应的物流信息。
在一种可能的设计中,所述处理控件包括分享控件、收藏控件中的至少一个。
在一种可能的设计中,若用户基于所述分享控件输入数据操作指令,所述处理模块,具体包括:第一判断单元、第二确定单元和分享单元;
所述第一判断单元,用于根据所述显示数据的数据类型,判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件;其中,所述第一预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
所述第二确定单元,用于根据判断结果确定待显示在分享选择界面的界面内容;
所述显示模块,还用于根据所述界面内容显示所述分享选择界面;
所述分享单元,用于根据用户所选择的第一目标分享应用,将所述界面内容分享至所述第一目标分享应用。
在一种可能的设计中,所述第二确定单元,具体用于以下一种或两种:当所述显示数据的事件信息满足所述第一预设条件时,确定所述界面内容包 括所述显示数据的事件信息和与所述显示数据的数据类型匹配的目标分享应用;当所述显示数据的事件信息不满足所述第一预设条件时,向网络服务器发送携带所述显示数据的第一数据处理请求,以通过所述网络服务器获取满足所述第一预设条件的显示数据的事件信息,并确定所述界面内容包括所述满足第一预设条件的显示数据的事件信息和终端设备中所有与所述显示数据的数据类型匹配的目标分享应用。
在一种可能的设计中,若用户基于所述收藏控件输入数据操作指令,则所述处理模块,包括:
第三确定单元,用于根据所述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用;所述第一映射关系包括不同的数据类型与不同类型的目标收藏应用的对应关系,所述目标收藏应用为***所集成的且不可删除的***级应用;
第二判断单元,用于根据所述第一目标收藏应用的应用类型,判断所述显示数据的事件信息是否满足所述第一目标收藏应用对应的第二预设条件;其中,所述第二预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
收藏单元,用于根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,并将所述收藏内容收藏至所述第一目标收藏应用。
在一种可能的设计中,所述收藏单元,具体用于以下一种或多种:当所述显示数据的事件信息满足所述第二预设条件时,确定所述收藏内容包括所述显示数据的事件信息;当所述显示数据的事件信息不满足所述第二预设条件时,向网络服务器发送携带所述显示数据的第二数据处理请求,以通过所述网络服务器获取满足所述第二预设条件的显示数据的事件信息,并确定所述收藏内容包括所述满足第二预设条件的显示数据的事件信息。
在一种可能的设计中,所述源应用包括***级应用或者非***级应用,所述非***级应用为非***所集成且可删除的应用。
在一种可能的设计中,若所述源应用为***级应用,所述获取模块,具体用于根据所述触发指令调用所述源应用的获取共享数据接口getShareData(),通过所述获取共享数据接口获取所述显示数据。
在一种可能的设计中,若所述源应用为非***级应用,则所述获取模块,具体用于根据所述触发指令和预设配置,获取所述源应用的当前显示界面上的每个控件的内容,并根据所述每个控件的内容,获取所述显示数据;
其中,所述控件为所述当前显示界面上的界面元素,所述预设配置包括所述源应用的版本号、所述源应用的应用标识、所述当前显示界面的页面标识、所述控件的控件类型、所述显示数据的数据类型中的至少一个。
在一种可能的设计中,所述获取模块,具体用于根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,并根据每个所述有效控件的内容,获取所述显示数据;
其中,所述有效控件为携带满足第三预设条件的数据的控件;所述数据属性包括所述控件中的文本长度、所述控件中的图片占当前界面的大小、所述控件中的动画占当前界面的大小中的至少一个。
在一种可能的设计中,所述获取模块,具体用于当所述控件的数据属性为所述控件中的文本长度,且所述控件中的文本长度大于预设的第一阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的图片占当前界面的大小,且所述控件中的图片占当前界面的大小大于预设的第二阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的动画占当前界面的大小,且所述控件中的动画占当前界面的大小大于预设的第三阈值时,则确定所述控件为有效控件;
其中,所述第三预设条件包括所述控件中的文本长度大于所述第一阈值、所述控件中的图片占当前界面的大小大于所述第二阈值、所述控件中的动画占当前界面的大小大于所述第三阈值中的任一个。
上述第二方面以及第二方面的各可能的设计所提供的应用数据的处理装置,其有益效果可以参照上述第一方面以及第一方面的各可能的设计所带来的有益效果,在此不再赘述。
第三方面,本发明实施例提供一种终端设备,包括:
输入设备,用于接收用户输入的触发指令
处理器,用于根据所述触发指令获取源应用在当前显示界面上的显示数据;
显示设备,用于在所述当前显示界面上显示处理界面;其中,所述处理界 面包括所述显示数据的事件信息和处理控件,所述处理控件用于接收用户的数据操作指令;
所述处理器,还用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据。
在一种可能的设计中,所述处理器,还用于根据显示数据的数据类型,确定所述显示数据的事件信息;所述显示数据的数据类型包括多媒体应用的数据、社交聊天应用的数据、阅读应用的数据、购物应用的数据、快递类应用的数据中的任一种或多种;
所述显示设备,具体用于将所述显示数据的事件信息和所述处理控件显示在所述处理界面上。
在一种可能的设计中,所述处理器,还用于根据显示数据的数据类型,确定所述显示数据的事件信息,具体包括:
所述处理器,具体用于以下一种或者多种:当所述显示数据为多媒体应用的数据时,确定所述显示数据的事件信息包括多媒体文件的名称和所述多媒体文件的创作者和演出者;当所述显示数据为社交聊天应用的数据时,确定所述显示数据的事件信息包括对话内容中的涉及日程事件的时间信息、地点信息以及事件内容;当所述显示数据为阅读应用的数据时,确定所述显示数据的事件信息包括阅读内容的标题和所述阅读内容的来源;当所述显示数据为购物应用的数据时,确定所述显示数据的事件信息包括商品名称和商品价格;当所述显示数据为快递类应用的数据,确定所述显示数据的事件信息包括快递单号和所述快递单号对应的物流信息。
在一种可能的设计中,所述处理控件包括分享控件、收藏控件中的至少一个。
在一种可能的设计中,若用户基于所述分享控件输入数据操作指令,则所述处理器,用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
所述处理器,具体用于根据所述显示数据的数据类型,判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件,并根据判断结果确定待显示在分享选择界面的界面内容;其中,所述第一预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类 型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
所述显示设备,还用于根据所述界面内容显示所述分享选择界面;
所述处理器,还用于根据用户所选择的第一目标分享应用,将所述界面内容分享至所述第一目标分享应用。
在一种可能的设计中,所述终端设备还包括收发器;
所述处理器,用于根据判断结果确定待显示在分享选择界面的界面内容,具体包括:
所述处理器,具体用于以下一种或者两种:当所述显示数据的事件信息满足所述第一预设条件时,确定所述界面内容包括所述显示数据的事件信息和与所述显示数据的数据类型匹配的目标分享应用;当所述显示数据的事件信息不满足所述第一预设条件时,通过所述收发器向网络服务器发送携带所述显示数据的第一数据处理请求,以通过所述网络服务器获取满足所述第一预设条件的显示数据的事件信息,并确定所述界面内容包括所述满足第一预设条件的显示数据的事件信息和终端设备中所有与所述显示数据的数据类型匹配的目标分享应用。
在一种可能的设计中,若用户基于所述收藏控件输入数据操作指令,所述处理器,用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
所述处理器,具体用于根据所述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用,并根据所述第一目标收藏应用的应用类型,判断所述显示数据的事件信息是否满足所述第一目标收藏应用对应的第二预设条件;以及,根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,并将所述收藏内容收藏至所述第一目标收藏应用;
其中,所述第一映射关系包括不同的数据类型与不同类型的目标收藏应用的对应关系,所述目标收藏应用为***所集成的且不可删除的***级应用;所述第二预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个。
在一种可能的设计中,所述处理器,用于根据判断结果确定待收藏至所 述第一目标收藏应用的收藏内容,具体包括:
所述处理器,具体用于以下一种或者多种:当所述显示数据的事件信息满足所述第二预设条件时,确定所述收藏内容包括所述显示数据的事件信息;当所述显示数据的事件信息不满足所述第二预设条件时,通过收发器向网络服务器发送携带所述显示数据的第二数据处理请求,以通过所述网络服务器获取满足所述第二预设条件的显示数据的事件信息,并确定所述收藏内容包括所述满足第二预设条件的显示数据的事件信息。
在一种可能的设计中,所述源应用包括***级应用或者非***级应用,所述非***级应用为非***所集成且可删除的应用。
在一种可能的设计中,若所述源应用为***级应用,所述处理器,用于根据所述触发指令获取源应用在当前显示界面上的显示数据,具体包括:
所述处理器,具体用于根据所述触发指令调用所述源应用的获取共享数据接口getShareData(),通过所述获取共享数据接口获取所述显示数据。
在一种可能的设计中,若所述源应用为非***级应用,所述处理器,用于根据所述触发指令获取源应用在当前显示界面上的显示数据,具体包括:
所述处理器,具体用于根据所述触发指令和预设配置,获取所述源应用的当前显示界面上的每个控件的内容,并根据所述每个控件的内容,获取所述显示数据;
其中,所述控件为所述当前显示界面上的界面元素,所述预设配置包括所述源应用的版本号、所述源应用的应用标识、所述当前显示界面的页面标识、所述控件的控件类型、所述显示数据的数据类型中的至少一个。
在一种可能的设计中,所述处理器,用于根据所述每个控件的内容,获取所述显示数据,具体包括:
所述处理器,具体用于根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,并根据每个所述有效控件的内容,获取所述显示数据;
所述有效控件为携带满足第三预设条件的数据的控件;所述数据属性包括所述控件中的文本长度、所述控件中的图片占当前界面的大小、所述控件中的动画占当前界面的大小中的至少一个。
在一种可能的设计中,所述处理器,用于根据所述每个控件的内容的数 据属性,确定所述源应用当前显示界面上的有效控件,具体包括:
所述处理器,具体用于当所述控件的数据属性为所述控件中的文本长度,且所述控件中的文本长度大于预设的第一阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的图片占当前界面的大小,且所述控件中的图片占当前界面的大小大于预设的第二阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的动画占当前界面的大小,且所述控件中的动画占当前界面的大小大于预设的第三阈值时,确定所述控件为有效控件;
其中,所述第三预设条件包括所述控件中的文本长度大于所述第一阈值、所述控件中的图片占当前界面的大小大于所述第二阈值、所述控件中的动画占当前界面的大小大于所述第三阈值中的任一个。
上述第三方面以及第三方面的各可能的设计所提供的终端设备,其有益效果可以参照上述第一方面以及第一方面的各可能的设计所带来的有益效果,在此不再赘述。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的应用程序数据共享场景示意图;
图2为本发明实施例提供的应用程序数据收藏场景示意图;
图3为本发明实施例提供的手机的硬件结构框图;
图4为本发明实施例提供的现有技术中的安卓操作***的结构框图;
图5为本发明实施例提供的安卓操作***的结构框图;
图6为本发明实施例提供的应用数据的处理方法实施例一的流程示意图;
图7为本发明实施例提供的应用数据的处理方法实施例二的流程示意图;
图8为本发明实施例提供的应用数据的处理方法实施例三的流程示意图;
图9为本发明实施例提供的处理界面示意图一;
图10为本发明实施例提供的分享选择界面示意图一;
图11为本发明实施例提供的虾米音乐的当前显示界面;
图12为本发明实施例提供的处理界面示意图二;
图13为本发明实施例提供的分享选择界面示意图二;
图14为本发明实施例提供的应用数据的处理方法实施例四的流程示意图;
图15为本发明实施例提供的应用数据的处理方法实施例五的流程示意图;
图16为本发明实施例提供的应用数据的处理装置实施例一的结构示意图;
图17为本发明实施例提供的应用数据的处理装置实施例二的结构示意图;
图18为本发明实施例提供的应用数据的处理装置实施例三的结构示意图;
图19为本发明实施例提供的应用数据的处理装置实施例四的结构示意图;
图20为本发明实施例提供的终端设备实施例的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供的应用数据的处理方法,不仅可以适用于终端设备上任意两个应用程序之间共享应用数据的场景,还可以适用于终端设备对应用程序中涉及的一些数据进行收藏的场景,参见图1所示的应用程序数据共享场景示意图和图2所示的应用程序数据收藏场景图,图1和图2所示的场景中的应用程序为面向用户、可供用户操作的应用程序(Application,简称APP)。
图1中,用户在使用APP时产生过程数据对用户来说一般是很有价值的, 用户希望终端设备中的第三方应用能够利用这些过程数据为用户提供更好的服务,例如,用户在微信中和朋友聊天,聊天内容可能包含了用户的个人信息、行程信息、图片信息等,因此可以根据这些聊天内容将这些聊天内容中的部分或者全部数据共享给第三方应用,比如,根据用户在微信中对某个朋友发送的一条消息“明天下午3点在新街口吃饭”,可以在日程APP中为用户创建一个明天下午3点的日程提醒(即将消息内容共享至日程应用)。图2中,现有技术要对应用A的数据进行收藏,可以将该数据按照现有技术的方式收藏,但查看所收藏的数据时只能通过应用A查看,用户的查看方式受限,图2中可以将应用A的数据收藏至某一***级应用中,用户可以直接通过***级应用查看,无需受到应用A的限制,查看方式多样,具体过程参见下述实施例的描述。
另外,本发明实施例所涉及的终端设备可以包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等。
以移动终端为手机为例,图3示出的是与本发明实施例相关的手机100的部分结构的框图。参考图3,手机100包括、RF(Radio Frequency,射频)电路110、存储器120、其他输入设备130、显示屏140、传感器150、音频电路160、输入输出(Input or Output,简称I/O)子***170、处理器180、以及电源190等部件。本领域技术人员可以理解,图3中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。本领领域技术人员可以理解显示屏140属于用户界面(UI,User Interface),且手机100可以包括比图示或者更少的用户界面。
下面结合图3对手机100的各个构成部件进行具体的介绍:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器180处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile  communication,全球移动通讯***)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行手机100的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图象播放功能等)等;存储数据区可存储根据手机100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
其他输入设备130可用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号输入。具体地,其他输入设备130可包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)等中的一种或多种。其他输入设备130与I/O子***170的其他输入设备控制器171相连接,在其他设备输入控制器171的控制下与处理器180进行信号交互。
显示屏140可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单,还可以接受用户输入。具体的,显示屏140可包括显示面板141,以及触控面板142。其中显示面板141可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。触控面板142,也称为触摸屏、触敏屏等,可收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板142上或在触控面板142附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型。),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板142可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸 方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器能够处理的信息,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板142,也可以采用未来发展的任何技术实现触控面板142。进一步的,触控面板142可覆盖显示面板141,用户可以根据显示面板141显示的内容(该显示内容包括但不限于,软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板141上覆盖的触控面板142上或者附近进行操作,触控面板142检测到在其上或附近的操作后,通过I/O子***170传送给处理器180以确定用户输入,随后处理器180根据用户输入通过I/O子***170在显示面板141上提供相应的视觉输出。虽然在图,2中,触控面板142与显示面板141是作为两个独立的部件来实现手机100的输入和输入功能,但是在某些实施例中,可以将触控面板142与显示面板141集成而实现手机100的输入和输出功能。
手机100还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在手机100移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路160、扬声器161,麦克风162可提供用户与手机100之间的音频接口。音频电路160可将接收到的音频数据转换后的信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,麦克风162将收集的声音信号转换为信号,由音频电路160接收后转换为音频数据,再将音频数据输出至RF电路110以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。
I/O子***170用来控制输入输出的外部设备,可以包括其他设备输入控制器171、传感器控制器172、显示控制器173。可选的,一个或多个其他输 入控制设备控制器171从其他输入设备130接收信号和/或者向其他输入设备130发送信号,其他输入设备130可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)。值得说明的是,其他输入控制设备控制器171可以与任一个或者多个上述设备连接。所述I/O子***170中的显示控制器173从显示屏140接收信号和/或者向显示屏140发送信号。显示屏140检测到用户输入后,显示控制器173将检测到的用户输入转换为与显示在显示屏140上的用户界面对象的交互,即实现人机交互。传感器控制器172可以从一个或者多个传感器150接收信号和/或者向一个或者多个传感器150发送信号。
处理器180是手机100的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机100的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
手机100还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理***与处理器180逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗等功能。
尽管未示出,手机100还可以包括摄像头、蓝牙模块等,在此不再赘述。
综上,上述图3从硬件组成角度介绍了以手机为例的终端设备的结构框架,本发明实施例涉及的应用数据的处理方法,也涉及终端设备的软件层面的***架构,需要说明的是,本发明实施例涉及的方法,可以适用于安卓(Android)***、OS***、Darwin***、RTXC***、Linux***、Unix***、Windows***、嵌入式操作***例如VxWorks等操作***。同样的,基于上述图3以手机为例的基础上,下述图4以操作***为手机上的Android***为例,介绍本发明实施例的方法所涉及的软件操作***的***框架。
具体的,Android是一种开源的移动操作***,作为一个移动设备平台,其层次结构包含了一个操作***,中间件(Middle Ware)和应用程序 (Application),如图4所示,Android操作***分为如下几个层次:
(1)应用程序层(Application)
开发人员可以基于安卓软件开发工具包(Software Development Kit,简称SDK)开发应用程序,同时操作***本身也包含了一些基础应用,例如短信、电话、图片查看器、网页(Web)浏览器等***级应用。
(2)应用程序框架层(Application Framework)
Android的应用程序框架层为应用层提供各种应用程序接口(Application Programming Interface,简称API),它包含了用户界面(User Interface,简称UI)程序中所需的各种控件,例如:Views(视图组件)包括TextView(文本控件)、ListView(列表)、Buttons(按钮)、WebView(网页浏览器控件)
(3)***库和运行时环境层(Libraries&Android Runtime)
这一层包括各种库和运行时环境两部分,各种库主要是C库、多媒体库、图形处理引擎等;运行时环境主要是Dalvik虚拟机,它和标准的JAVA虚拟机不同,它执行的是.dex文件,是针对移动设别进行过裁剪和优化的虚拟机。
(4)Linux内核层(Kernel)
Android是基于Linux内核开发,其核心***服务、内存管理、进程管理、网络协议及驱动都依赖于Linux内核。该Linux内核层的下方即就是图2介绍的手机的硬件层。
上述图3和图4从硬件和软件的角度分别阐述了终端设备的架构。现有技术中,对于终端设备上当前正在运行的APP(设为源APP),用户如果想要收藏该APP中涉及的相关数据,这些数据在未来查看时,只能通过登录源APP进行查看,例如,假设用户当前查看的是“今日头条”APP上的一条新闻,用户想要将这条新闻进行收藏,但收藏后的新闻之后只能在“今日头条”APP中查看,用户操作繁琐;另外,如果用户想要将源APP中的一些数据分享至其他的APP中,则是否能够分享受限于源APP的授权,例如,淘宝(源APP)中的商品链接,因为淘宝APP的开发商没有授权将淘宝的数据分享至微信APP中,则此时该商品链接就无法分享到微信(目标APP)中。故,现有技术中的应用数据的收藏和分享方式,无法完全满足用户的使用要求,用户体验较差。
因此,本发明实施例提供的应用数据的处理方法、装置和终端设备,旨 在解决现有技术中应用数据的收藏和分享方式,无法完全满足用户的使用要求,用户体验较差,使得人机交互不够智能化的技术问题。
参见图5所示,为了解决现有技术中的上述问题,以安卓***为例,本发明实施例基于上述图4所示的安卓操作***架构层次,对Android操作***的应用程序层(Application)和应用程序框架层(Application Framework)进行了改进,即在应用程序层增加了一个具有对任意应用的数据进行的收藏和分享的功能的APP,并在应用程序框架层增加内容获取装置、内容收藏与分享服务装置,该内容收藏与分享服务装置集成了从内容获取装置获取数据的内容获取接口、以及接收来自第三方应用的分享请求的分享接口和接收第三方应用的收藏请求的收藏接口,这些接口可以为软件接口,例如API接口。基于图5,本发明实施例通过内容获取装置获取到源应用在当前显示界面上的显示数据(需要说明的是,现有技术中的源应用的显示数据由源应用获取,该显示数据的分享和收藏受源应用的授权控制),可选的,本发明可以通过遍历源应用在当前显示界面上的控件来获得显示数据,在源应用为***级应用时,还可以通过调用源应用的获取数据共享接口“get data share()”获得显示数据,所获得显示数据为图5中的收藏和分享的功能的APP所属,即该显示数据的收藏和分享不受源应用的授权控制。故而,用户可以通过相应的触发指令(触发指令的具体内容该可以参见下述实施例的描述)触发该具有对任意应用的数据进行的收藏和分享的功能的APP,通过该APP对源应用的显示数据进行收藏或者分享,其分享的对象不受限于源APP的授权,其收藏的内容可以收藏至不同的APP,也不受限于现有技术必须基于源APP查看收藏内容的限制。同时,在对安卓操作***架构层次改进的同时,本发明实施例中的具有对任意应用的数据进行的收藏和分享的功能的APP可以通过与网络服务器侧进行交互,使得分享或者收藏的内容更加符合用户的需求,具体过程可以参见下述实施例的描述。
可选的,下述方法实施例的执行主体可以是终端设备,还可以是集成在终端设备中的应用数据的处理装置,该装置可以通过软件、硬件或者软硬结合的方式实现。可选的,下述方法实施例以执行主体为终端设备为例来进行说明。
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个 具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
图6为本发明实施例提供的应用数据的处理方法实施例一的流程示意图。本实施例涉及的是终端设备根据用户输入的触发指令触发终端设备获取源应用当前显示界面上的显示数据,并根据所生成的处理界面以及用户在该处理界面上的操作,处理显示数据,以使显示数据的处理不受源APP的授权限制的具体过程。如图6所示,该方法包括如下步骤:
S101:接收用户输入的触发指令。
具体的,本发明实施例中的触发指令,可以触发上述图5中具有对任意应用的数据进行收藏和分享的功能的APP,在触发该APP时,相当于触发终端设备获取源应用在当前显示界面上的显示数据,该触发指令可以是终端设备根据在当前显示界面上的触发操作确定的。可选的,终端设备内部可以预设一触发操作集合,该集合中可以包括一个或多个触发操作,只要用户当前输入的触发操作与该集合中的触发操作匹配,则终端设备就确定当前接收到用户输入的触发指令。可选的,上述触发操作集合中的触发操作可以是沿预设轨迹滑动的操,例如在当前屏幕上的上滑或者下拉操作、或者用户沿S形轨迹的滑动操作等等,可选的,上述触发操作还可以是长按虚拟控件的操作,例如,长按home键的操作,可选的,上述触发操作还可以是预设次数或者预设频率的点击操作,例如双击操作、多击操作等等。
S102:根据所述触发指令获取源应用在当前显示界面上的显示数据,并在所述当前显示界面上显示处理界面。
其中,所述处理界面包括所述显示数据的事件信息和处理控件,所述处理控件用于接收用户的数据操作指令。
具体的,当终端设备接收到用户输入的触发指令,终端设备获取源应用在当前显示界面上的显示数据,可选的,该显示数据可以是源应用在当前显示界面上的部分或者全部的显示数据。可选的,终端设备可以通过上述图5中的内容获取装置获取到源应用在当前显示界面上的显示数据,并通过内容收藏与分享服务装置传输给上述图5中的具有内容收藏与分享功能的APP,即终端设备所获取的源应用在当前显示界面上的显示数据当前隶属于上述具有内容收藏与分享功能的APP,其脱离源应用的授权限制。本发明实施例中所涉及的 源应用,为当前在终端设备上运行并正在进行显示的应用。可选的,该源应用可以***级应用,还可以是非***级应用(第三方应用),该***级应用为***所集成的不可删除的应用,例如,通话、短信、图库等应用,该非***级应用为非***所集成且可删除的应用(即用户从应用市场或者网络上安装的应用,例如微信、微博、QQ等应用。
当终端设备获得源应用在当前显示界面上的显示数据之后,终端设备生成一处理界面(结合上述图5,上述触发指令触发上述具有对任意应用的数据进行的收藏和分享的功能的APP启动,该APP显示一处理界面),该处理界面悬浮在当前显示界面之上,该处理界面包括上述显示数据的事件信息以及与该显示数据的事件信息对应的处理控件,该处理控件用于接收用户的数据操作指令。可选的,上述显示数据的事件信息可以是显示数据中的部分数据,还可以是全部的显示数据,该显示数据的事件信息与显示数据的数据类型相关,不同类型的显示数据,其对应的显示数据的事件信息不同,例如,如果显示数据为音乐应用的音乐数据,则该显示数据的事件信息可以为音乐的名称和音乐的歌手,本实施例对显示数据的事件信息的内容并不做限定。
可选的,该处理控件可以是收藏控件和分享控件中的至少一个,若用户点击收藏控件表征用户输入的数据操作指令为收藏指令,若用户点击分享控件则表征用户输入的数据操作指令为分享指令,可选的,上述处理控件还可以是语音输入控件,用户可以通过该语音输入控件输入相应的语音指令,由终端设备解析该语音指令,确定该语音指令是收藏指令还是分享指令;综上,本发明实施例对处理控件的类型并不做限定。
S103:根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据。
具体的,当终端设备接收到用户基于上述显示界面上的处理控件所输入的数据操作指令,终端设备根据该数据操作指令处理上述显示数据的事件信息。由于上述终端设备已经获取到源应用在当前显示界面上的显示数据,该显示数据隶属于上述图5中具有内容收藏与分享功能的APP,具有内容收藏与分享功能的APP将该显示数据的事件信息显示在处理界面上,相当于该显示数据已经脱离源应用的授权限制,这样使得终端设备根据用户输入的数据操作指令,可以对该处理界面上的显示数据的事件信息进行任意的处理,例 如,将该显示数据的事件信息分享至任意的目标APP中,无需获得源APP的授权或者也无需考虑目标APP的授权限制,大大提高了用户的体验度,或者将该显示数据的事件信息收藏至其他的APP中,使得用户在查看在显示数据时无需登录源APP就可以查看,极大的简化了用户的操作。
另外,本发明实施例对源应用的类型不做限制,也就是说,若源应用当***级应用,由于该显示数据的事件信息已经显示在处理界面上(相当于该显示数据已经脱离源应用的授权限制),则本发明实施例的技术方案也可以将***级应用在当前显示界面上的显示数据进行收藏或者分享,无需通过截屏保存图片的方式收藏或者分享,大大节省了处理开销和终端设备的内存,进一步提高了***级应用与用户交互的智能化。
本发明实施例提供的应用数据的处理方法,终端设备通过接收到的用户的触发指令,获取源应用在当前显示界面上的显示数据,并在所述当前显示界面上显示包括该显示数据的事件信息和处理控件处理界面,从而根据用户基于该处理控件输入的数据操作指令,处理上述显示数据。本发明实施例提供的方法,由于终端设备已经获取到源应用在当前显示界面上的显示数据,并将该显示数据的事件信息显示在上述具有内容收藏与分享功能的APP的处理界面上,相当于该显示数据已经脱离源应用的授权限制,这样使得终端设备根据用户输入的数据操作指令,可以对该处理界面上的显示数据的事件信息进行任意的收藏或者分享处理,其收藏显示数据的目标APP或者分享显示数据的目标APP不受源APP的授权限制,不仅简化了用户的操作,也大大提高了用户的分享体验,使得用户和终端设备上的应用程序的交互更加智能化;另外,本发明实施例还可以将无法提供分享或者收藏功能的***级应用上的显示数据进行收藏或者分享处理,无需通过截屏保存图片的方式收藏或者分享,大大节省了处理开销和终端设备的内存,进一步提高了***级应用与用户交互的智能化。
图7为本发明实施例提供的应用数据的处理方法实施例二的流程示意图。本实施例涉及的是终端设备在获取到源应用在当前显示界面上的显示数据之后,根据显示数据的数据类型,确定所述显示数据的事件信的具体过程。在上述实施例的基础上,进一步地,上述S102中在当前显示界面上显示处理 界面的过程,可以包括如下步骤:
S201:根据显示数据的数据类型,确定所述显示数据的事件信息。
其中,所述显示数据的数据类型包括多媒体应用的数据、社交聊天应用的数据、阅读应用的数据、购物应用的数据、快递类应用的数据中的任一种或多种。
可选的,上述多媒体应用可以包括音乐应用、视频应用、动画应用等,则该多媒体应用的数据可以包括音乐类型数据、视频类型数据、动画类型数据等;上述社交聊天应用,例如可以是微信应用、短信应用、QQ应用等涉及用户进行语音或者文本或者视频聊天的应用,该社交聊天应用的数据可以包括对话内容中的文本数据、图片数据等;上述阅读应用,例如可以是电子书应用、可以浏览新闻的应用等,该阅读应用的数据可以包括阅读内容中的文本内容、图片内容等;上述购物应用,例如可以是淘宝、京东等涉及商品交易的应用,该购物应用的数据可以包括交易的商品名称、商品所属的商家、商品的价格等;上述快递类应用,例如可以是快递100等涉及物流信息的应用,该快递类应用的数据可以是快递的物品名称、单号等信息。
终端设备在获取到源应用在当前显示界面上的显示数据之后,确定该显示数据的数据类型,进而根据该显示数据的显示类型确定应该在处理界面上进行显示的该显示数据的事件信息,具体的可以包括以下一种或者多种:
当上述显示数据为多媒体应用的数据,则终端设备确定该显示数据的事件信息包括多媒体文件的名称和多媒体文件的创作者和演出者;例如,若显示数据为音乐应用的数据,则该显示数据的事件信息为音乐的名称和音乐的歌手,若显示数据为视频应用的数据,则该显示数据的事件信息为该视频的名称和该视频的导演或者演出者信息。
若上述显示数据为社交聊天应用的数据,则终端设备确定该显示数据的事件信息包括对话内容中的涉及日程事件的时间信息、地点信息以及事件内容;例如,假设显示数据为短信应用的数据,若该短信应用的对话内容中包括了双方约定的日程信息,则该显示数据的事件信息则可以包括该日程事件的时间信息、地点信息以及相应的事件内容,例如可以参见图9所示的界面示意图。
若上述显示数据为阅读应用的数据,则终端设备确定该显示数据的事件 信息包括阅读内容的标题和阅读内容的来源;例如假设显示数据为新闻应用的数据,例如今日头条应用当前显示界面的显示数据,假设今日头条应用当前显示界面显示是一个新闻内容,则终端设备确定该显示数据的事件信息就可以包括新闻的标题和新闻的来源网站。
若上述显示数据为购物应用的数据,则终端设备确定该显示数据的事件信息包括商品名称和商品价格;若上述显示数据为快递类应用的数据,则确定该显示数据的事件信息包括快递单号和所述快递单号对应的物流信息。
S202:将所述显示数据的事件信息和所述处理控件显示在所述处理界面上。
下面将分别从收藏和分享两个方面介绍本发明实施例具体的技术方案,基于下述实施例的方案可以明显看出本发明实施例中的分享方式不受源APP的授权限制,收藏方式和收藏内容也不受源APP的限制。并且,本发明实施例的技术方案也解决了现有技术中的***级应用无法提供分享和收藏功能的技术问题,通过下述实施例的技术方案,***级应用中的显示数据无需通过截屏处理,也能进行相应的收藏和分享。
图8为本发明实施例提供的应用数据的处理方法实施例三的流程示意图。在上述实施例的基础上,上述处理控件包括分享控件、收藏控件中的至少一个,上述处理界面可以参见图9所示,分享选择界面可以悬浮在源APP的当前显示界面上,例如可以参见图10所示的分享选择界面。本实施例涉及的是终端设备分享源应用在当前显示界面上的数据的具体过程,本实施例中,用户基于上述处理界面中分享控件输入数据操作指令,该数据操作指令即为分享指令。结合上述实施例,该方法可以包括如下步骤:
S301:接收用户输入的触发指令。
S302:根据所述触发指令获取源应用在当前显示界面上的显示数据,并在所述当前显示界面上显示处理界面。
其中,所述处理界面包括所述显示数据的事件信息和处理控件,所述处理控件用于接收用户的数据操作指令。
本实施例中,该处理控件包括单独的分享控件、或者、包括分享控件和收藏控件两个控件。
可选的,当源应用为***级应用时,当终端设备接收到用户输入的分享 指令后,源应用会主动将当前显示界面上的显示数据上报给图5中的内容获取装置,例如,终端设备会根据上述触发指令调用该源应用的获取共享数据接口getShareData(),通过该获取共享数据接口获取源应用在当前显示界面上的显示数据。
可选的,当源应用为非***级应用时,当终端设备接收到用户输入的分享指令后,由于待第三方应用的界面没有实现getShareData()接口,因此图5中内容获取装置会根据上述触发指令和预设配置,获取源应用的当前显示界面上的每个控件的数据,例如遍历源应用当前显示界面的控件,如TextView、ImageView、WebView,获取每个控件的内容,进而根据该界面上每个控件的内容,获取上述显示数据。该预设配置可以为源应用的版本号、源应用的标识、当前显示界面的页面标识、该页面中的控件类型、每个控件的关键字、该页面中的数据类型(音乐、图片、文章、视频)等。可选的,该显示数据可以为JSON格式的数据。假定需要获取虾米音乐的播放界面中的音乐名,在Android***中,可以通过文本空间的id:player_song_name获取当前播放的音乐名称“海阔天空”,这里的预设配置具体可以为:
Figure PCTCN2016096108-appb-000001
S303:若用户基于处理界面上分享控件输入分享指令,则根据所述显示数据的数据类型,判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件。
其中,所述第一预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个。
具体的,正是因为上述源应用可能为***级应用也可能为非***级应用,因此会存在当源应用为非***级应用时,终端设备通过触发指令和预设配置从源应用当前显示界面中抓取的显示数据可能不满足与当前显示数据的数据类型对应的第一预设条件(例如抓取的显示数据不完整),该第一预设条件可以包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个。需要说明的是,不同类型的显示数据,其对应的第一预设条件的内容不同。例如,当显示数据为音乐应用的数据时,该显示数据的事件信息对应的第一预设条件可以包括显示数据的内容(即音乐的歌词和封面)、音乐的名称(显示数据的名称)、音乐的歌手(与所述显示数据有关的用户名)、音乐的歌词链接(显示数据的来源),假设源应用为音乐应用“虾米音乐”,当前显示界面参见图11所示,终端设备接收到触发指令之后,从该源应用中获取当前显示界面的显示数据,假设获取到的显示数据包括{"name":"海阔天空","artist":"Beyond","source":"虾米音乐"};然后终端设备可以将该显示数据的事件信息显示在处理界面上,其中显示数据的事件信息包括“海阔天空”和“Beyond”,可以参见图12所示的处理界面示意图;当用户在上述处理界面上基于分享控件输入了分享指令之后,终端设备根据该显示数据的数据类型,判断该显示数据的事件信息中并不包括音乐的链接以及封面信息,因此,确定该显示数据的事件信息并不满足上述源应用对应的第一预设条件。
基于上述原因,终端设备希望分享至目标分享应用的数据能够满足对应的第一预设条件,即希望分享至目标分享应用的数据更加详细和完善,从而实现应用间数据的有效分享。因此,执行下述S304和S305的步骤。
S304:根据判断结果确定待显示在分享选择界面的界面内容。
S305:根据所述界面内容显示所述分享选择界面,并根据用户所选择的第一目标分享应用,将所述界面内容分享至所述第一目标分享应用。
具体的,从S304和S305的步骤可以看出,无论S303的判断结果如何,S305均会显示分享选择界面,即分享选择界面的显示步骤不受S303的影响,只是该分享选择界面中的界面内容与S303的判断结果有关系。
可选的,当上述显示数据的事件信息满足与该显示数据的数据类型对应 的第一预设条件时,终端设备确定分享选择界面的界面内容可以包括上述显示数据的事件信息和与上述显示数据的数据类型匹配的目标分享应用,进而将该界面内容显示在分享选择界面上。可选的,当显示数据的数据类型为阅读应用的数据,则与该数据类型匹配的目标分享应用可以为能够处理阅读数据的微信、微博、浏览器、QQ等目标分享应用。
可选的,当上述显示数据的事件信息不满足该显示数据的数据类型对应的第一预设条件时,则终端设备向网络服务器发送携带该显示数据的第一数据处理请求,从而使得网络服务器根据该第一数据处理请求从网络侧获取满足上述第一预设条件的显示数据的事件信息,并返回给终端设备,进而终端设备确定待显示在分享选择界面上的界面内容包括满足第一预设条件的显示数据的事件信息和终端设备中所有与所述显示数据的数据类型匹配的目标分享应用。继续以上述源应用为音乐应用“虾米音乐”为例,终端设备向网络服务器发送的第一数据处理请求携带{"name":"海阔天空","artist":"Beyond","source":"虾米音乐"},以根据该显示数据到网络服务器侧查询更详细的内容(即满足第一预设条件的显示数据的事件信息),网络服务器根据第一数据处理请求中的显示数据向终端设备返回如下内容:
Figure PCTCN2016096108-appb-000002
这样终端设备就可以得到音乐的链接“download_url”和封面图“pic_url”的信息,从而得到满足第一预设条件的显示数据的事件信息,进而将该满足第一预设条件的显示数据的事件信息和目标分享APP一起显示在分享选择界面上,可选的,该例子中的分享选择界面可以参见图13所示。
需要说明的是,分享选择界面上的目标分享应用,其仅与源应用在当前显示界面上显示的显示数据的数据类型有关,其并不受源APP的授权限制,也就是说,凡是能与上述显示数据的数据类型匹配的终端设备上的所有应用,均可以作为目标分享应用。同时,即使源APP本身不提供分享功能(例如源APP本身为***级应用),分享选择界面中也依然可以显示能够分享源APP的显示数据的目标分享应用。
当终端设备向用户展示了分享选择界面之后,用户可以基于分享选择界面中的目标分享应用,选择一个作为第一目标分享应用,从而终端设备根据用户选择的该第一目标分享应用,将上述分享选择界面上的显示数据分享至第一目标分享应用,从而使得目标分享应用能够获得更详细的分享数据,实现了应用之间的数据的有效分享。基于此,本发明实施例在进行源应用的显示数据分享时,可以不受源APP的授权限制,将源APP的显示数据进行任意的分享,大大提高了用户的分享体验。
本发明实施例提供的应用数据的处理方法,当用户在处理界面上基于分享控件输入了分享指令之后,通过根据上述显示数据的数据类型判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件,在确定处理界面上的显示数据的事件信息不满足第一预设条件时,终端设备通过与网络服务器的交互获得获得满足第一预设条件的显示数据的事件信息,作为待显示在分享选择界面的界面内容,并将该界面内容显示在分享选择界面上,从而当用户选择了第一目标分享应用后,将该满足第一预设条件的显示数据的事件信息分享至第一目标分享应用,实现应用之间的数据的有效性分享,使得目标分享应用能够更好的为用户提供服务,大大提高了用户的体验效果。
图14为本发明实施例提供的应用数据的处理方法实施例四的流程示意图。本实施例中的处理界面也可以参见上述图9所示。本实施例涉及的是终端设备将源应用在当前显示界面上的显示数据进行收藏的具体过程,本实施例中,用户基于上述处理界面中收藏控件输入数据操作指令,该数据操作指令即为收藏指令。结合上述实施例,该方法具体可以包括如下步骤:
S401:接收用户输入的触发指令。
S402:根据所述触发指令获取源应用在当前显示界面上的显示数据,并在所述当前显示界面上显示处理界面。
其中,所述处理界面包括所述显示数据和处理控件,所述处理控件用于接收用户的数据操作指令。
本实施例中,该处理控件包括单独的收藏控件、或者、包括分享控件和收藏控件两个控件。终端设备根据触发指令获取源应用在当前显示界面上的显示数据可以参见上述S302中的描述,在此不再赘述。
S403:若用户基于上述收藏控件输入收藏指令,则根据所述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用。
所述第一映射关系包括不同的数据类型与不同类型的目标收藏应用的对应关系,所述目标收藏应用为***所集成的且不可删除的***级应用。
具体的,终端设备在上述处理界面上基于收藏控件输入了收藏指令之后,终端设备根据所获取的源应用在当前显示界面上的显示数据的数据类型和预设的第一映射关系,确定与显示数据的数据类型匹配的第一目标收藏应用,该第一目标收藏应用为***所集成的且不可删除的***级应用,例如备忘录应用、图库应用等。可选的,假设上述显示数据为阅读应用的文本数据,则所确定的第一目标收藏应用就可以为文本的收藏应用,例如备忘录应用;可选的,假设上述显示数据为阅读应用的图片数据,则所确定的第一目标收藏应用为图片的收藏应用,例如图库应用;可选的,假设上述显示数据为视频应用的数据,则所确定的第一目标收藏应用为视频收藏应用,例如***中内置的***级的视频应用。
S404:根据所述第一目标收藏应用的应用类型,判断所述显示数据的事件信息是否满足所述第一目标收藏应用对应的第二预设条件。
其中,所述第二预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个。
可选的,由于上述源应用可能为***级应用也可能为非***级应用,因此会存在当源应用为非***级应用时,终端设备通过触发指令和预设配置从源应用当前显示界面中抓取的显示数据不满足与第一目标收藏应用对应的第 二预设条件(例如抓取的显示数据不完整)的情况。该第二预设条件可以包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个。需要说明的是,不同类型的目标收藏应用,其对应的第二预设条件的内容不同。例如,假定用户正在查看网易娱乐应用,想将当前查看的文章收藏至图库应用中(即图库应用为终端设备确定的第一目标收藏应用),其对应的第二预设条件可以包括显示数据的名称(新闻的标题)、显示数据的来源(新闻的来源网站或者统一定位标识符URL)、显示数据的内容(新闻中的图片内容),而上述实施例中,当显示数据为新闻应用的数据时其对应的事件信息仅包括新闻的标题和新闻的来源网站,故而,其不满足第一目标收藏应用对应的第二预设条件。
基于上述原因,终端设备希望收藏至目标收藏应用的显示数据能够满足目标收藏应用对应的第二预设条件,即希望收藏至目标收藏应用的数据更加详细和完善,从而方便用户的有效查看。因此,执行上述S404的步骤。
S405:根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,并将所述收藏内容收藏至所述第一目标收藏应用。
可选的,当上述显示数据的事件信息满足第二预设条件时,终端设备确定待收藏至第一目标收藏应用的收藏内容包括上述显示数据的事件信息,从而将该显示数据的事件信息收藏至第一目标收藏应用中。
可选的,当上述显示数据的事件信息不满足第二预设条件时,终端设备向网络服务器发送携带上述显示数据的第二数据处理请求,以通过网络服务器获取满足该第二预设条件的显示数据的事件信息,并确定待收藏至第一目标收藏应用中的收藏内容包括满足第二预设条件的显示数据的事件信息,从而将收藏内容收藏至第一目标收藏应用中。。
基于上述方案,在以后用户需要查看该显示数据时,可以直接通过第一目标收藏应用来查看,无需通过源应用,大大简化了用户的操作,即使上述源应用为不支持收藏功能的***级应用,本发明实施例仍然可以通过第一目标收藏应用来查看所收藏的显示数据,这是因为本发明实施例在进行数据收藏之前,已经获取到源应用在当前显示界面上的显示数据,并显示在处理界面上,相当于该显示数据已经脱离源应用的限制,因此,终端设备可以根据 已经获取到的显示数据的数据类型将该显示数据进行任意的收藏。
可选的,终端设备也可以在用户点击收藏控件之后,弹出一收藏选择界面,该收藏选择界面中包括第一目标收藏应用,从而使得用户可以点击该第一目标收藏应用,将上述显示数据收藏至该第一目标收藏应用中。
本发明实施例提供的应用数据的处理方法,通过根据上述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用,并根据第一目标收藏应用的应用类型,判断该显示数据的事件信息是否满足该第一目标收藏应用对应的第二预设条件,并在该显示数据的事件信息不满足第二预设条件时,通过与网络服务器进行交互,获取满足第二预设条件的显示数据的事件信息并收藏至第一目标收藏应用中,从而使得用户可以通过该第一目标收藏应用查看到较为完善的数据,并且无需通过源应用即可查看,大大简化了用户的操作,也提高了数据收藏的有效性。
图15为本发明实施例提供的应用数据的处理方法实施例五的流程示意图。本实施例涉及的是在源应用为非***应用时,终端设备通过源应用当前显示界面上的控件获取源应用当前显示界面的显示数据的具体过程。在上述各实施例的基础上,该方法具体可以包括如下步骤:
S501:根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件。
其中,所述有效控件为携带满足第三预设条件的数据的控件;所述数据属性包括所述控件中的文本长度、所述控件中的图片占当前界面的大小、所述控件中的动画占当前界面的大小中的至少一个。
具体的,当终端设备根据用户的触发指令和预设配置获取到源应用的当前显示界面上的每个控件的内容之后,首先根据每个控件的内容的数据属性,确定该第一控件上携带的内容是否满足第三预设条件,若满足,则终端设备确定该控件为有效控件,从而确定出源应用当前显示界面上的所有有效控件。这里需要说明的是,本实施例中的控件为源应用当前显示界面上的界面元素,例如,假设源应用为微信,当前显示界面为微信的聊天界面,则该聊天界面整体、聊天界面中的文本内容、图像或者时间,甚至是文本内容中***的表情图片均是这个聊天界面中的控件。
可选的,上述数据属性可以包括第一控件中的文本长度、第一控件中的图片占当前界面的大小、第一控件中的动画占当前界面的大小中的至少一个,则上述第三预设条件可以包括所述控件中的内容的文本长度大于预设的第一阈值、控件中的图片占当前界面的大小大于预设的第二阈值、控件中的动画占当前界面的大小大于预设的第三阈值中的任一个条件。
因此,终端设备根据每个控件的内容的数据属性,并结合第三预设条件,确定源应用当前显示界面上的有效控件,具体可以为:若控件的内容的数据属性为第一控件中的文本长度,且该控件中的文本长度大于预设的第一阈值,则确定该控件上的内容满足上述第三预设条件,即确定该控件为有效控件;或者,若控件的内容的数据属性为该控件中的图片占当前界面的大小,且该控件中的图片占当前界面的大小大于预设的第二阈值,则确定该控件上的内容满足上述第三预设条件,即确定该控件为有效控件;或者,若控件的内容的数据属性为该控件中的动画占当前界面的大小,且该控件中的动画占当前界面的大小大于预设的第三阈值,则确定该控件上的内容满足上述第三预设条件,即确定该控件为有效控件。
采用上述S501的方法,即可以确定出源应用当前显示界面上的所有有效控件。
S502:根据每个所述有效控件的内容,获取所述显示数据。
可选的,终端设备可以将每个有效控件的内容作为一个集合,直接作为源应用当前显示界面的显示数据;可选的,终端设备还可以将获取的每个有效控件的内容进行整合,将整合之后的数据作为源应用的当前显示界面的显示数据,该显示数据隶属于图5中具有内容收藏与分享功能的APP,其不受源应用的授权限制。
本发明实施例提供的应用数据的处理方法,终端设备通过遍历源应用在当前显示界面上的控件,根据控件自身携带的数据获取方法获取每个控件上的内容,并根据每个控件的内容的数据属性确定源应用在当前显示界面上的有效控件,进而根据每个有效控件的内容获得源应用在当前显示界面上的显示数据,通过该方法获得的显示数据隶属于图5中具有内容收藏与分享功能的APP,其不受源应用的授权限制,从而使得终端设备基于具有内容收藏与分享功能的APP能够将该显示数据进行任意的分享或者收藏,其收藏显示数 据的目标APP或者分享显示数据的目标APP不受源APP的授权限制,不仅简化了用户的操作,也大大提高了用户的分享和收藏体验,使得用户和终端设备上的应用程序的交互更加智能化。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
图16为本发明实施例提供的应用数据的处理装置实施例一的结构示意图。该处理装置可以为独立的终端设备,还可以集成在终端设备中,即该处理装置可以通过软件、硬件、或者软硬结合的方式实现。如图16所示,该应用数据的处理装置,包括:接收模块10、获取模块11、显示模块12和处理模块13。
具体的,接收模块10,用于接收用户输入的触发指令;
获取模块11,用于根据所述触发指令获取源应用在当前显示界面上的显示数据;
显示模块12,用于在所述当前显示界面上显示处理界面;其中,所述处理界面包括所述显示数据的事件信息和处理控件,所述处理控件用于接收用户的数据操作指令;
处理模块13,用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据。
本发明实施例提供的应用数据的处理装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
图17为本发明实施例提供的应用数据的处理装置实施例二的结构示意图。在上述图16所示实施例的基础上,进一步地,上述显示模块12,具体包括第一确定单元121和显示单元122。
具体的,第一确定单元121,用于根据显示数据的数据类型,确定所述显示数据的事件信息;所述显示数据的数据类型包括多媒体应用的数据、社交聊天应用的数据、阅读应用的数据、购物应用的数据、快递类应用的数据 中的任一种;
显示单元122,用于将所述显示数据的事件信息和所述处理控件显示在所述处理界面上。
进一步地,所述第一确定单元121,具体用于以下一种或多种:当所述显示数据为多媒体应用的数据时,确定所述显示数据的事件信息包括多媒体文件的名称和所述多媒体文件的创作者和演出者;当所述显示数据为社交聊天应用的数据时,确定所述显示数据的事件信息包括对话内容中的涉及日程事件的时间信息、地点信息以及事件内容;当所述显示数据为阅读应用的数据时,确定所述显示数据的事件信息包括阅读内容的标题和所述阅读内容的来源;当所述显示数据为购物应用的数据时,确定所述显示数据的事件信息包括商品名称和商品价格;当所述显示数据为快递类应用的数据时,确定所述显示数据的事件信息包括快递单号和所述快递单号对应的物流信息。
本发明实施例提供的应用数据的处理装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选的,所述处理控件包括分享控件、收藏控件中的至少一个。
图18为本发明实施例提供的应用数据的处理装置实施例三的结构示意图。在上述图17所示实施例的基础上,进一步地,若用户基于所述分享控件输入数据操作指令,所述处理模块13,具体包括:第一判断单元131、第二确定单元132和分享单元133;
所述第一判断单元131,用于根据所述显示数据的数据类型,判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件;其中,所述第一预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
所述第二确定单元132,用于根据判断结果确定待显示在分享选择界面的界面内容;
所述显示模块12,还用于根据所述界面内容显示所述分享选择界面;
所述分享单元133,用于根据用户所选择的第一目标分享应用,将所述界面内容分享至所述第一目标分享应用。
进一步地,所述第二确定单元132,具体用于以下一种或两种:当所述 显示数据的事件信息满足所述第一预设条件时,确定所述界面内容包括所述显示数据的事件信息和与所述显示数据的数据类型匹配的目标分享应用;当所述显示数据的事件信息不满足所述第一预设条件时,向网络服务器发送携带所述显示数据的第一数据处理请求,以通过所述网络服务器获取满足所述第一预设条件的显示数据的事件信息,并确定所述界面内容包括所述满足第一预设条件的显示数据的事件信息和终端设备中所有与所述显示数据的数据类型匹配的目标分享应用。
本发明实施例提供的应用数据的处理装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
图19为本发明实施例提供的应用数据的处理装置实施例四的结构示意图。在上述图18所示实施例的基础上,进一步地,若用户基于所述收藏控件输入数据操作指令,则所述处理模块13,包括:
第三确定单元134,用于根据所述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用;所述第一映射关系包括不同的数据类型与不同类型的目标收藏应用的对应关系,所述目标收藏应用为***所集成的且不可删除的***级应用;
第二判断单元135,用于根据所述第一目标收藏应用的应用类型,判断所述显示数据的事件信息是否满足所述第一目标收藏应用对应的第二预设条件;其中,所述第二预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
收藏单元136,用于根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,并将所述收藏内容收藏至所述第一目标收藏应用。
进一步地,所述收藏单元136,具体用于以下一种或多种:当所述显示数据的事件信息满足所述第二预设条件时,确定所述收藏内容包括所述显示数据的事件信息;当所述显示数据的事件信息不满足所述第二预设条件时,向网络服务器发送携带所述显示数据的第二数据处理请求,以通过所述网络服务器获取满足所述第二预设条件的显示数据的事件信息,并确定所述收藏内容包括所述满足第二预设条件的显示数据的事件信息。
可选的,所述源应用包括***级应用或者非***级应用,所述非***级 应用为非***所集成且可删除的应用。若所述源应用为***级应用,所述获取模块11,具体用于根据所述触发指令调用所述源应用的获取共享数据接口getShareData(),通过所述获取共享数据接口获取所述显示数据。
可选的,若所述源应用为非***级应用,则所述获取模块11,具体用于根据所述触发指令和预设配置,获取所述源应用的当前显示界面上的每个控件的内容,并根据所述每个控件的内容,获取所述显示数据;其中,所述控件为所述当前显示界面上的界面元素,所述预设配置包括所述源应用的版本号、所述源应用的应用标识、所述当前显示界面的页面标识、所述控件的控件类型、所述显示数据的数据类型中的至少一个。
进一步地,所述获取模块11,具体用于根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,并根据每个所述有效控件的内容,获取所述显示数据;其中,所述有效控件为携带满足第三预设条件的数据的控件;所述数据属性包括所述控件中的文本长度、所述控件中的图片占当前界面的大小、所述控件中的动画占当前界面的大小中的至少一个。
更进一步地,所述获取模块11,具体用于当所述控件的数据属性为所述控件中的文本长度,且所述控件中的文本长度大于预设的第一阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的图片占当前界面的大小,且所述控件中的图片占当前界面的大小大于预设的第二阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的动画占当前界面的大小,且所述控件中的动画占当前界面的大小大于预设的第三阈值时,则确定所述控件为有效控件;
其中,所述第三预设条件包括所述控件中的文本长度大于所述第一阈值、所述控件中的图片占当前界面的大小大于所述第二阈值、所述控件中的动画占当前界面的大小大于所述第三阈值中的任一个。
本发明实施例提供的应用数据的处理装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
图20为本发明实施例提供的终端设备实施例的结构示意图。如图20所示,该终端设备可以包括输入设备20、处理器21,例如CPU、存储器22、至少一个通信总线23和显示设备24。通信总线23用于实现元件之间的通 信连接。存储器22可能包含高速RAM存储器,也可能还包括非易失性存储器NVM,例如至少一个磁盘存储器,存储器22中可以存储各种程序,用于完成各种处理功能以及实现本实施例的方法步骤;所述输入设备20,用于向用户提供输入接口,接收用户输入的操作或指令等。可选的,该终端设备还可以包括收发器25,该收发器25中集成发送器251和接收器252,接收器252可以为相应的具有通信功能和接收信息功能的输入接口,还可以为终端设备上的射频模块或者基带模块,发送器251可以为相应的具有通信功能和发送信息功能的输出接口,还可以为终端设备上的射频模块或者基带模块。
具体的,在本实施例中,输入设备20,用于接收用户输入的触发指令
处理器21,用于根据所述触发指令获取源应用在当前显示界面上的显示数据;
显示设备24,用于在所述当前显示界面上显示处理界面;其中,所述处理界面包括所述显示数据的事件信息和处理控件,所述处理控件用于接收用户的数据操作指令;
所述处理器21,还用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据。
本发明实施例提供的终端设备,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选的,所述处理器21,还用于根据显示数据的数据类型,确定所述显示数据的事件信息;所述显示数据的数据类型包括多媒体应用的数据、社交聊天应用的数据、阅读应用的数据、购物应用的数据、快递类应用的数据中的任一种或多种;
所述显示设备24,具体用于将所述显示数据的事件信息和所述处理控件显示在所述处理界面上。
进一步地,所述处理器21,还用于根据显示数据的数据类型,确定所述显示数据的事件信息,具体包括:
所述处理器21,具体用于以下一种或者多种:当所述显示数据为多媒体应用的数据时,确定所述显示数据的事件信息包括多媒体文件的名称和所述多媒体文件的创作者和演出者;当所述显示数据为社交聊天应用的数据时, 确定所述显示数据的事件信息包括对话内容中的涉及日程事件的时间信息、地点信息以及事件内容;当所述显示数据为阅读应用的数据时,确定所述显示数据的事件信息包括阅读内容的标题和所述阅读内容的来源;或者,当所述显示数据为购物应用的数据时,确定所述显示数据的事件信息包括商品名称和商品价格;当所述显示数据为快递类应用的数据,确定所述显示数据的事件信息包括快递单号和所述快递单号对应的物流信息。
本发明实施例提供的终端设备,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选的,所述处理控件包括分享控件、收藏控件中的至少一个。
作为一种可能的实施方式,若用户基于所述分享控件输入数据操作指令,则所述处理器21,用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
所述处理器21,具体用于根据所述显示数据的数据类型,判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件,并根据判断结果确定待显示在分享选择界面的界面内容;其中,所述第一预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
所述显示设备24,还用于根据所述界面内容显示所述分享选择界面;
所述处理器21,还用于根据用户所选择的第一目标分享应用,将所述界面内容分享至所述第一目标分享应用。
在该可能的实施方式下,进一步地,所述处理器21,用于根据判断结果确定待显示在分享选择界面的界面内容,具体包括:
所述处理器21,具体用于以下一种或两种:当所述显示数据的事件信息满足所述第一预设条件时,确定所述界面内容包括所述显示数据的事件信息和与所述显示数据的数据类型匹配的目标分享应用;当所述显示数据的事件信息不满足所述第一预设条件时,通过所述收发器25向网络服务器发送携带所述显示数据的第一数据处理请求,以通过所述网络服务器获取满足所述第一预设条件的显示数据的事件信息,并确定所述界面内容包括所述满足第一预设条件的显示数据的事件信息和终端设备中所有与所述显示数据的数据类 型匹配的目标分享应用。
本发明实施例提供的终端设备,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
作为本发明实施例的另一种可能的实施方式,若用户基于所述收藏控件输入数据操作指令,所述处理器21,用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
所述处理器21,具体用于根据所述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用,并根据所述第一目标收藏应用的应用类型,判断所述显示数据的事件信息是否满足所述第一目标收藏应用对应的第二预设条件;以及,根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,并将所述收藏内容收藏至所述第一目标收藏应用;
其中,所述第一映射关系包括不同的数据类型与不同类型的目标收藏应用的对应关系,所述目标收藏应用为***所集成的且不可删除的***级应用;所述第二预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个。
在该可能的实施方式下,所述处理器21,用于根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,具体包括:
所述处理器21,具体用于以下一种或多种:当所述显示数据的事件信息满足所述第二预设条件时,确定所述收藏内容包括所述显示数据的事件信息;当所述显示数据的事件信息不满足所述第二预设条件时,通过收发器25向网络服务器发送携带所述显示数据的第二数据处理请求,以通过所述网络服务器获取满足所述第二预设条件的显示数据的事件信息,并确定所述收藏内容包括所述满足第二预设条件的显示数据的事件信息。
本发明实施例提供的终端设备,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选的,所述源应用包括***级应用或者非***级应用,所述非***级应用为非***所集成且可删除的应用。
若所述源应用为***级应用,所述处理器21,用于根据所述触发指令获 取源应用在当前显示界面上的显示数据,具体包括:
所述处理器21,具体用于根据所述触发指令调用所述源应用的获取共享数据接口getShareData(),通过所述获取共享数据接口获取所述显示数据。
若所述源应用为非***级应用,所述处理器21,用于根据所述触发指令获取源应用在当前显示界面上的显示数据,具体包括:
所述处理器21,具体用于根据所述触发指令和预设配置,获取所述源应用的当前显示界面上的每个控件的内容,并根据所述每个控件的内容,获取所述显示数据;
其中,所述控件为所述当前显示界面上的界面元素,所述预设配置包括所述源应用的版本号、所述源应用的应用标识、所述当前显示界面的页面标识、所述控件的控件类型、所述显示数据的数据类型中的至少一个。
进一步地,所述处理器21,用于根据所述每个控件的内容,获取所述显示数据,具体包括:
所述处理器21,具体用于根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,并根据每个所述有效控件的内容,获取所述显示数据;
所述有效控件为携带满足第三预设条件的数据的控件;所述数据属性包括所述控件中的文本长度、所述控件中的图片占当前界面的大小、所述控件中的动画占当前界面的大小中的至少一个。
更进一步地,所述处理器21,用于根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,具体包括:
所述处理器21,具体用于当所述控件的数据属性为所述控件中的文本长度,且所述控件中的文本长度大于预设的第一阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的图片占当前界面的大小,且所述控件中的图片占当前界面的大小大于预设的第二阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的动画占当前界面的大小,且所述控件中的动画占当前界面的大小大于预设的第三阈值时,确定所述控件为有效控件;
其中,所述第三预设条件包括所述控件中的文本长度大于所述第一阈值、所述控件中的图片占当前界面的大小大于所述第二阈值、所述控件中的动画 占当前界面的大小大于所述第三阈值中的任一个。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (39)

  1. 一种应用数据的处理方法,其特征在于,包括:
    接收用户输入的触发指令;
    根据所述触发指令获取源应用在当前显示界面上的显示数据,并在所述当前显示界面上显示处理界面;其中,所述处理界面包括所述显示数据的事件信息和处理控件,所述处理控件用于接收用户的数据操作指令;
    根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据。
  2. 根据权利要求1所述的方法,其特征在于,所述在当前显示界面上显示处理界面,具体包括:
    根据显示数据的数据类型,确定所述显示数据的事件信息;所述显示数据的数据类型包括多媒体应用的数据、社交聊天应用的数据、阅读应用的数据、购物应用的数据、快递类应用的数据中的任一种或多种;
    将所述显示数据的事件信息和所述处理控件显示在所述处理界面上。
  3. 根据权利要求2所述的方法,其特征在于,所述根据显示数据的数据类型,确定所述显示数据的事件信息,具体包括以下一种或多种:
    若所述显示数据为多媒体应用的数据,则确定所述显示数据的事件信息包括多媒体文件的名称和所述多媒体文件的创作者和演出者;
    若所述显示数据为社交聊天应用的数据,则确定所述显示数据的事件信息包括对话内容中的涉及日程事件的时间信息、地点信息以及事件内容;
    若所述显示数据为阅读应用的数据,则确定所述显示数据的事件信息包括阅读内容的标题和所述阅读内容的来源;
    若所述显示数据为购物应用的数据,则确定所述显示数据的事件信息包括商品名称和商品价格;
    若所述显示数据为快递类应用的数据,则确定所述显示数据的事件信息包括快递单号和所述快递单号对应的物流信息。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述处理控件包括分享控件、收藏控件中的至少一个。
  5. 根据权利要求1所述的方法,其特征在于,若用户基于所述分享控件输入数据操作指令,则所述根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
    根据所述显示数据的数据类型,判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件;其中,所述第一预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
    根据判断结果确定待显示在分享选择界面的界面内容;
    根据所述界面内容显示所述分享选择界面,并根据用户所选择的第一目标分享应用,将所述界面内容分享至所述第一目标分享应用。
  6. 根据权利要求5所述的方法,其特征在于,所述根据判断结果确定待显示在分享选择界面的界面内容,具体包括以下一种或两种:
    若所述显示数据的事件信息满足所述第一预设条件,则确定所述界面内容包括所述显示数据的事件信息和与所述显示数据的数据类型匹配的目标分享应用;
    若所述显示数据的事件信息不满足所述第一预设条件,则向网络服务器发送携带所述显示数据的第一数据处理请求,以通过所述网络服务器获取满足所述第一预设条件的显示数据的事件信息,并确定所述界面内容包括所述满足第一预设条件的显示数据的事件信息和终端设备中所有与所述显示数据的数据类型匹配的目标分享应用。
  7. 根据权利要求1所述的方法,其特征在于,若用户基于所述收藏控件输入数据操作指令,则所述根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
    根据所述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用;所述第一映射关系包括不同的数据类型与不同类型的目标收藏应用的对应关系,所述目标收藏应用为***所集成的且不可删除的***级应用;
    根据所述第一目标收藏应用的应用类型,判断所述显示数据的事件信息是否满足所述第一目标收藏应用对应的第二预设条件;其中,所述第二预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
    根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,并将所述收藏内容收藏至所述第一目标收藏应用。
  8. 根据权利要求7所述的方法,其特征在于,所述根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,具体包括以下一种或多种:
    若所述显示数据的事件信息满足所述第二预设条件,则确定所述收藏内容包括所述显示数据的事件信息;
    若所述显示数据的事件信息不满足所述第二预设条件,则向网络服务器发送携带所述显示数据的第二数据处理请求,以通过所述网络服务器获取满足所述第二预设条件的显示数据的事件信息,并确定所述收藏内容包括所述满足第二预设条件的显示数据的事件信息。
  9. 根据权利要求1所述的方法,其特征在于,所述源应用包括***级应用或者非***级应用,所述非***级应用为非***所集成且可删除的应用。
  10. 根据权利要求1所述的方法,其特征在于,若所述源应用为***级应用,则所述根据所述触发指令获取源应用在当前显示界面上的显示数据,具体包括:
    根据所述触发指令调用所述源应用的获取共享数据接口getShareData(),通过所述获取共享数据接口获取所述显示数据。
  11. 根据权利要求1所述的方法,其特征在于,若所述源应用为非***级应用,则所述根据所述触发指令获取源应用在当前显示界面上的显示数据,具体包括:
    根据所述触发指令和预设配置,获取所述源应用的当前显示界面上的每个控件的内容;其中,所述控件为所述当前显示界面上的界面元素,所述预设配置包括所述源应用的版本号、所述源应用的应用标识、所述当前显示界面的页面标识、所述控件的控件类型、所述显示数据的数据类型中的至少一个;
    根据所述每个控件的内容,获取所述显示数据。
  12. 根据权利要求11所述的方法,其特征在于,所述根据所述每个控件的内容,获取所述显示数据,具体包括:
    根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件;所述有效控件为携带满足第三预设条件的数据的控件;所述数据属性包括所述控件中的文本长度、所述控件中的图片占当前界面的大小、 所述控件中的动画占当前界面的大小中的至少一个;
    根据每个所述有效控件的内容,获取所述显示数据。
  13. 根据权利要求12所述的方法,其特征在于,所述根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,具体包括:
    若所述控件的数据属性为所述控件中内容的文本长度,且所述控件中内容的文本长度大于预设的第一阈值,则确定所述控件为有效控件;
    或者,
    若所述控件的数据属性为所述控件中的图片占当前界面的大小,且所述控件中的图片占当前界面的大小大于预设的第二阈值,则确定所述控件为有效控件;
    或者,
    若所述控件的数据属性为所述控件中的动画占当前界面的大小,且所述控件中的动画占当前界面的大小大于预设的第三阈值,则确定所述控件为有效控件;
    其中,所述第三预设条件包括所述控件中内容的文本长度大于所述第一阈值、所述控件中的图片占当前界面的大小大于所述第二阈值、所述控件中的动画占当前界面的大小大于所述第三阈值中的任一个。
  14. 一种应用数据的处理装置,其特征在于,包括:
    接收模块,用于接收用户输入的触发指令;
    获取模块,用于根据所述触发指令获取源应用在当前显示界面上的显示数据;
    显示模块,用于在所述当前显示界面上显示处理界面;其中,所述处理界面包括所述显示数据的事件信息和处理控件,所述处理控件用于接收用户的数据操作指令;
    处理模块,用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据。
  15. 根据权利要求14所述的装置,其特征在于,所述显示模块,具体包括:
    第一确定单元,用于根据显示数据的数据类型,确定所述显示数据的事件信息;所述显示数据的数据类型包括多媒体应用的数据、社交聊天应用的 数据、阅读应用的数据、购物应用的数据、快递类应用的数据中的任一种或多种;
    显示单元,用于将所述显示数据的事件信息和所述处理控件显示在所述处理界面上。
  16. 根据权利要求15所述的装置,其特征在于,所述第一确定单元,具体用于以下一种或多种:
    当所述显示数据为多媒体应用的数据时,确定所述显示数据的事件信息包括多媒体文件的名称和所述多媒体文件的创作者和演出者;当所述显示数据为社交聊天应用的数据时,确定所述显示数据的事件信息包括对话内容中的涉及日程事件的时间信息、地点信息以及事件内容;当所述显示数据为阅读应用的数据时,确定所述显示数据的事件信息包括阅读内容的标题和所述阅读内容的来源;当所述显示数据为购物应用的数据时,确定所述显示数据的事件信息包括商品名称和商品价格;当所述显示数据为快递类应用的数据时,确定所述显示数据的事件信息包括快递单号和所述快递单号对应的物流信息。
  17. 根据权利要求14-16任一项所述的装置,其特征在于,所述处理控件包括分享控件、收藏控件中的至少一个。
  18. 根据权利要求14所述的装置,其特征在于,若用户基于所述分享控件输入数据操作指令,所述处理模块,具体包括:第一判断单元、第二确定单元和分享单元;
    所述第一判断单元,用于根据所述显示数据的数据类型,判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件;其中,所述第一预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
    所述第二确定单元,用于根据判断结果确定待显示在分享选择界面的界面内容;
    所述显示模块,还用于根据所述界面内容显示所述分享选择界面;
    所述分享单元,用于根据用户所选择的第一目标分享应用,将所述界面内容分享至所述第一目标分享应用。
  19. 根据权利要求18所述的装置,其特征在于,所述第二确定单元,具体用于以下一种或两种:
    当所述显示数据的事件信息满足所述第一预设条件时,确定所述界面内容包括所述显示数据的事件信息和与所述显示数据的数据类型匹配的目标分享应用;当所述显示数据的事件信息不满足所述第一预设条件时,向网络服务器发送携带所述显示数据的第一数据处理请求,以通过所述网络服务器获取满足所述第一预设条件的显示数据的事件信息,并确定所述界面内容包括所述满足第一预设条件的显示数据的事件信息和终端设备中所有与所述显示数据的数据类型匹配的目标分享应用。
  20. 根据权利要求14所述的装置,其特征在于,若用户基于所述收藏控件输入数据操作指令,则所述处理模块,包括:
    第三确定单元,用于根据所述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用;所述第一映射关系包括不同的数据类型与不同类型的目标收藏应用的对应关系,所述目标收藏应用为***所集成的且不可删除的***级应用;
    第二判断单元,用于根据所述第一目标收藏应用的应用类型,判断所述显示数据的事件信息是否满足所述第一目标收藏应用对应的第二预设条件;其中,所述第二预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
    收藏单元,用于根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,并将所述收藏内容收藏至所述第一目标收藏应用。
  21. 根据权利要求20所述的装置,其特征在于,所述收藏单元,具体用于以下一种或多种:
    当所述显示数据的事件信息满足所述第二预设条件时,确定所述收藏内容包括所述显示数据的事件信息;当所述显示数据的事件信息不满足所述第二预设条件时,向网络服务器发送携带所述显示数据的第二数据处理请求,以通过所述网络服务器获取满足所述第二预设条件的显示数据的事件信息,并确定所述收藏内容包括所述满足第二预设条件的显示数据的事件信息。
  22. 根据权利要求14所述的装置,其特征在于,所述源应用包括***级 应用或者非***级应用,所述非***级应用为非***所集成且可删除的应用。
  23. 根据权利要求14所述的装置,其特征在于,若所述源应用为***级应用,所述获取模块,具体用于根据所述触发指令调用所述源应用的获取共享数据接口getShareData(),通过所述获取共享数据接口获取所述显示数据。
  24. 根据权利要求14所述的装置,其特征在于,若所述源应用为非***级应用,则所述获取模块,具体用于根据所述触发指令和预设配置,获取所述源应用的当前显示界面上的每个控件的内容,并根据所述每个控件的内容,获取所述显示数据;
    其中,所述控件为所述当前显示界面上的界面元素,所述预设配置包括所述源应用的版本号、所述源应用的应用标识、所述当前显示界面的页面标识、所述控件的控件类型、所述显示数据的数据类型中的至少一个。
  25. 根据权利要求24所述的装置,其特征在于,所述获取模块,具体用于根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,并根据每个所述有效控件的内容,获取所述显示数据;
    其中,所述有效控件为携带满足第三预设条件的数据的控件;所述数据属性包括所述控件中的文本长度、所述控件中的图片占当前界面的大小、所述控件中的动画占当前界面的大小中的至少一个。
  26. 根据权利要求25所述的装置,其特征在于,所述获取模块,具体用于当所述控件的数据属性为所述控件中的文本长度,且所述控件中的文本长度大于预设的第一阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的图片占当前界面的大小,且所述控件中的图片占当前界面的大小大于预设的第二阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的动画占当前界面的大小,且所述控件中的动画占当前界面的大小大于预设的第三阈值时,则确定所述控件为有效控件;
    其中,所述第三预设条件包括所述控件中的文本长度大于所述第一阈值、所述控件中的图片占当前界面的大小大于所述第二阈值、所述控件中的动画占当前界面的大小大于所述第三阈值中的任一个。
  27. 一种终端设备,其特征在于,包括:
    输入设备,用于接收用户输入的触发指令
    处理器,用于根据所述触发指令获取源应用在当前显示界面上的显示数据;
    显示设备,用于在所述当前显示界面上显示处理界面;其中,所述处理界面包括所述显示数据的事件信息和处理控件,所述处理控件用于接收用户的数据操作指令;
    所述处理器,还用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据。
  28. 根据权利要求27所述的终端设备,其特征在于,所述处理器,还用于根据显示数据的数据类型,确定所述显示数据的事件信息;所述显示数据的数据类型包括多媒体应用的数据、社交聊天应用的数据、阅读应用的数据、购物应用的数据、快递类应用的数据中的任一种或多种;
    所述显示设备,具体用于将所述显示数据的事件信息和所述处理控件显示在所述处理界面上。
  29. 根据权利要求28所述的终端设备,其特征在于,所述处理器,还用于根据显示数据的数据类型,确定所述显示数据的事件信息,具体包括:
    所述处理器,具体用于以下一种或者多种:
    当所述显示数据为多媒体应用的数据时,确定所述显示数据的事件信息包括多媒体文件的名称和所述多媒体文件的创作者和演出者;当所述显示数据为社交聊天应用的数据时,确定所述显示数据的事件信息包括对话内容中的涉及日程事件的时间信息、地点信息以及事件内容;当所述显示数据为阅读应用的数据时,确定所述显示数据的事件信息包括阅读内容的标题和所述阅读内容的来源;当所述显示数据为购物应用的数据时,确定所述显示数据的事件信息包括商品名称和商品价格;当所述显示数据为快递类应用的数据,确定所述显示数据的事件信息包括快递单号和所述快递单号对应的物流信息。
  30. 根据权利要求27-29任一项所述的终端设备,其特征在于,所述处理控件包括分享控件、收藏控件中的至少一个。
  31. 根据权利要求27所述的终端设备,其特征在于,若用户基于所述分享控件输入数据操作指令,则所述处理器,用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
    所述处理器,具体用于根据所述显示数据的数据类型,判断所述显示数据的事件信息是否满足与所述显示数据的数据类型对应的第一预设条件,并根据判断结果确定待显示在分享选择界面的界面内容;其中,所述第一预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个;
    所述显示设备,还用于根据所述界面内容显示所述分享选择界面;
    所述处理器,还用于根据用户所选择的第一目标分享应用,将所述界面内容分享至所述第一目标分享应用。
  32. 根据权利要求31所述的终端设备,其特征在于,所述终端设备还包括收发器;所述处理器,用于根据判断结果确定待显示在分享选择界面的界面内容,具体包括:
    所述处理器,具体用于以下一种或两种:
    当所述显示数据的事件信息满足所述第一预设条件时,确定所述界面内容包括所述显示数据的事件信息和与所述显示数据的数据类型匹配的目标分享应用;当所述显示数据的事件信息不满足所述第一预设条件时,通过所述收发器向网络服务器发送携带所述显示数据的第一数据处理请求,以通过所述网络服务器获取满足所述第一预设条件的显示数据的事件信息,并确定所述界面内容包括所述满足第一预设条件的显示数据的事件信息和终端设备中所有与所述显示数据的数据类型匹配的目标分享应用。
  33. 根据权利要求27所述的终端设备,其特征在于,若用户基于所述收藏控件输入数据操作指令,所述处理器,用于根据用户基于所述处理控件输入的数据操作指令,处理所述显示数据,具体包括:
    所述处理器,具体用于根据所述显示数据的数据类型和预设的第一映射关系,确定与所述数据类型匹配的第一目标收藏应用,并根据所述第一目标收藏应用的应用类型,判断所述显示数据的事件信息是否满足所述第一目标收藏应用对应的第二预设条件;以及,根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,并将所述收藏内容收藏至所述第一目标收藏应用;
    其中,所述第一映射关系包括不同的数据类型与不同类型的目标收藏应用的对应关系,所述目标收藏应用为***所集成的且不可删除的***级应用; 所述第二预设条件包括所述显示数据的事件信息中携带显示数据名称、显示数据的数据类型、显示数据的数据内容、显示数据的来源、与所述显示数据有关的用户名中的至少一个。
  34. 根据权利要求33所述的终端设备,其特征在于,所述处理器,用于根据判断结果确定待收藏至所述第一目标收藏应用的收藏内容,具体包括:
    所述处理器,具体用于以下一种或多种:
    当所述显示数据的事件信息满足所述第二预设条件时,确定所述收藏内容包括所述显示数据的事件信息;当所述显示数据的事件信息不满足所述第二预设条件时,通过收发器向网络服务器发送携带所述显示数据的第二数据处理请求,以通过所述网络服务器获取满足所述第二预设条件的显示数据的事件信息,并确定所述收藏内容包括所述满足第二预设条件的显示数据的事件信息。
  35. 根据权利要求27所述的终端设备,其特征在于,所述源应用包括***级应用或者非***级应用,所述非***级应用为非***所集成且可删除的应用。
  36. 根据权利要求27所述的终端设备,其特征在于,若所述源应用为***级应用,所述处理器,用于根据所述触发指令获取源应用在当前显示界面上的显示数据,具体包括:
    所述处理器,具体用于根据所述触发指令调用所述源应用的获取共享数据接口getShareData(),通过所述获取共享数据接口获取所述显示数据。
  37. 根据权利要求27所述的终端设备,其特征在于,若所述源应用为非***级应用,所述处理器,用于根据所述触发指令获取源应用在当前显示界面上的显示数据,具体包括:
    所述处理器,具体用于根据所述触发指令和预设配置,获取所述源应用的当前显示界面上的每个控件的内容,并根据所述每个控件的内容,获取所述显示数据;
    其中,所述控件为所述当前显示界面上的界面元素,所述预设配置包括所述源应用的版本号、所述源应用的应用标识、所述当前显示界面的页面标识、所述控件的控件类型、所述显示数据的数据类型中的至少一个。
  38. 根据权利要求37所述的终端设备,其特征在于,所述处理器,用于 根据所述每个控件的内容,获取所述显示数据,具体包括:
    所述处理器,具体用于根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,并根据每个所述有效控件的内容,获取所述显示数据;
    所述有效控件为携带满足第三预设条件的数据的控件;所述数据属性包括所述控件中的文本长度、所述控件中的图片占当前界面的大小、所述控件中的动画占当前界面的大小中的至少一个。
  39. 根据权利要求38所述的终端设备,其特征在于,所述处理器,用于根据所述每个控件的内容的数据属性,确定所述源应用当前显示界面上的有效控件,具体包括:
    所述处理器,具体用于当所述控件的数据属性为所述控件中的文本长度,且所述控件中的文本长度大于预设的第一阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的图片占当前界面的大小,且所述控件中的图片占当前界面的大小大于预设的第二阈值时,确定所述控件为有效控件;或者,当所述控件的数据属性为所述控件中的动画占当前界面的大小,且所述控件中的动画占当前界面的大小大于预设的第三阈值时,确定所述控件为有效控件;
    其中,所述第三预设条件包括所述控件中的文本长度大于所述第一阈值、所述控件中的图片占当前界面的大小大于所述第二阈值、所述控件中的动画占当前界面的大小大于所述第三阈值中的任一个。
PCT/CN2016/096108 2016-08-19 2016-08-19 应用数据的处理方法、装置和终端设备 WO2017193496A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202210933195.XA CN115454286B (zh) 2016-08-19 2016-08-19 应用数据的处理方法、装置和终端设备
CN201680087057.7A CN109328329A (zh) 2016-08-19 2016-08-19 应用数据的处理方法、装置和终端设备
PCT/CN2016/096108 WO2017193496A1 (zh) 2016-08-19 2016-08-19 应用数据的处理方法、装置和终端设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/096108 WO2017193496A1 (zh) 2016-08-19 2016-08-19 应用数据的处理方法、装置和终端设备

Publications (1)

Publication Number Publication Date
WO2017193496A1 true WO2017193496A1 (zh) 2017-11-16

Family

ID=60267827

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096108 WO2017193496A1 (zh) 2016-08-19 2016-08-19 应用数据的处理方法、装置和终端设备

Country Status (2)

Country Link
CN (2) CN109328329A (zh)
WO (1) WO2017193496A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110224920A (zh) * 2019-04-23 2019-09-10 维沃移动通信有限公司 一种分享方法及终端设备
US10979551B2 (en) 2016-09-09 2021-04-13 Huawei Technologies Co., Ltd. Method and apparatus for pushing notification, mobile terminal, and graphical user interface
CN114461111A (zh) * 2019-10-31 2022-05-10 华为技术有限公司 启动功能的方法及电子设备
CN115391448A (zh) * 2022-10-08 2022-11-25 数兑科技(杭州)有限公司 一种智能化用数方法
CN115884167A (zh) * 2022-03-25 2023-03-31 北京字跳网络技术有限公司 一种数据处理方法、装置、设备及存储介质
CN116320590A (zh) * 2020-08-27 2023-06-23 荣耀终端有限公司 信息分享的方法、***、终端设备和存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112016580B (zh) * 2019-05-31 2023-07-25 北京百度网讯科技有限公司 应用程序名称识别方法、装置及终端
CN114679511A (zh) * 2020-12-24 2022-06-28 荣耀终端有限公司 操作控制方法、装置和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530020A (zh) * 2013-10-18 2014-01-22 北京搜狗科技发展有限公司 信息操作的方法及装置
CN104239297A (zh) * 2013-06-06 2014-12-24 腾讯科技(北京)有限公司 一种网页收藏方法、***和装置
CN104657423A (zh) * 2015-01-16 2015-05-27 北京合辉信息技术有限公司 应用间内容分享方法及其装置
CN105183899A (zh) * 2015-09-29 2015-12-23 上海斐讯数据通信技术有限公司 收藏功能共享***及方法
CN105739891A (zh) * 2016-01-27 2016-07-06 宇龙计算机通信科技(深圳)有限公司 一种音乐处理方法及移动终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2014278594B2 (en) * 2013-06-09 2017-06-01 Apple Inc. Device, method, and graphical user interface for sharing content from a respective application
CN104808995B (zh) * 2015-05-04 2018-10-02 北京联翩科技有限公司 一种用于跨应用收藏应用内容的方法和装置
CN104899083A (zh) * 2015-05-19 2015-09-09 小米科技有限责任公司 应用分享方法及装置
CN105653178A (zh) * 2015-05-28 2016-06-08 宇龙计算机通信科技(深圳)有限公司 一种信息分享方法及装置
CN105872767A (zh) * 2016-04-06 2016-08-17 乐视控股(北京)有限公司 一种基于用户行为引导分享的方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239297A (zh) * 2013-06-06 2014-12-24 腾讯科技(北京)有限公司 一种网页收藏方法、***和装置
CN103530020A (zh) * 2013-10-18 2014-01-22 北京搜狗科技发展有限公司 信息操作的方法及装置
CN104657423A (zh) * 2015-01-16 2015-05-27 北京合辉信息技术有限公司 应用间内容分享方法及其装置
CN105183899A (zh) * 2015-09-29 2015-12-23 上海斐讯数据通信技术有限公司 收藏功能共享***及方法
CN105739891A (zh) * 2016-01-27 2016-07-06 宇龙计算机通信科技(深圳)有限公司 一种音乐处理方法及移动终端

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10979551B2 (en) 2016-09-09 2021-04-13 Huawei Technologies Co., Ltd. Method and apparatus for pushing notification, mobile terminal, and graphical user interface
US11909906B2 (en) 2016-09-09 2024-02-20 Honor Device Co., Ltd. Method and apparatus for pushing notification, mobile terminal, and graphical user interface
CN110224920A (zh) * 2019-04-23 2019-09-10 维沃移动通信有限公司 一种分享方法及终端设备
CN114461111A (zh) * 2019-10-31 2022-05-10 华为技术有限公司 启动功能的方法及电子设备
CN116320590A (zh) * 2020-08-27 2023-06-23 荣耀终端有限公司 信息分享的方法、***、终端设备和存储介质
CN116320590B (zh) * 2020-08-27 2024-03-22 荣耀终端有限公司 信息分享的方法、***、终端设备和存储介质
US11977932B2 (en) 2020-08-27 2024-05-07 Honor Device Co., Ltd. Information sharing method and apparatus, terminal device, and storage medium
CN115884167A (zh) * 2022-03-25 2023-03-31 北京字跳网络技术有限公司 一种数据处理方法、装置、设备及存储介质
CN115884167B (zh) * 2022-03-25 2023-08-22 北京字跳网络技术有限公司 一种数据处理方法、装置、设备及存储介质
CN115391448A (zh) * 2022-10-08 2022-11-25 数兑科技(杭州)有限公司 一种智能化用数方法

Also Published As

Publication number Publication date
CN115454286B (zh) 2024-04-02
CN109328329A (zh) 2019-02-12
CN115454286A (zh) 2022-12-09

Similar Documents

Publication Publication Date Title
JP7369833B2 (ja) タッチイベントモデルプログラミングインターフェイス
WO2017193496A1 (zh) 应用数据的处理方法、装置和终端设备
CN111061574B (zh) 一种对象分享方法及电子设备
US11237724B2 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
WO2019174611A1 (zh) 应用程序的设置方法及移动终端
US11798107B2 (en) Scenario-based application recommendation method and apparatus
AU2010327453B2 (en) Method and apparatus for providing user interface of portable device
WO2021197263A1 (zh) 内容共享方法及电子设备
US8706920B2 (en) Accessory protocol for touch screen device accessibility
WO2019205065A1 (zh) 快速打开应用或应用功能的方法及终端
WO2018153100A1 (zh) 一种显示收藏对象的方法和终端
WO2020238351A1 (zh) 应用程序下载分类方法及终端设备
WO2017129031A1 (zh) 信息获取方法及装置
CN108156508B (zh) 弹幕信息处理的方法、装置、移动终端、服务器及***
WO2018032612A1 (zh) 应用数据的共享方法、装置和终端设备
WO2019214072A1 (zh) 一种显示输入法虚拟键盘的方法及终端
WO2018223558A1 (zh) 数据处理方法及电子设备
WO2019174541A1 (zh) 移动终端的操作方法及移动终端
WO2019183997A1 (zh) 视频的预览方法及电子设备
WO2018107941A1 (zh) 一种ar场景下的多屏联动方法和***
CN110879680B (zh) 一种图标管理方法及电子设备
WO2019085533A1 (zh) 用于终端设备的应用处理的方法和终端设备
WO2018209555A1 (zh) 连接蓝牙设备的方法及终端设备
WO2021017738A1 (zh) 界面显示方法及电子设备
WO2015003636A1 (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: 16901451

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: 16901451

Country of ref document: EP

Kind code of ref document: A1