CN114942808A - Method and device for processing data in electronic equipment, electronic equipment and storage medium - Google Patents

Method and device for processing data in electronic equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN114942808A
CN114942808A CN202210542351.XA CN202210542351A CN114942808A CN 114942808 A CN114942808 A CN 114942808A CN 202210542351 A CN202210542351 A CN 202210542351A CN 114942808 A CN114942808 A CN 114942808A
Authority
CN
China
Prior art keywords
application program
identification information
application
historical
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210542351.XA
Other languages
Chinese (zh)
Inventor
王晓晖
邓竹立
彭飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202210542351.XA priority Critical patent/CN114942808A/en
Publication of CN114942808A publication Critical patent/CN114942808A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/543Local
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method and a device for processing data in electronic equipment, the electronic equipment and a storage medium. Under the condition that the state of the first application program running in the foreground of the electronic equipment is entered into the state of the first application program running in the foreground of the electronic equipment, the display can be automatically displayed on an interface of the first application program: the historical data identification information of the historical display data of the second application program displayed on the interface of the second application program before the second application program is quitted to run in the foreground of the electronic equipment for the last time is convenient for a user to enable the electronic equipment to display the historical display data of the second application program by means of the historical data identification information, the user can further continuously check the historical display data of the second application program, the electronic equipment can be enabled to display the historical display data of the second application program without the user operating the second application program once again, user operation is simplified, and user experience is improved.

Description

Method and device for processing data in electronic equipment, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing data in an electronic device, and a storage medium.
Background
With the rapid development of technology, terminals such as mobile phones or tablet computers have become essential tools in people's life and work, and great convenience is brought to various aspects of users' life and work, wherein various applications can be installed on the terminals to meet different requirements of users.
When a user needs to use a certain application program on the terminal, the user can control the terminal to run the certain application program on the foreground so that the user can use the certain application program. For example, in a case that a user needs to use the certain application program to view information, the user may control the certain application program to display the information that needs to be viewed, so that the user may view the information that needs to be viewed and the like displayed by the certain application program on the certain application program.
Disclosure of Invention
The application discloses a method and a device for processing data in electronic equipment, the electronic equipment and a storage medium.
In a first aspect, the present application shows a method for processing data in an electronic device, where at least a first application and a second application are installed in the electronic device, the first application runs in a foreground of the electronic device, the second application runs in a background of the electronic device, and the method is applied to the first application; the method comprises the following steps:
sending an acquisition request to a preset local port, wherein the acquisition request is used for acquiring historical data identification information of historical display data of the second application program; the historical display data comprises: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
monitoring the historical data identification information received through a preset local port, wherein the historical data identification information is acquired according to the acquisition request and is sent to the preset local port under the condition that the second application program monitors the acquisition request received through the preset local port;
displaying the historical data identification information in a floating mode on an interface of the first application program;
under the condition that trigger operation on the historical data identification information is received, acquiring the historical display data according to the historical data identification information;
displaying the historical display data on an interface of the first application.
In an optional implementation manner, the obtaining request further carries program identification information of the first application program; the historical data identification information is obtained according to the acquisition request and sent to a preset local port when the second application program monitors the acquisition request received through the preset local port and the second application program determines that the program identification information of the first application program is located in a white list recorded by the second application program.
In an optional implementation, the method further includes:
under the condition that the current display data of the first application program is displayed on the interface of the first application program, if the first application program needs to be quitted from running in the foreground of the electronic equipment, the current data identification information of the current display data displayed on the interface of the first application program is obtained and cached before the first application program quits from running in the foreground of the electronic equipment.
In an optional implementation manner, the caching the current data identification information includes:
replacing data identification information of first old display data cached in the first application program by using the current data identification information, wherein the first old display data comprises: data of the first application displayed on an interface of the first application before the first application last exited running in a foreground of the electronic device.
In a second aspect, the present application shows a method for processing data in an electronic device, where at least a first application and a second application are installed in the electronic device, the first application runs in a foreground of the electronic device, the second application runs in a background of the electronic device, and the method is applied to the second application; the method comprises the following steps:
monitoring an acquisition request received through a preset local port, wherein the acquisition request is sent to the preset local port by the first application program, and the acquisition request is used for acquiring historical data identification information of historical display data of the second application program; the historical display data comprises: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
acquiring the historical data identification information according to the acquisition request;
sending the historical data identification information to the preset local port to enable the first application program to monitor the historical data identification information received through the preset local port, displaying the historical data identification information in a suspending mode on an interface of the first application program, acquiring the historical display data according to the historical data identification information under the condition that triggering operation on the historical data identification information is received, and displaying the historical display data on the interface of the first application program.
In an optional implementation manner, the obtaining request further carries program identification information of the first application program;
before the obtaining the historical data identification information according to the obtaining request, the method further includes:
determining whether the program identification information of the first application program is located in a white list recorded by the second application program;
and under the condition that the program identification information of the first application program is located in the white list recorded by the second application program, executing the step of acquiring the historical data identification information according to the acquisition request.
In an optional implementation, the method further includes:
acquiring historical data identification information of historical display data of the second application program displayed on an interface of the second application program before the second application program is exited to run in a foreground of the electronic equipment for the last time, and caching the historical data identification information;
the acquiring the historical data identification information according to the acquisition request comprises:
and acquiring the cached historical data identification information according to the acquisition request.
In an optional implementation manner, the caching the historical data identification information includes:
replacing data identification information of second old display data cached in the second application program by using the current data identification information, wherein the second old display data comprises: data of the second application displayed on an interface of the second application before the second application last exited adjacent to and previously exited in the foreground of the electronic device.
In a third aspect, the present application shows a method for processing data in an electronic device, in which at least a first application and a second application are installed, the method comprising:
under the condition that the running operation for running the first application program in the foreground of the electronic equipment is received, running the first application program in the foreground of the electronic equipment according to the running operation;
monitoring historical data identification information of historical display data of the second application program received through a preset local port; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device; the historical data identification information is sent to the preset local port before the second application program is last exited to run in the foreground of the electronic equipment;
displaying the historical data identification information in a floating mode on an interface of the first application program;
under the condition that trigger operation on the historical data identification information is received, obtaining the historical display data according to the historical data identification information;
and displaying the historical display data.
In an optional implementation, the displaying the historical display data includes:
displaying the historical display data on an interface of the first application;
alternatively, the first and second electrodes may be,
and quitting the first application program from running in the foreground of the electronic equipment, running the second application program in the foreground of the electronic equipment, and displaying the historical display data in a floating manner on an interface of the second application program.
In an optional implementation manner, the monitoring data identification information of the historical display data of the second application program received through a preset local port includes:
monitoring data received through the preset local port, wherein the received data at least comprises: data identification information of the historical display data of the second application program and program identification information of the second application program;
acquiring program identification information of a second application program;
and acquiring data identification information of historical display data of the second application program from the received data according to the program identification information of the second application program.
In an optional implementation manner, the received data at least includes: a correspondence between program identification information of an application program and data identification information of history display data displayed on the application program before the application program has exited in the foreground of the electronic device for the last time;
the acquiring, from the received data according to the program identification information of the second application program, the data identification information of the history display data of the second application program includes:
and searching data identification information corresponding to the program identification information of the second application program in the corresponding relation, and using the data identification information as the data identification information of the historical display data of the second application program.
In an optional implementation, the method further includes:
under the condition that the current display data of the first application program is displayed on the interface of the first application program, if an exit operation for exiting the first application program from running in the foreground of the electronic equipment is received, current data identification information of the current display data of the first application program is obtained;
and sending the current data identification information to the preset local port.
In a fourth aspect, the present application shows an apparatus for processing data in an electronic device, where at least a first application and a second application are installed in the electronic device, the first application runs in a foreground of the electronic device, the second application runs in a background of the electronic device, and the apparatus is applied to the first application; the device comprises:
the first sending module is used for sending an acquisition request to a preset local port, wherein the acquisition request is used for acquiring historical data identification information of historical display data of the second application program; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
the first monitoring module is used for monitoring the historical data identification information received through a preset local port, and the historical data identification information is acquired according to the acquisition request and sent to the preset local port under the condition that the second application program monitors the acquisition request received through the preset local port;
the first display module is used for displaying the historical data identification information in a floating mode on an interface of the first application program;
the receiving module is used for acquiring the historical display data according to the historical data identification information under the condition that the trigger operation on the historical data identification information is received;
and the second display module is used for displaying the historical display data on the interface of the first application program.
In an optional implementation manner, the obtaining request further carries program identification information of the first application program; and the historical data identification information is obtained according to the acquisition request and sent to a preset local port under the condition that the second application program monitors the acquisition request received through the preset local port and the second application program determines that the program identification information of the first application program is located in a white list recorded by the second application program.
In an optional implementation, the apparatus further comprises:
a first obtaining module, configured to, under a condition that current display data of the first application program is displayed on an interface of the first application program, if the first application program needs to be exited from a foreground of the electronic device to operate, obtain current data identification information of the current display data displayed on the interface of the first application program before the first application program exits from the foreground of the electronic device to operate;
and the first cache module is used for caching the current data identification information.
In an optional implementation manner, the first cache module includes:
a first replacing unit, configured to replace, by using the current data identification information, data identification information of first old display data cached in the first application program, where the first old display data includes: displaying data of the first application on an interface of the first application before the first application last exited in a foreground of the electronic device.
In a fifth aspect, the present application shows an apparatus for processing data in an electronic device, where at least a first application and a second application are installed in the electronic device, the first application runs in a foreground of the electronic device, the second application runs in a background of the electronic device, and the apparatus is applied to the second application; the device comprises:
the second monitoring module is used for monitoring an acquisition request received through a preset local port, wherein the acquisition request is sent to the preset local port by the first application program, and the acquisition request is used for acquiring historical data identification information of historical display data of the second application program; the historical display data comprises: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
the second acquisition module is used for acquiring the historical data identification information according to the acquisition request;
the second sending module is used for sending the historical data identification information to the preset local port so that the first application program monitors the historical data identification information received through the preset local port, the historical data identification information is displayed on an interface of the first application program in a suspending mode, under the condition that the trigger operation of the historical data identification information is received, the historical display data is obtained according to the historical data identification information, and the historical display data is displayed on the interface of the first application program.
In an optional implementation manner, the obtaining request further carries program identification information of the first application program;
the device further comprises:
a determining module, configured to determine whether the program identification information of the first application program is located in a white list recorded by the second application program;
the second obtaining module is further configured to: and under the condition that the program identification information of the first application program is located in a white list recorded by the second application program, acquiring the historical data identification information according to the acquisition request.
In an optional implementation manner, the apparatus further includes:
a third obtaining module, configured to obtain, before the second application program exits from running in a foreground of the electronic device last time, historical data identification information of historical display data of the second application program displayed on an interface of the second application program;
the second cache module is used for caching the historical data identification information;
the second acquisition module includes:
and the first acquisition unit is used for acquiring the cached historical data identification information according to the acquisition request.
In an optional implementation manner, the second cache module includes:
a second replacing unit, configured to replace, by the current data identification information, data identification information of second old display data cached in the second application, where the second old display data includes: data of the second application displayed on an interface of the second application before the second application last exited adjacent to and previously exited in the foreground of the electronic device.
In a sixth aspect, the present application shows an apparatus for processing data in an electronic device, in which at least a first application and a second application are installed, the apparatus comprising:
the running module is used for running the first application program in the foreground of the electronic equipment according to the running operation under the condition that the running operation for running the first application program in the foreground of the electronic equipment is received;
the third monitoring module is used for monitoring historical data identification information of historical display data of the second application program received through a preset local port; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device; the historical data identification information is sent to the preset local port before the second application program is last exited to run in the foreground of the electronic equipment;
the third display module is used for displaying the historical data identification information in a floating mode on the interface of the first application program;
the fourth acquisition module is used for acquiring the historical display data according to the historical data identification information under the condition that the trigger operation on the historical data identification information is received;
and the fourth display module is used for displaying the historical display data.
In an alternative implementation, the fourth display module includes:
the first display unit is used for displaying the historical display data on an interface of the first application program;
alternatively, the first and second electrodes may be,
and the second display unit is used for quitting the first application program from running in the foreground of the electronic equipment, running the second application program in the foreground of the electronic equipment, and displaying the historical display data in a floating manner on an interface of the second application program.
In an optional implementation manner, the third listening module includes:
a monitoring unit, configured to monitor data received through the preset local port, where the received data at least includes: data identification information of the historical display data of the second application program and program identification information of the second application program;
a second acquisition unit configured to acquire program identification information of a second application program;
and a third obtaining unit, configured to obtain, from the received data, data identification information of history display data of the second application program according to program identification information of the second application program.
In an optional implementation manner, the received data at least includes: the corresponding relation between the program identification information of the application program and the data identification information of the historical display data displayed on the application program before the application program is last exited from the foreground of the electronic equipment to run;
the third acquisition unit includes:
and the searching subunit is used for searching the data identification information corresponding to the program identification information of the second application program in the corresponding relation, and using the data identification information as the data identification information of the history display data of the second application program.
In an optional implementation, the apparatus further comprises:
a fifth obtaining module, configured to, when current display data of the first application is displayed on an interface of the first application, obtain current data identification information of the current display data of the first application if a quit operation for quitting the first application from running in a foreground of the electronic device is received;
and the third sending module is used for sending the current data identification information to the preset local port.
In a seventh aspect, the present application shows an electronic device comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method of any of the above aspects.
In an eighth aspect, the present application illustrates a non-transitory computer-readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform a method as in any one of the above aspects.
In a ninth aspect, the present application shows a computer program product having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the method according to any one of the preceding aspects.
The technical scheme provided by the application can comprise the following beneficial effects:
in the application, the first application program is run in the foreground of the electronic equipment according to the running operation under the condition that the running operation for running the first application program in the foreground of the electronic equipment is received. And monitoring historical data identification information of historical display data of the second application program received through a preset local port. The historical display data includes: and displaying the data of the second application on the interface of the second application before the second application is exited for the last time in the foreground of the electronic equipment. The historical data identification information is sent to the preset local port before the second application program is last exited to run in the foreground of the electronic device. And displaying the historical data identification information in a floating mode on the interface of the first application program. And under the condition that the trigger operation of the historical data identification information is received, acquiring the historical display data of the second application program according to the historical data identification information. And displaying the historical display data of the second application program.
Through this application, never under the condition that the state of running first application program in the foreground of electronic equipment enters into the state of running first application program in the foreground of electronic equipment, can show automatically on first application program's interface: the history data identification information of the history display data of the second application displayed on the interface of the second application before the second application is last exited from the foreground of the electronic device is convenient for the user to use the history data identification information to enable the electronic device (for example, the first application or the second application or other applications) to display the history display data of the second application displayed on the interface of the second application before the second application is last exited from the foreground of the electronic device, so that the user can continue (for example, the first application or the second application or other applications) to view the history display data of the second application displayed on the interface of the second application before the second application is last exited from the foreground of the electronic device, the electronic equipment can display the historical display data of the second application program displayed on the interface of the second application program before the second application program is quitted to run in the foreground of the electronic equipment for the last time without the user operating the second application program for one time again, so that the user operation is simplified, and the user experience is improved.
Drawings
Fig. 1 is a flow chart of steps of a method of processing data in an electronic device of the present application.
FIG. 2 is a flow chart of steps of a method of processing data in an electronic device of the present application.
Fig. 3 is a block diagram of an apparatus for processing data in an electronic device according to the present application.
Fig. 4 is a block diagram of an apparatus for processing data in an electronic device according to the present application.
Fig. 5 is a block diagram of an apparatus for processing data in an electronic device according to the present application.
FIG. 6 is a block diagram of an electronic device of the present application.
FIG. 7 is a block diagram of one electronic device of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the process that the user views the information which is displayed by the certain application and needs to be viewed on the certain application, sometimes the user may need to use another application in the terminal temporarily due to some requirements.
However, it is necessary to make another application run in the foreground of the terminal so that the user can use the other application in the terminal, however, only one application can run in the foreground of the terminal at any time, and at this time, the certain application is run in the foreground of the terminal instead of the other application.
Therefore, when the user needs to use another application program in the terminal temporarily in the process of displaying the information needing to be checked by the certain application program, the user can switch the certain application program to the background operation of the terminal and control the terminal to operate the other application program in the foreground, so that the user can use the other application program in the terminal.
After the user finishes using another application program in the terminal, the user may need to view the information to be viewed on the certain application program again (i.e., continue to view the information to be viewed on the certain application program).
However, the user can use the certain application program in the terminal only by running the certain application program in the foreground of the terminal, so that the user needs to switch another application program to the background running of the terminal and control the terminal to run the certain application program in the foreground again when the user needs to check the information to be checked again on the certain application program.
Therefore, the user can control the terminal to restore and display the information needing to be viewed on the certain application program, and the user can view the information needing to be viewed and the like displayed on the certain application program again on the certain application program.
However, the inventor statistically analyzes the above scenario from the current situation of the result and finds that: in the case of "the user needs to check the information to be checked again on the certain application program after finishing using another application program in the terminal", the user operation is cumbersome, and the user experience is low.
In this way, a need is provided for simplifying user operations and improving user experience in the case where "the user needs to view the information to be viewed again on an application after using another application in the terminal".
In order to meet the requirements of simplifying user operation and improving user experience under the condition that a user needs to check the information needing to be checked again on one application program after finishing using another application program in a terminal, after statistical analysis is performed on the reasons of 'causing the user operation to be tedious and causing the user experience to be low', the inventor finds the reasons that are mainly: the user needs to operate the certain application program again to restore and display the information to be checked, which is displayed before the certain application program exits from running in the foreground of the terminal for the last time, on the certain application program.
Wherein, the step that the user needs to operate the certain application program again comprises the following steps: and the user controls the operation of the certain application program in the foreground of the terminal again, manually searches the information which needs to be checked and is displayed before the certain application program exits from the operation of the foreground of the terminal for the last time in the certain application program, and controls the certain application program to display the information which needs to be checked and is displayed before the certain application program exits from the operation of the foreground of the terminal for the last time.
Further, the inventor has found after performing statistical analysis on the condition that "the user needs to operate the certain application program again to restore and display the information to be viewed displayed by the certain application program before the certain application program exits from the foreground of the terminal for the last time" that:
in a scenario of "the user needs to check the information to be checked again on the certain application program after finishing using another application program in the terminal", after the user controls the certain application program to run in the foreground of the terminal again, the information to be checked, which is displayed before the certain application program quits running in the foreground of the terminal last time, is not automatically displayed on the certain application program.
The inventor analyzes the condition that the information which needs to be checked and is displayed before the certain application program exits from the foreground of the terminal for the last time on the certain application program after the user controls the certain application program to run in the foreground of the terminal again, and finds that: the reason why the information to be checked, which is displayed before the certain application program exits from the foreground running of the terminal for the last time, is not automatically displayed on the certain application program after the user controls the certain application program to run in the foreground of the terminal again, is often: the certain application program has no record of: and the certain application program exits the information needing to be checked displayed before the foreground running of the terminal for the last time.
For example, after the user switches the certain application program to the background running of the terminal and controls the terminal to run another application program in the foreground, sometimes the system resource utilization rate of the terminal may be high, in order to save the system resources of the terminal under the condition that the usage rate of the system resources of the terminal is very high, the terminal may automatically purge the certain application program running in the background from the memory of the terminal, although the information to be checked, which is displayed before the certain application program is last exited from the foreground running of the terminal, is temporarily recorded in the certain application program located in the memory, the information to be checked, after the certain application program running in the background is cleared from the memory of the terminal, the information which is displayed before the certain application program exits from running in the foreground of the terminal for the last time and needs to be checked is not recorded in the certain application program any more.
Thus, after the user switches another application program to the background operation of the terminal and controls the terminal to operate the certain application program in the foreground again, the terminal does not know that the information to be checked displayed before the certain application program exits from the foreground operation of the terminal for the last time is required to be displayed on the certain application program, and the information to be checked displayed before the certain application program exits from the foreground operation of the terminal for the last time is also not required to be displayed on the certain application program, so that default information (such as a homepage of the certain application program) of the certain application program is often displayed. That is, if there is no user's participation, the user does not have the ability to "display the information to be checked that is displayed before the certain application program last exits from the foreground of the terminal, so that the user needs to manually search the information to be checked that is displayed before the certain application program last exits from the foreground of the terminal, and control the certain application program to display the information to be checked that is displayed before the certain application program last exits from the foreground of the terminal.
In view of this, in order to meet the needs of simplifying user operations and improving user experience in the case where "the user needs to view the information to be viewed again on a certain application after finishing using another application in the terminal", the inventors thought of: after the certain application program is switched to the background running of the terminal and the terminal is controlled to run another application program on the foreground, under the condition that a user needs to check the information to be checked displayed before the certain application program is recently quitted from the foreground running of the terminal, if the information to be checked displayed before the certain application program is recently quitted from the foreground running of the terminal can be obtained, the ability of displaying the information to be checked displayed before the certain application program is recently quitted from the foreground running of the terminal is provided, so that the information to be checked displayed before the certain application program is recently quitted from the foreground running of the terminal can be automatically displayed, and the user can restore and display the information to be checked displayed before the certain application program is recently quitted from the foreground running of the terminal without operating the application program again The information of (1).
Because the user does not need to operate the certain application program again, the user operation can be simplified, and the user experience is improved.
Thus, the inventors found that the key points are: after the certain application program is switched to the background running of the terminal and the terminal is controlled to run another application program on the foreground, under the condition that the user needs to check the information which needs to be checked and is displayed before the certain application program is last exited from the foreground running of the terminal, the information which needs to be checked and is displayed before the certain application program is last exited from the foreground running of the terminal can be obtained without the participation of the user.
In view of this, the inventor thinks of the mode of the present application to automatically acquire and display the above-mentioned information to be viewed, which is displayed before the certain application program is last exited to run in the foreground of the terminal.
Specifically, referring to fig. 1, a flowchart of steps of a method for processing data in an electronic device according to the present application is shown, where the method is applied to an electronic device, where the electronic device may include a terminal or a server, and the electronic device has at least a first application and a second application installed therein, and the method may specifically include the following steps:
in step S101, in a case where a running operation for running a first application in the foreground of the electronic device is received, the first application is run in the foreground of the electronic device according to the running operation.
In this application, the first application program is not run in the foreground of the electronic device at first, however, if the user has a requirement that the first application program is run in the foreground of the electronic device, the user may control the electronic device to run the first application program in the foreground, for example, if the user needs to make the first application program run in the foreground of the electronic device, the user may input a running operation for running the first application program in the foreground of the electronic device in the electronic device. In a case where the electronic device receives an operation for running the first application in the foreground of the electronic device, the electronic device may run the first application in the foreground of the electronic device according to the operation. After the first application is run in the foreground of the electronic device, a home page or a default page of the first application, etc. may be displayed on an interface of the first application.
In step S102, history data identification information of history display data of the second application program received through the preset local port is monitored. The historical display data includes: and displaying the data of the second application on the interface of the second application before the second application is exited for the last time in the foreground of the electronic equipment. The historical data identifying information is sent to the preset local port before the second application program is exited in the foreground of the electronic device for the last time.
In the history before the running operation for running the first application in the foreground of the electronic device is received, the electronic device has run the second application in the foreground of the electronic device at least once, and in the process of running the second application in the foreground of the electronic device for the last time, the user may use the second application, for example, control the electronic device to display data (for example, history display data and the like) of the second application on an interface of the second application.
Before the second application program exits from running in the foreground of the electronic device for the last time, the electronic device may acquire historical data identification information of historical display data of the second application program, where the historical display data of the second application program includes: and sending historical data identification information of historical display data of the second application program to a preset local port.
Then, in a case of receiving an operation for operating the first application program in the foreground of the electronic device, the first application program may be operated in the foreground of the electronic device according to the operation, and then history data identification information of history display data of the second application program received through the preset local port may be monitored.
The historical data identification information of the historical display data of the second application program received through the preset local port, which is monitored at this time, is sent to the preset local port before the second application program is last exited to run in the foreground of the electronic device.
The historical display data of the second application may include: before the second application program is recently quitted from running in the foreground of the electronic equipment, the page displayed on the interface of the second application program, the content displayed on the page displayed on the interface of the second application program, the content input by the user on the page displayed on the interface of the second application program, the watching progress of the video watched by the user on the page displayed on the interface of the second application program, the chatting window/chatting content of the user chatting with other people on the page displayed on the interface of the second application program, the browsing progress of the user on the page displayed on the interface of the second application program and the like.
The history data identification information of the history display data of the second application may include: a URL (Uniform Resource Locator) of history display data of the second application, and the like.
Wherein the data identification information of different display data may be different, etc.
In an embodiment of the present application, the monitoring data identification information of the historical display data of the second application program received through the preset local port includes:
the monitoring of the data received through the preset local port at least comprises the following steps: data identification information of the history display data of the second application program and program identification information of the second application program.
For example, before the second application program exits from running in the foreground of the electronic device for the last time, in addition to "acquiring the historical data identification information of the historical display data of the second application program and sending the historical data identification information of the historical display data of the second application program to the preset local port", other data identification information of other display data of other application programs may be acquired, and the other display data includes: data of the other application displayed on the interface of the other application before the other application last exited in the foreground of the electronic device. The other data identification information is sent to the preset local port before the other application program is last exited to run in the foreground of the electronic device.
Wherein the time when the other application program last exited running in the foreground of the electronic device is earlier than the time when the second application program last exited running in the foreground of the electronic device.
As such, in the case of receiving a running operation for running the first application in the foreground of the electronic device, the monitoring of the data received through the preset local port includes: data identification information of history display data of the second application program and data identification information of history display data of other application programs, and the like.
And program identification information of the second application program may also be acquired.
In one embodiment, a white list recorded in the first application may be obtained, where the white list recorded in the first application may be set in advance, for example, may be set in advance by a developer of the first application, and the white list recorded in the first application includes program identification information of at least one application. The program identification information of the at least one application program includes program identification information of the second application program. In this way, the program identification information of the second application program may be obtained from the white list recorded in the first application program, and the application program corresponding to the program identification information in the white list recorded in the first application program is an application program supported by the first application program.
The applications supported by the first application may be understood as: historical data identification information of historical display data of the supported application displayed on the interface of the supported application before the supported application is last exited in the foreground of the electronic device can be displayed on the interface of the first application.
In this way, the data identification information of the history display data of the second application program can be acquired from the received data according to the program identification information of the second application program.
Wherein, the received data at least comprises: and the corresponding relation between the program identification information of the application program and the data identification information of the historical display data displayed on the application program before the application program is last exited to run in the foreground of the electronic equipment. The different program identification information corresponds to data identification information of historical display data displayed on the application program before the different application program is last exited from the foreground of the electronic device to run.
In this way, when the data identification information of the history display data of the second application is acquired from the received data according to the program identification information of the second application, the data identification information corresponding to the program identification information of the second application can be searched in the correspondence relationship and used as the data identification information of the history display data of the second application.
The program identification information differs for different applications.
In step S103, the history data identification information is displayed in a floating manner on the interface of the first application.
After the first application program runs in the foreground of the electronic device, data of the first application program is often displayed on an interface of the first application program, and a homepage or a default page of the first application program is displayed on the interface of the first application program.
In this way, the historical data identification information may be displayed in a floating manner on the interface of the first application, the historical data identification information may occupy only a small portion of the interface of the first application, and the displayed historical data identification information does not affect the user in viewing the data of the first application displayed on the interface of the first application. Therefore, the data of the first application program displayed on the interface of the first application program can be seen on the electronic equipment, and the historical data identification information can also be seen.
In step S104, in the case where the trigger operation for the history data identification information is received, the history display data of the second application program is acquired based on the history data identification information.
In an embodiment, the historical data identification information may be carried in the form of an icon or a brief text, and the like, and is used to prompt the historical display data of the second application program, that is, the user may know that the historical display data of the second application program is viewed on the second application program by himself before according to the historical data identification information, and prompt the user to "if the user needs to view the historical display data of the second application program, the historical display data of the second application program may be viewed by triggering the historical data identification information".
And because all the information of the historical display data of the second application program is not recorded in the historical data identification information, the user cannot view all the information of the historical display data of the second application program according to the historical data identification information.
In this way, if the user needs to view the history display data of the second application (that is, needs to view all the information of the history display data of the second application) after the user finishes using the first application, the user may control the electronic device to display the history display data of the second application.
For example, after the history data identification information is displayed on the interface of the first application in a floating manner, if the user needs to view the history display data of the second application, the user may input a trigger operation on the history data identification information in the electronic device, and in a case that the electronic device receives the trigger operation on the history data identification information, the history display data of the second application may be acquired according to the history data identification information, for example, the history display data of the second application may be downloaded from the network according to the history data identification information, and then step S105 may be performed.
In step S105, the history display data of the second application is displayed.
In one embodiment, the historical display data of the second application is displayed on the interface of the first application so that the user can directly see the historical display data of the second application on the interface of the first application. Compared with a mode that the first application program is switched to the background operation of the electronic equipment, the second application program is switched to the foreground operation of the electronic equipment, and then the historical display data of the second application program is displayed on the interface of the second application program, the mode of the embodiment can improve the efficiency of the user in viewing the historical display data of the second application program.
Or, in another embodiment, multiple types of manipulation operations are supported on the history display data of the second application program to meet different requirements of users, but sometimes, the history display data of the second application program is subordinate to the second application program, the second application program has some types of manipulation rights on the history display data of the second application program, and the first application program does not have the types of manipulation rights on the history display data of the first application program.
In this way, in the case that the history display data of the second application is displayed on the interface of the second application (that is, the history display data of the second application is displayed by the second application), the execution of these types of manipulation operations on the history display data of the second application is supported, and in the case that the history display data of the second application is displayed on the interface of the second application (that is, the history display data of the second application is not displayed by the second application), the execution of these types of manipulation operations on the history display data of the second application is not supported.
Therefore, in order to facilitate a user to execute a corresponding type of operation and control on the history display data of the second application program according to the actual requirement of the user, the first application program can be quitted from running in the foreground of the electronic equipment, the second application program is run in the foreground of the electronic equipment, and the history display data of the second application program is displayed on the interface of the second application program.
In the application, the first application program is run in the foreground of the electronic equipment according to the running operation under the condition that the running operation for running the first application program in the foreground of the electronic equipment is received. And monitoring historical data identification information of historical display data of the second application program received through the preset local port. The historical display data includes: data of the second application displayed on the interface of the second application before the second application last exited in the foreground of the electronic device. The historical data identification information is sent to the preset local port before the second application program is last exited to run in the foreground of the electronic device. And displaying the historical data identification information in a floating mode on the interface of the first application program. And under the condition that the trigger operation of the historical data identification information is received, acquiring the historical display data of the second application program according to the historical data identification information. And displaying the historical display data of the second application program.
Through this application, never under the condition that the state of running first application program in the foreground of electronic equipment enters into the state of running first application program in the foreground of electronic equipment, can show automatically on first application program's interface: the history data identification information of the history display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground of the electronic device is convenient for a user to enable the electronic device (for example, on the first application program or the second application program or other application programs) to display the history display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground of the electronic device by means of the history data identification information, so that the user can continue to view (for example, on the first application program or the second application program or other application programs) the history display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground of the electronic device, the electronic equipment can display the historical display data of the second application program displayed on the interface of the second application program before the second application program is quitted to run in the foreground of the electronic equipment for the last time without the user operating the second application program for one time again, so that the user operation is simplified, and the user experience is improved.
Further, in another embodiment of the present application, in a case that current display data of the first application program is displayed on an interface of the first application program, if a quit operation for quitting the first application program from running in a foreground of the electronic device is received, current data identification information of the current display data of the first application program may be acquired, and then the current data identification information may be sent to the preset local port.
And under the condition that the first application program exits from running in the foreground of the electronic equipment and the third application program is switched to running in the foreground of the electronic equipment, the current data identification information received through the preset local port can be monitored, the current data identification information is displayed on the interface of the third application program in a suspending manner, and under the condition that the trigger operation on the current data identification information is received, the current display data of the first application program is obtained according to the current data identification information and displayed so that the user can view the current display data of the first application program.
On the other hand, referring to fig. 2, a flowchart of steps of a method for processing data in an electronic device according to the present application is shown, where at least a first application and a second application are installed in the electronic device, the first application is running in a foreground of the electronic device, and the second application is running in a background of the electronic device.
One of the understanding modes of the first application program running in the foreground of the electronic device and the second application program running in the background of the electronic device is as follows: initially a first application is not running in the foreground of the electronic device and a second application is running in the foreground of the electronic device, the second application being used by the user. However, in the process that the user uses the second application, the user temporarily has a requirement for using the first application in the electronic device, and thus has a requirement for running the first application in the foreground of the electronic device, in which case the user can control the electronic device to run the first application in the foreground, for example, if the user needs to make the first application run in the foreground of the electronic device and the second application run in the background of the electronic device, the user can input a running operation for running the first application in the foreground of the electronic device in the electronic device. When the electronic device receives an operation for running the first application program in the foreground of the electronic device, the electronic device may switch the second application program to run in the background of the electronic device according to the operation, and run the first application program in the foreground of the electronic device. After the first application is launched in the foreground of the electronic device, a home page or a default page of the first application, etc., may be displayed on an interface of the first application.
That is, one of the understanding manners of "the first application runs in the foreground of the electronic device, and the second application runs in the background of the electronic device" is as follows: the second application has just switched to running in the background of the electronic device and the first application has just switched to running in the foreground of the electronic device, etc.
It should be noted that, from a hardware perspective, the solution of the present application is executed by an electronic device, and from a software perspective, the solution of the present application is formed by interaction between a first application program and a second application program in the electronic device, where the first application program executes some steps, and the second application program executes other steps.
For ease of understanding, the present embodiment is described in terms of software, but not as a limitation on the scope of the present application.
Specifically, the method may specifically include the following steps:
in step S201, the first application sends an acquisition request to a preset local port, where the acquisition request is used to acquire history data identification information of history display data of the second application. The historical display data includes: and displaying the data of the second application on the interface of the second application before the second application is exited for the last time in the foreground of the electronic equipment.
In an embodiment of the present application, during a history process before the first application runs in the foreground of the electronic device, the electronic device has run the second application at least once in the foreground of the electronic device, and during a process that the second application is recently run in the foreground of the electronic device, the user may use the second application, for example, control the electronic device to display data (for example, history display data, and the like) of the second application on an interface of the second application, however, there is a possibility that the user needs to control the electronic device to quit the second application from running in the foreground of the electronic device due to some requirements, for example, switch the second application to running in the background of the electronic device or directly quit the second application to stop running the second application, and the like.
Before the second application program exits from running in the foreground of the electronic device, the second application program may acquire historical data identification information of historical display data of the second application program, where the historical display data of the second application program includes: and after the second application program exits from the data of the second application program displayed on the interface of the second application program before the second application program runs in the foreground of the electronic equipment, caching the historical data identification information.
Then, under the condition that the second application program exits from running in the foreground of the electronic device and the first application program runs in the foreground of the electronic device, the historical data identification information can be displayed in a floating mode on an interface of the first application program to inform a user that historical display data of the second application program can be checked on the first application program according to the historical data identification information, and therefore the first application program can send an acquisition request to a preset local port.
The historical display data of the second application may include: before the second application program is recently exited to run in the foreground of the electronic device, the page displayed on the interface of the second application program, the content being displayed on the page displayed on the interface of the second application program, the content that the user has input on the page displayed on the interface of the second application program, the viewing progress of the video viewed by the user on the page displayed on the interface of the second application program, the chat window/chat content of the user chatting with others on the page displayed on the interface of the second application program, the browsing progress of the user on the page displayed on the interface of the second application program, and the like.
The history data identification information of the history display data of the second application may include: a URL (Uniform Resource Locator) of history display data of the second application, and the like.
Wherein the data identification information of different display data may be different, etc.
In step S202, the second application listens for an acquisition request received through the preset local port.
In step S203, the second application acquires history data identification information according to the acquisition request.
In an embodiment of the application, the obtaining request further carries program identification information of the first application program. Thus, before obtaining the historical data identification information according to the obtaining request, the method further includes:
it may be determined whether the program identification information of the first application is located in a white list recorded by the second application. And under the condition that the program identification information of the first application program is located in the white list recorded by the second application program, acquiring historical data identification information according to the acquisition request.
The white list recorded by the second application may be set in advance, for example, may be set by a developer of the second application in advance, and the white list recorded by the second application includes program identification information of at least one application. And the application program corresponding to the program identification information in the white list recorded in the second application program is an application program trusted by the second application program, and the like.
By the method and the device, the second application program can be verified for the first application program, the application program which supports trust of the second application program can acquire the data of the second application program which is displayed on the interface of the second application program before the second application program is recently quitted from running in the foreground of the electronic equipment, and the application program which does not support distrust of the second application program can acquire the data of the second application program which is displayed on the interface of the second application program before the second application program is recently quitted from running in the foreground of the electronic equipment, so that the data security of the second application program can be improved.
In another embodiment, as described in step S202, before the second application program exits from running in the foreground of the electronic device for the last time, history data identification information of history display data of the second application program displayed on the interface of the second application program may be acquired and cached, for example, the history data identification information is cached in the second application program.
As such, when the second application acquires the history data identification information according to the acquisition request in step S103, the second application may acquire the cached history data identification information according to the acquisition request.
Further, in another embodiment, when the second application caches the historical data identification information, the current data identification information may be used to replace data identification information of second old display data cached in the second application, the second old display data including: data of a second application displayed on an interface of the second application before a last exit of the second application from an adjacent previous exit running in a foreground of the electronic device. The cached data identification information of the second application is only provided with historical data identification information of data of the second application displayed on the interface of the second application before the second application (which has occurred by taking the real-time as a reference) is last exited before the foreground running of the electronic device, and is not provided with data identification information of data of the second application displayed on the interface of the second application before the second application (which has taken the real-time as a reference) is exited earlier (for example, the last time, namely the last time, but the last time or the third last time, and the like), so that the timeliness and the like of the cached data identification information are improved.
In step S204, the second application program sends the history data identification information to the preset local port.
In step S205, the first application monitors the history data identification information received through the preset local port.
In step S206, the first application displays the history data identification information on the interface of the first application in a floating manner.
When the first application runs in the foreground of the electronic device, data of the first application is often displayed on an interface of the first application, and a homepage or a default page of the first application is displayed on the interface of the first application.
In this way, the historical data identification information may be displayed in a floating manner on the interface of the first application, the historical data identification information may occupy only a small portion of the interface of the first application, and the displayed historical data identification information does not affect the user in viewing the data of the first application displayed on the interface of the first application. This allows the first application to view both the data of the first application displayed on the interface of the first application and the historical data identifying information.
In step S207, the first application program acquires history display data from the history data identification information in a case where the trigger operation for the history data identification information is received.
In an embodiment, the historical data identification information may be carried in the form of an icon or a brief text, and the like, and is used to prompt the historical display data of the second application program, that is, the user may know that the historical display data of the second application program is viewed on the second application program by himself before according to the historical data identification information, and prompt the user to "if the user needs to view the historical display data of the second application program, the historical display data of the second application program may be viewed by triggering the historical data identification information".
And because all the information of the historical display data of the second application program is not recorded in the historical data identification information, the user cannot view all the information of the historical display data of the second application program according to the historical data identification information.
In this way, if the user needs to view the history display data of the second application (that is, needs to view all the information of the history display data of the second application) after the user finishes using the first application, the user may control the first application to display the history display data of the second application.
For example, after displaying the historical data identification information in a floating manner on the interface of the first application program, if the user needs to view the historical display data of the second application program, the user may input a trigger operation on the historical data identification information, and in a case where the first application program receives the trigger operation on the historical data identification information, the historical display data of the second application program may be acquired according to the historical data identification information, for example, the historical display data of the second application program may be downloaded from the network according to the historical data identification information, and then step S208 may be executed.
In step S208, the first application displays the history display data on the interface of the first application.
In one embodiment, the historical display data of the second application is displayed on the interface of the first application so that the user can directly see the historical display data of the second application on the interface of the first application. Compared with a mode that the first application program is switched to the background operation of the electronic equipment, the second application program is switched to the foreground operation of the electronic equipment, and then the historical display data of the second application program is displayed on the interface of the second application program, the mode of the embodiment can improve the efficiency of the user in viewing the historical display data of the second application program.
Through this application, never under the condition that the state of running first application program in the foreground of electronic equipment enters into the state of running first application program in the foreground of electronic equipment, can show automatically on first application program's interface: the historical data identification information of the historical display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment is convenient for a user to display the historical display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment by means of the historical data identification information, the user can further continue to view the historical display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment on the first application program, and the first application program can be displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment without the user operating the application program again The history display data simplifies the user operation and improves the user experience.
Further, in another embodiment of the present application, in a case that currently displayed data of the first application is displayed on the interface of the first application, if the first application needs to be exited from the foreground of the electronic device, before the first application exits from the foreground of the electronic device, the first application may obtain current data identification information of the currently displayed data displayed on the interface of the first application, and cache the current data identification information, for example, cache the current data identification information in the first application.
And under the condition that the first application program exits from running in the foreground of the electronic equipment and the third application program is switched to running in the foreground of the electronic equipment, the third application program can also acquire the current data identification information displayed on the interface of the first application program from the first application program, display the current data identification information in a suspending manner on the interface of the third application program, acquire the current display data of the first application program according to the current data identification information under the condition that the triggering operation of the current data identification information is received, and display the current display data of the first application program on the interface of the third application program for a user to check the current display data of the first application program on the third application program.
Further, in another embodiment, when the first application program caches the current data identification information, the first application program may replace data identification information of first old display data cached in the first application program with the current data identification information, the first old display data including: data of a first application displayed on an interface of the first application before the first application last exited in a foreground of the electronic device. The cached data identification information of the first application program only has the current data identification information of the data of the first application program displayed on the interface of the first application program before the first application program exits from the foreground operation of the electronic equipment at this time, but does not have the data identification information of the data of the first application program displayed on the interface of the first application program before the first application program exits from the foreground operation of the electronic equipment for the earlier time adjacent to the exiting at this time in the history process of the first application program, so that the timeliness of the cached data identification information is improved.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.
Referring to fig. 3, a block diagram of an apparatus for processing data in an electronic device according to the present application is shown, where at least a first application and a second application are installed in the electronic device, the first application runs in a foreground of the electronic device, the second application runs in a background of the electronic device, and the apparatus is applied to the first application; the device comprises:
a first sending module 11, configured to send an obtaining request to a preset local port, where the obtaining request is used to obtain historical data identification information of historical display data of the second application; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
a first monitoring module 12, configured to monitor the historical data identification information received through a preset local port, where the historical data identification information is obtained according to the obtaining request and sent to the preset local port when the second application monitors the obtaining request received through the preset local port;
the first display module 13 is configured to display the historical data identification information in a floating manner on the interface of the first application;
a receiving module 14, configured to, when a trigger operation on the historical data identification information is received, obtain the historical display data according to the historical data identification information;
and a second display module 15, configured to display the historical display data on an interface of the first application.
In an optional implementation manner, the obtaining request further carries program identification information of the first application program; the historical data identification information is obtained according to the acquisition request and sent to a preset local port when the second application program monitors the acquisition request received through the preset local port and the second application program determines that the program identification information of the first application program is located in a white list recorded by the second application program.
In an optional implementation, the apparatus further comprises:
a first obtaining module, configured to, under a condition that current display data of the first application program is displayed on an interface of the first application program, if the first application program needs to be exited from a foreground of the electronic device to operate, obtain current data identification information of the current display data displayed on the interface of the first application program before the first application program exits from the foreground of the electronic device to operate;
and the first cache module is used for caching the current data identification information.
In an optional implementation manner, the first cache module includes:
a first replacing unit, configured to replace, by using the current data identification information, data identification information of first old display data cached in the first application program, where the first old display data includes: data of the first application displayed on an interface of the first application before the first application last exited running in a foreground of the electronic device.
In the application, the first application program is run in the foreground of the electronic equipment according to the running operation under the condition that the running operation for running the first application program in the foreground of the electronic equipment is received. And monitoring historical data identification information of historical display data of the second application program received through a preset local port. The historical display data includes: and displaying the data of the second application on the interface of the second application before the second application is exited for the last time in the foreground of the electronic equipment. The historical data identification information is sent to the preset local port before the second application program is last exited to run in the foreground of the electronic device. And displaying the historical data identification information in a floating mode on the interface of the first application program. And under the condition that the trigger operation of the historical data identification information is received, acquiring the historical display data of the second application program according to the historical data identification information. And displaying the historical display data of the second application program.
Through this application, never under the condition that the state of running first application program in the foreground of electronic equipment enters into the state of running first application program in the foreground of electronic equipment, can show automatically on first application program's interface: the history data identification information of the history display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground of the electronic device is convenient for a user to enable the electronic device (for example, on the first application program or the second application program or other application programs) to display the history display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground of the electronic device by means of the history data identification information, so that the user can continue to view (for example, on the first application program or the second application program or other application programs) the history display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground of the electronic device, the user does not need to operate the second application program again, the electronic device can be enabled to display the historical display data of the second application program displayed on the interface of the second application program before the second application program exits from the foreground of the electronic device for operation last time, user operation is simplified, and user experience is improved.
Referring to fig. 4, a block diagram of an apparatus for processing data in an electronic device according to the present application is shown, where at least a first application and a second application are installed in the electronic device, the first application runs in a foreground of the electronic device, the second application runs in a background of the electronic device, and the apparatus is applied to the second application; the device comprises:
a second monitoring module 21, configured to monitor an acquisition request received through a preset local port, where the acquisition request is sent by the first application program to the preset local port, and the acquisition request is used to acquire historical data identification information of historical display data of the second application program; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
a second obtaining module 22, configured to obtain the historical data identification information according to the obtaining request;
the second sending module 23 is configured to send the historical data identification information to the preset local port, so that the first application monitors the historical data identification information received through the preset local port, displays the historical data identification information on an interface of the first application in a floating manner, acquires the historical display data according to the historical data identification information when a trigger operation on the historical data identification information is received, and displays the historical display data on the interface of the first application.
In an optional implementation manner, the obtaining request further carries program identification information of the first application program;
the device further comprises:
a determining module, configured to determine whether the program identification information of the first application program is located in a white list recorded by the second application program;
the second obtaining module is further configured to: and under the condition that the program identification information of the first application program is located in a white list recorded by the second application program, acquiring the historical data identification information according to the acquisition request.
In an optional implementation, the apparatus further comprises:
a third obtaining module, configured to obtain, before the second application program exits from running in a foreground of the electronic device for the last time, historical data identification information of historical display data of the second application program displayed on an interface of the second application program;
the second cache module is used for caching the historical data identification information;
the second acquisition module includes:
and the first acquisition unit is used for acquiring the cached historical data identification information according to the acquisition request.
In an optional implementation manner, the second cache module includes:
a second replacing unit, configured to replace, by the current data identification information, data identification information of second old display data cached in the second application program, where the second old display data includes: data of the second application displayed on an interface of the second application before the second application last exited adjacent to and previously exited in the foreground of the electronic device.
Through this application, never under the condition that the state of running first application program in the foreground of electronic equipment enters into the state of running first application program in the foreground of electronic equipment, can show automatically on first application program's interface: the historical data identification information of the historical display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment is convenient for a user to display the historical display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment by means of the historical data identification information, the user can further continue to view the historical display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment on the first application program, and the first application program can be displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment without the user operating the application program again The history display data simplifies the user operation and improves the user experience.
Referring to fig. 5, a block diagram of an apparatus for processing data in an electronic device, in which at least a first application and a second application are installed, is shown, and the apparatus includes:
the running module 31 is configured to, when receiving a running operation for running the first application in the foreground of the electronic device, run the first application in the foreground of the electronic device according to the running operation;
a third monitoring module 32, configured to monitor historical data identification information of historical display data of the second application program received through a preset local port; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device; the historical data identification information is sent to the preset local port before the second application program is last exited to run in the foreground of the electronic equipment;
a third display module 33, configured to display the historical data identification information in a floating manner on the interface of the first application;
a fourth obtaining module 34, configured to, in a case that a trigger operation on the historical data identification information is received, obtain the historical display data according to the historical data identification information;
and a fourth display module 35, configured to display the history display data.
In an alternative implementation, the fourth display module includes:
the first display unit is used for displaying the historical display data on an interface of the first application program;
alternatively, the first and second electrodes may be,
and the second display unit is used for quitting the first application program from running in the foreground of the electronic equipment, running the second application program in the foreground of the electronic equipment, and displaying the historical display data in a floating manner on an interface of the second application program.
In an optional implementation manner, the third listening module includes:
a monitoring unit, configured to monitor data received through the preset local port, where the received data at least includes: data identification information of the historical display data of the second application program and program identification information of the second application program;
a second acquisition unit configured to acquire program identification information of a second application program;
and a third obtaining unit, configured to obtain, from the received data, data identification information of history display data of the second application program according to program identification information of the second application program.
In an optional implementation manner, the received data at least includes: the corresponding relation between the program identification information of the application program and the data identification information of the historical display data displayed on the application program before the application program is last exited from the foreground of the electronic equipment to run;
the third acquisition unit includes:
and the searching subunit is used for searching the data identification information corresponding to the program identification information of the second application program in the corresponding relationship, and the data identification information is used as the data identification information of the history display data of the second application program.
In an optional implementation manner, the apparatus further includes:
a fifth obtaining module, configured to, when current display data of the first application is displayed on an interface of the first application, obtain current data identification information of the current display data of the first application if a quit operation for quitting the first application from running in a foreground of the electronic device is received;
and the third sending module is used for sending the current data identification information to the preset local port.
Through this application, never under the condition that the state of running first application program in the foreground of electronic equipment enters into the state of running first application program in the foreground of electronic equipment, can show automatically on first application program's interface: the historical data identification information of the historical display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment is convenient for a user to display the historical display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment by means of the historical data identification information, the user can further continue to view the historical display data of the second application program displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment on the first application program, and the first application program can be displayed on the interface of the second application program before the second application program is last exited from the foreground operation of the electronic equipment without the user operating the application program again The history display data simplifies the user operation and improves the user experience.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Optionally, an embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement each process of any one of the above method embodiments, and can achieve the same technical effect, and are not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of any one of the above method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 6 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 7 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 7, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, that are executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the methods described above.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (28)

1. A method for processing data in an electronic device is characterized in that at least a first application program and a second application program are installed in the electronic device, the first application program runs in a foreground of the electronic device, the second application program runs in a background of the electronic device, and the method is applied to the first application program; the method comprises the following steps:
sending an acquisition request to a preset local port, wherein the acquisition request is used for acquiring historical data identification information of historical display data of the second application program; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
monitoring the historical data identification information received through a preset local port, wherein the historical data identification information is acquired according to the acquisition request and is sent to the preset local port under the condition that the second application program monitors the acquisition request received through the preset local port;
displaying the historical data identification information in a floating mode on an interface of the first application program;
under the condition that trigger operation on the historical data identification information is received, acquiring the historical display data according to the historical data identification information;
displaying the historical display data on an interface of the first application program.
2. The method of claim 1, wherein the acquisition request further carries program identification information of the first application program; the historical data identification information is obtained according to the acquisition request and sent to a preset local port when the second application program monitors the acquisition request received through the preset local port and the second application program determines that the program identification information of the first application program is located in a white list recorded by the second application program.
3. The method of claim 1, further comprising:
under the condition that the current display data of the first application program is displayed on the interface of the first application program, if the first application program needs to be quitted from running in the foreground of the electronic equipment, the current data identification information of the current display data displayed on the interface of the first application program is obtained and cached before the first application program quits from running in the foreground of the electronic equipment.
4. The method of claim 3, wherein caching the current data identification information comprises:
replacing data identification information of first old display data cached in the first application program by using the current data identification information, wherein the first old display data comprises: displaying data of the first application on an interface of the first application before the first application last exited in a foreground of the electronic device.
5. A method for processing data in an electronic device is characterized in that at least a first application program and a second application program are installed in the electronic device, the first application program runs in a foreground of the electronic device, the second application program runs in a background of the electronic device, and the method is applied to the second application program; the method comprises the following steps:
monitoring an acquisition request received through a preset local port, wherein the acquisition request is sent to the preset local port by the first application program, and the acquisition request is used for acquiring historical data identification information of historical display data of the second application program; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
acquiring the historical data identification information according to the acquisition request;
sending the historical data identification information to the preset local port so that the first application program monitors the historical data identification information received through the preset local port, displaying the historical data identification information in a suspending manner on an interface of the first application program, acquiring the historical display data according to the historical data identification information under the condition that the trigger operation on the historical data identification information is received, and displaying the historical display data on the interface of the first application program.
6. The method of claim 5, wherein the obtaining request further carries program identification information of the first application program;
before the obtaining the historical data identification information according to the obtaining request, the method further includes:
determining whether the program identification information of the first application program is located in a white list recorded by the second application program;
and under the condition that the program identification information of the first application program is located in the white list recorded by the second application program, executing the step of acquiring the historical data identification information according to the acquisition request.
7. The method of claim 5, further comprising:
acquiring historical data identification information of historical display data of the second application program displayed on an interface of the second application program before the second application program is exited to run in a foreground of the electronic equipment for the last time, and caching the historical data identification information;
the acquiring the historical data identification information according to the acquisition request comprises:
and acquiring the cached historical data identification information according to the acquisition request.
8. The method of claim 7, wherein caching the historical data identifying information comprises:
replacing data identification information of second old display data cached in the second application program by using the current data identification information, wherein the second old display data comprises: data of the second application displayed on an interface of the second application before the second application last exited adjacent to and previously exited in the foreground of the electronic device.
9. A method of processing data in an electronic device, wherein at least a first application and a second application are installed in the electronic device, the method comprising:
under the condition that the running operation for running the first application program in the foreground of the electronic equipment is received, running the first application program in the foreground of the electronic equipment according to the running operation;
monitoring historical data identification information of historical display data of the second application program received through a preset local port; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device; the historical data identification information is sent to the preset local port before the second application program is last exited to run in the foreground of the electronic equipment;
displaying the historical data identification information in a floating mode on an interface of the first application program;
under the condition that trigger operation on the historical data identification information is received, obtaining the historical display data according to the historical data identification information;
and displaying the historical display data.
10. The method of claim 9, wherein said displaying said historical display data comprises:
displaying the historical display data on an interface of the first application program;
alternatively, the first and second electrodes may be,
and quitting the first application program from running in the foreground of the electronic equipment, running the second application program in the foreground of the electronic equipment, and displaying the historical display data in a floating manner on an interface of the second application program.
11. The method of claim 9, wherein the listening for data identification information of the historical display data of the second application received through a preset local port comprises:
monitoring data received through the preset local port, wherein the received data at least comprises: data identification information of the historical display data of the second application program and program identification information of the second application program;
acquiring program identification information of a second application program;
and acquiring data identification information of historical display data of the second application program from the received data according to the program identification information of the second application program.
12. The method of claim 11, wherein the received data comprises at least: the corresponding relation between the program identification information of the application program and the data identification information of the historical display data displayed on the application program before the application program is last exited from the foreground of the electronic equipment to run;
the acquiring, from the received data according to the program identification information of the second application program, the data identification information of the history display data of the second application program includes:
and searching data identification information corresponding to the program identification information of the second application program in the corresponding relation, and using the data identification information as the data identification information of the historical display data of the second application program.
13. The method of claim 9, further comprising:
under the condition that the current display data of the first application program is displayed on the interface of the first application program, if an exit operation for exiting the first application program from running in the foreground of the electronic equipment is received, acquiring the current data identification information of the current display data of the first application program;
and sending the current data identification information to the preset local port.
14. An apparatus for processing data in an electronic device, wherein at least a first application and a second application are installed in the electronic device, the first application runs in a foreground of the electronic device, the second application runs in a background of the electronic device, and the apparatus is applied to the first application; the device comprises:
the first sending module is used for sending an acquisition request to a preset local port, wherein the acquisition request is used for acquiring historical data identification information of historical display data of the second application program; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
the first monitoring module is used for monitoring the historical data identification information received through a preset local port, and the historical data identification information is acquired according to the acquisition request and sent to the preset local port under the condition that the second application program monitors the acquisition request received through the preset local port;
the first display module is used for displaying the historical data identification information in a floating mode on an interface of the first application program;
the receiving module is used for acquiring the historical display data according to the historical data identification information under the condition that the trigger operation on the historical data identification information is received;
and the second display module is used for displaying the historical display data on the interface of the first application program.
15. The apparatus according to claim 14, wherein the obtaining request further carries program identification information of the first application program; the historical data identification information is obtained according to the acquisition request and sent to a preset local port when the second application program monitors the acquisition request received through the preset local port and the second application program determines that the program identification information of the first application program is located in a white list recorded by the second application program.
16. The apparatus of claim 14, further comprising:
a first obtaining module, configured to, under a condition that current display data of the first application program is displayed on an interface of the first application program, if the first application program needs to be exited from a foreground of the electronic device to operate, obtain current data identification information of the current display data displayed on the interface of the first application program before the first application program exits from the foreground of the electronic device to operate;
and the first cache module is used for caching the current data identification information.
17. The apparatus of claim 16, wherein the first cache module comprises:
a first replacing unit, configured to replace, by using the current data identification information, data identification information of first old display data cached in the first application program, where the first old display data includes: displaying data of the first application on an interface of the first application before the first application last exited in a foreground of the electronic device.
18. An apparatus for processing data in an electronic device, wherein at least a first application and a second application are installed in the electronic device, the first application runs in a foreground of the electronic device, the second application runs in a background of the electronic device, and the apparatus is applied to the second application; the device comprises:
the second monitoring module is used for monitoring an acquisition request received through a preset local port, wherein the acquisition request is sent to the preset local port by the first application program, and the acquisition request is used for acquiring historical data identification information of historical display data of the second application program; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device;
the second acquisition module is used for acquiring the historical data identification information according to the acquisition request;
the second sending module is used for sending the historical data identification information to the preset local port so that the first application program monitors the historical data identification information received through the preset local port, the historical data identification information is displayed on an interface of the first application program in a suspending mode, under the condition that the trigger operation of the historical data identification information is received, the historical display data is obtained according to the historical data identification information, and the historical display data is displayed on the interface of the first application program.
19. The apparatus according to claim 18, wherein the obtaining request further carries program identification information of the first application program;
the device further comprises:
a determining module, configured to determine whether the program identification information of the first application program is located in a white list recorded by the second application program;
the second obtaining module is further configured to: and under the condition that the program identification information of the first application program is located in a white list recorded by the second application program, acquiring the historical data identification information according to the acquisition request.
20. The apparatus of claim 18, further comprising:
a third obtaining module, configured to obtain, before the second application program exits from running in a foreground of the electronic device for the last time, historical data identification information of historical display data of the second application program displayed on an interface of the second application program;
the second cache module is used for caching the historical data identification information;
the second acquisition module includes:
and the first acquisition unit is used for acquiring the cached historical data identification information according to the acquisition request.
21. The apparatus of claim 20, wherein the second cache module comprises:
a second replacing unit, configured to replace, by the current data identification information, data identification information of second old display data cached in the second application program, where the second old display data includes: data of the second application displayed on an interface of the second application before the second application last exited adjacent to and previously exited in the foreground of the electronic device.
22. An apparatus for processing data in an electronic device, wherein at least a first application and a second application are installed in the electronic device, the apparatus comprising:
the running module is used for running the first application program in the foreground of the electronic equipment according to the running operation under the condition that the running operation for running the first application program in the foreground of the electronic equipment is received;
the third monitoring module is used for monitoring historical data identification information of historical display data of the second application program received through a preset local port; the historical display data includes: data of the second application displayed on an interface of the second application before the second application last exited running in the foreground of the electronic device; the historical data identification information is sent to the preset local port before the second application program is last exited to run in the foreground of the electronic equipment;
the third display module is used for displaying the historical data identification information in a floating mode on the interface of the first application program;
the fourth acquisition module is used for acquiring the historical display data according to the historical data identification information under the condition that the trigger operation on the historical data identification information is received;
and the fourth display module is used for displaying the historical display data.
23. The apparatus of claim 22, wherein the fourth display module comprises:
the first display unit is used for displaying the historical display data on an interface of the first application program;
alternatively, the first and second electrodes may be,
and the second display unit is used for quitting the first application program from running in the foreground of the electronic equipment, running the second application program in the foreground of the electronic equipment, and displaying the historical display data in a floating manner on an interface of the second application program.
24. The apparatus of claim 22, wherein the third listening module comprises:
a monitoring unit, configured to monitor data received through the preset local port, where the received data at least includes: data identification information of the historical display data of the second application program and program identification information of the second application program;
a second acquisition unit configured to acquire program identification information of a second application program;
a third obtaining unit, configured to obtain, from the received data, data identification information of history display data of the second application program according to program identification information of the second application program.
25. The apparatus of claim 24, wherein the received data comprises at least: the corresponding relation between the program identification information of the application program and the data identification information of the historical display data displayed on the application program before the application program is last exited from the foreground of the electronic equipment to run;
the third acquisition unit includes:
and the searching subunit is used for searching the data identification information corresponding to the program identification information of the second application program in the corresponding relation, and using the data identification information as the data identification information of the history display data of the second application program.
26. The apparatus of claim 22, further comprising:
a fifth obtaining module, configured to, when current display data of the first application is displayed on an interface of the first application, obtain current data identification information of the current display data of the first application if a quit operation for quitting the first application from running in a foreground of the electronic device is received;
and the third sending module is used for sending the current data identification information to the preset local port.
27. An electronic device, comprising: processor, memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 13.
28. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 13.
CN202210542351.XA 2022-05-18 2022-05-18 Method and device for processing data in electronic equipment, electronic equipment and storage medium Pending CN114942808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210542351.XA CN114942808A (en) 2022-05-18 2022-05-18 Method and device for processing data in electronic equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210542351.XA CN114942808A (en) 2022-05-18 2022-05-18 Method and device for processing data in electronic equipment, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114942808A true CN114942808A (en) 2022-08-26

Family

ID=82907521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210542351.XA Pending CN114942808A (en) 2022-05-18 2022-05-18 Method and device for processing data in electronic equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114942808A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932893A (en) * 2015-06-23 2015-09-23 北京奇虎科技有限公司 Event reminding method and device based on application program
CN106802803A (en) * 2017-01-06 2017-06-06 腾讯科技(深圳)有限公司 The method and apparatus of application data treatment
CN107870784A (en) * 2017-11-24 2018-04-03 维沃移动通信有限公司 A kind of display control method, mobile terminal and computer-readable recording medium
CN108304108A (en) * 2018-01-22 2018-07-20 维沃移动通信有限公司 A kind of icon display method and mobile terminal of application program
CN108664304A (en) * 2018-05-03 2018-10-16 广州腾讯科技有限公司 Applied program processing method, device, storage medium and computer equipment
CN111857897A (en) * 2019-04-25 2020-10-30 北京小米移动软件有限公司 Information display method and device and storage medium
CN113312570A (en) * 2020-08-31 2021-08-27 阿里巴巴集团控股有限公司 Page jump method, terminal device and storage medium
CN113485599A (en) * 2021-07-19 2021-10-08 维沃移动通信(杭州)有限公司 Display control method, display control device, electronic device, and medium
CN114416475A (en) * 2021-12-31 2022-04-29 北京五八信息技术有限公司 Data processing method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932893A (en) * 2015-06-23 2015-09-23 北京奇虎科技有限公司 Event reminding method and device based on application program
CN106802803A (en) * 2017-01-06 2017-06-06 腾讯科技(深圳)有限公司 The method and apparatus of application data treatment
CN107870784A (en) * 2017-11-24 2018-04-03 维沃移动通信有限公司 A kind of display control method, mobile terminal and computer-readable recording medium
CN108304108A (en) * 2018-01-22 2018-07-20 维沃移动通信有限公司 A kind of icon display method and mobile terminal of application program
CN108664304A (en) * 2018-05-03 2018-10-16 广州腾讯科技有限公司 Applied program processing method, device, storage medium and computer equipment
CN111857897A (en) * 2019-04-25 2020-10-30 北京小米移动软件有限公司 Information display method and device and storage medium
CN113312570A (en) * 2020-08-31 2021-08-27 阿里巴巴集团控股有限公司 Page jump method, terminal device and storage medium
CN113485599A (en) * 2021-07-19 2021-10-08 维沃移动通信(杭州)有限公司 Display control method, display control device, electronic device, and medium
CN114416475A (en) * 2021-12-31 2022-04-29 北京五八信息技术有限公司 Data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108123855B (en) Terminal control method and device
CN109557999B (en) Bright screen control method and device and storage medium
EP3099063A1 (en) Video communication method and apparatus
CN107229411B (en) Method and device for controlling split screen state
CN107220059B (en) Application interface display method and device
CN112468833A (en) Live broadcast interactive information processing method, device, terminal, server and storage medium
EP3051772A1 (en) Method and apparatus for accessing network
CN112416219B (en) Target object processing method, device and system, electronic equipment and storage medium
CN110753270A (en) Information display method, device, terminal, server, system and storage medium
CN107729098B (en) User interface display method and device
CN111246278B (en) Video playing method and device, electronic equipment and storage medium
CN112463418A (en) Cross-device information sharing method, device, medium and electronic device
CN112051949A (en) Content sharing method and device and electronic equipment
CN110636318A (en) Message display method, message display device, client device, server and storage medium
CN109525966B (en) Intelligent device query method and device and storage medium
CN106878654B (en) Video communication method and device
CN105227426B (en) Application interface switching method and device and terminal equipment
CN106506808B (en) Method and device for prompting communication message
CN105786561B (en) Method and device for calling process
CN114416475A (en) Data processing method and device, electronic equipment and storage medium
CN107948876B (en) Method, device and medium for controlling sound box equipment
CN114942808A (en) Method and device for processing data in electronic equipment, electronic equipment and storage medium
CN106658412B (en) Positioning method and device
CN105553772B (en) Flow monitoring method and device
CN110798721B (en) Episode management method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination