CN111026488B - Communication data saving method, device, terminal equipment and storage medium - Google Patents

Communication data saving method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111026488B
CN111026488B CN201911238701.8A CN201911238701A CN111026488B CN 111026488 B CN111026488 B CN 111026488B CN 201911238701 A CN201911238701 A CN 201911238701A CN 111026488 B CN111026488 B CN 111026488B
Authority
CN
China
Prior art keywords
communication data
display
data
display screen
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911238701.8A
Other languages
Chinese (zh)
Other versions
CN111026488A (en
Inventor
黄树伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201911238701.8A priority Critical patent/CN111026488B/en
Publication of CN111026488A publication Critical patent/CN111026488A/en
Application granted granted Critical
Publication of CN111026488B publication Critical patent/CN111026488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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

Abstract

The application discloses a communication data saving method, a device, terminal equipment and a storage medium, wherein the communication data saving method is applied to a mobile terminal and comprises the following steps: acquiring a communication data storage instruction, wherein the communication data storage instruction carries communication data, and then judging whether the communication data can be displayed on a display screen of the mobile terminal at one time; if not, displaying part of the communication data on a display screen, and generating the rest communication data on at least one virtual screen, wherein the display screen and the at least one virtual screen are positioned on the same plane; and then, generating a picture according to the display content on the display screen and the display content on the at least one virtual screen, and storing the picture to finish storing the communication data. The communication data which cannot be displayed on the display screen at one time is generated by the aid of the at least one virtual screen, so that limitation of the size of the display screen is eliminated, all the communication data are stored on one picture at one time, user experience is improved, and storage space is saved.

Description

Communication data saving method, device, terminal equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for saving communication data, a terminal device, and a storage medium.
Background
The network uses physical link to connect each isolated workstation or host to form data link, so as to achieve the purpose of resource sharing and communication. Communication is the communication and transfer of information from person to person through some medium. The network communication is realized by connecting each isolated device through a network and realizing the communication between people, between people and computers and between computers through information exchange.
Generally, in order to facilitate a user to directly browse network communication data of a mobile terminal, it is necessary to store the network communication data in advance. Existing storage methods store network communication data as one or more screen-sized pictures for a user to browse. However, the existing storage method is limited by the size of the screen of the mobile terminal, the larger the screen of the mobile terminal is, the more network communication data stored in one picture is, and when the network communication data is more, the network communication data needs to be stored as pictures with a plurality of screen sizes, so that the user experience is greatly reduced, and a larger storage space is also occupied.
Disclosure of Invention
The embodiment of the application provides a communication data storage method, a communication data storage device, terminal equipment and a storage medium, and aims to solve the technical problem that the conventional communication data storage method is limited by the size of a screen of a mobile terminal and is easy to occupy a large storage space.
The technical scheme provided by the application is as follows:
the application provides a communication data storage method, which is applied to a mobile terminal and comprises the following steps:
acquiring a communication data storage instruction, wherein the communication data storage instruction carries communication data;
judging whether the communication data can be displayed on a display screen of the mobile terminal at one time or not;
if not, displaying part of the communication data on the screen, and generating the rest communication data on at least one virtual screen, wherein the display screen and the at least one virtual screen are positioned on the same plane;
and generating a picture according to the display content on the display screen and the display content on the at least one virtual screen, and storing the picture so as to store the communication data.
The application also provides a communication data storage device, which is applied to a mobile terminal and comprises:
the communication data storage module is used for storing communication data carried by the communication data;
the judging module is used for judging whether the communication data can be displayed on a display screen of the mobile terminal at one time;
the display module is used for displaying part of the communication data on the screen and generating the rest communication content on at least one virtual screen if the communication data is not displayed on the screen, and the display screen and the at least one virtual screen are positioned on the same plane;
and the first storage module is used for generating a picture according to the display content on the display screen and the content on the at least one virtual screen and storing the picture so as to store the communication data.
In the communication data saving device provided by the present application, the communication data saving device further includes:
and the second storage module is used for displaying the communication content on the display screen if the communication data can be displayed on the display screen of the mobile terminal at one time after the judgment module judges whether the communication data can be displayed on the display screen of the mobile terminal at one time, generating a picture according to the display content on the display screen and storing the picture.
In the communication data saving apparatus provided by the present application, the judging module includes:
the first obtaining submodule is used for obtaining the total data volume of the communication data;
the second acquisition submodule is used for acquiring the maximum display data volume of the display screen;
the first judgment sub-module is used for judging that the communication data can be displayed on the display screen at one time when the maximum display data amount is larger than or equal to the total data amount;
and the second judging submodule is used for judging that the communication data cannot be displayed on the display screen at one time when the maximum display data volume is smaller than the total data volume.
In the communication data saving device provided by the present application, the display module includes:
a first calculation sub-module for calculating a difference between the total data amount and the maximum display data amount;
the first determining submodule is used for determining actual display data and virtual display data from the communication data according to the difference value;
and the first display submodule is used for displaying the actual display data on the display screen and generating the virtual display data on at least one virtual screen.
In the communication data saving apparatus provided by the present application, the first display sub-module includes:
the second determining submodule is used for determining the number of the virtual screens according to the difference value and the maximum display data volume;
a third determining submodule, configured to determine display content on each virtual screen according to the number and the virtual display data;
and the second display sub-module is used for generating corresponding display content on each virtual screen.
In the communication data saving apparatus provided by the present application, the second determination submodule includes:
a fourth determining sub-module, configured to determine that the number is 1 if the difference is smaller than or equal to the maximum display data amount;
the second calculation submodule is used for calculating a quotient of the difference value and the maximum display data volume to obtain a calculation result if the difference value is larger than the maximum display data volume;
a fifth determining submodule, configured to take the calculation result as a number if the calculation result is an integer;
and the sixth determining submodule is used for taking the sum of the integer part of the calculation result and 1 as the number if the calculation result is a decimal.
The present application further provides a computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform any of the above-described communication data preservation methods.
The application further provides a terminal device, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for any step in the communication data storage method.
The beneficial effect of this application does: the application discloses a communication data saving method, a device, terminal equipment and a storage medium, wherein the communication data saving method is applied to a mobile terminal and comprises the following steps: acquiring a communication data storage instruction, wherein the communication data storage instruction carries communication data, and then judging whether the communication data can be displayed on a display screen of the mobile terminal at one time; if not, displaying part of the communication data on a display screen, and generating the rest communication data on at least one virtual screen, wherein the display screen and the at least one virtual screen are positioned on the same plane; and then, generating a picture according to the display content on the display screen and the display content on the at least one virtual screen, and storing the picture to finish storing the communication data. The communication data which cannot be displayed on the display screen at one time is generated by the aid of the at least one virtual screen, so that limitation of the size of the display screen is eliminated, all the communication data are stored on one picture at one time, user experience is improved, and storage space is saved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario of a communication data saving method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a communication data saving method according to an embodiment of the present application.
Fig. 3 is another schematic flow chart of a communication data saving method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a communication data saving device according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of a communication data saving device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a communication data storage method and device, terminal equipment and a storage medium.
Referring to fig. 1, fig. 1 provides an application scenario diagram of a communication data saving system, where the communication data saving system may include any one of the communication data saving apparatuses provided in the embodiments of the present application, and the communication data saving apparatus may be integrated in a terminal device, and the terminal device may include a device with a network function, such as a smart phone and a tablet computer.
The mobile terminal can obtain a communication data storage instruction, the communication data storage instruction carries communication data, whether the communication data can be displayed on a display screen of the mobile terminal at one time is judged, if not, part of the communication data is displayed on the display screen, and the rest of the communication data is generated on at least one virtual screen, wherein the display screen and the virtual screen are located on the same plane, then a picture is generated according to the display content on the display screen and the display content on the at least one virtual screen, and the picture is stored so as to store the communication data.
For example, referring to fig. 1, first, the mobile terminal obtains a communication data saving instruction, which carries communication data to be saved but is limited by the size of the display screen of the mobile terminal, and the communication data cannot be displayed on the display screen at one time, then, the communication data with M1 data size is displayed on the display screen, where M1 represents the maximum data size of the communication data displayed on the display screen in full, then the remaining communication data is generated on at least one virtual screen, specifically, the number n of the virtual screens is determined by the maximum display data size of the virtual screens and the data size of the remaining communication data, specifically, the extending direction (up, down, left, and right) of the virtual screens is also determined according to the specific situation, and finally, a picture is generated according to the display content on the display screen and the display content on the virtual screens, and the picture is saved to save the communication data.
Referring to fig. 2, fig. 2 is a schematic flow chart of a communication data saving method according to an embodiment of the present application, and as shown in fig. 2, the communication data saving method is applied to a mobile terminal, and the mobile terminal may be any intelligent electronic device with a mobile communication function, such as a smart phone, a tablet computer, a notebook computer, and the like. The specific flow of the communication data saving method provided by this embodiment may be as follows:
s101, a communication data storage instruction is obtained, and the communication data storage instruction carries communication data.
For example, when a mobile terminal performs network communication, communication data is generated, and when the current network communication is finished, a communication data saving instruction is triggered, and the communication data saving instruction carries all communication data generated when the network communication is performed.
For example, a user opens a picture using a network, and when the user closes the picture, a communication data saving instruction is triggered, and the communication data saving instruction carries communication data generated by opening the picture this time.
And S102, judging whether the communication data can be displayed on a display screen of the mobile terminal at one time.
If not, step S103 is executed. Specifically, step S102 may include:
1-1, acquiring total data volume of communication data.
Specifically, the total data volume of the communication data can be calculated according to the speed and time of the processor for transmitting the communication data to the display screen of the mobile terminal, and if the total data volume of the communication data is set to be M, the speed of the processor for transmitting the communication data to the display screen is set to be v, and the time is set to be t, the total data volume is set to be M = vt.
And 1-2, acquiring the maximum display data volume of the display screen.
Specifically, the maximum display data amount of the display screen may be calculated according to the speed and time at which the display screen sends the display data to the display end of the display screen, and if the maximum display data amount is M1, the speed at which the display screen sends the display data to the display end of the display screen is v1, and the time at which the display screen sends the display data to the display end of the display screen is t1, the maximum display data amount is M1= v1t1.
And 1-3, when the maximum display data amount is larger than or equal to the total data amount, judging that the communication data can be displayed on the display screen at one time.
And 1-4, when the maximum data amount is less than the total data amount, judging that the communication data cannot be displayed on the display screen at one time.
S103, displaying part of the communication data on a display screen, and generating the rest communication data on at least one virtual screen, wherein the display screen and the at least one virtual screen are positioned on the same plane.
Specifically, step S103 may include:
and 2-1, calculating the difference between the total data quantity and the maximum data quantity.
And 2-2, determining actual display data and virtual display data from the communication data according to the difference value.
Specifically, the difference is the data amount of the communication data which is left after the communication data is displayed on the full screen of the display screen and cannot be displayed at one time. For example, if the network data generated by the user performing network communication is a table, but the maximum display data amount of the display screen is one fourth of the total data amount of the table, the first quarter of the total data amount of the table is selected as the actual display data, and the remaining three quarters of the total data amount of the table is selected as the virtual display data.
And 2-3, displaying the actual display data on the display screen, and generating virtual display data on at least one virtual screen.
Specifically, the step of generating virtual display data on at least one virtual screen may include:
and 2-3-1, determining the number of the virtual screens according to the difference and the maximum display data amount.
Here, assuming that the maximum display data amount of the virtual screen and the maximum display data amount of the display screen are equal, specifically, step 2-3-1 may include the following sub-steps:
if the difference is less than or equal to the maximum display data amount, the number is 1;
if the difference is larger than or equal to the maximum display data amount, calculating the quotient of the difference and the maximum display data amount to obtain a calculation result;
if the calculation result is an integer, taking the calculation result as the number;
if the calculation result is a decimal, the sum of the integer part of the calculation result and 1 is taken as the number.
And 2-3-2, determining the display content on each virtual screen according to the number and the virtual display data.
Specifically, the display content on each virtual screen is not random, but is determined according to the specific content of the communication data, and the display content on each virtual screen and the display content on the display screen should be identical to the communication data in combination.
2-3-3, generating corresponding display content on each virtual screen.
And S104, generating a picture according to the display content on the display screen and the display content on the at least one virtual screen, and storing the picture so as to store the communication data.
Specifically, because the display screen and the virtual screen are located on the same plane, the processor can select all communication data on the plane to perform graph processing, that is, all communication data can be saved to one picture to save the communication data.
As can be seen from the above, the communication data saving method provided in this embodiment is applied to a mobile terminal, obtains a communication data saving instruction, where the communication data saving instruction carries communication data, and then determines whether the communication data can be displayed on a display screen of the mobile terminal at one time; if not, displaying part of the communication data on a display screen, and generating the rest communication data on at least one virtual screen, wherein the display screen and the at least one virtual screen are positioned on the same plane; and then, generating a picture according to the display content on the display screen and the display content on the at least one virtual screen, and storing the picture to finish storing the communication data. The application utilizes at least one virtual screen to generate the communication data which can not be displayed on the display screen at one time, so that the limitation of the size of the display screen is eliminated, all the communication data are stored on one picture at one time, the user experience is improved, and the storage space is saved.
Referring to fig. 3, fig. 3 is another schematic flow chart of a communication data saving method according to an embodiment of the present application, where the communication data saving method is applied to a mobile terminal, and the mobile terminal may be any intelligent electronic device with a mobile communication function, such as a smart phone, a tablet computer, a notebook computer, and the like. The specific flow of the communication data saving method provided in this embodiment may be as follows:
s201, a communication data storage instruction is obtained, and the communication data storage instruction carries communication data.
For example, when the mobile terminal performs network communication, communication data is generated, and when the current network communication is finished, a communication data storage instruction is triggered, and the communication data storage instruction carries all communication data generated when the network communication is performed.
For example, a user opens a picture using a network, and when the user closes the picture, a communication data saving instruction is triggered, which saves communication data generated by opening the picture this time.
And S202, acquiring the total data volume of the communication data.
Specifically, the total data volume of the communication data can be calculated according to the speed and time of the processor for transmitting the communication data to the display screen of the mobile terminal, and if the total data volume of the communication data is set to be M, the speed of the processor for transmitting the communication data to the display screen is set to be v, and the time is set to be t, the total data volume is set to be M = vt.
S203, acquiring the maximum display data volume of the display screen.
Specifically, the maximum display data amount of the display screen may be calculated according to the speed and time at which the display screen sends the display data to the display end of the display screen, and if the maximum display data amount is M1, the speed at which the display screen sends the display data to the display end of the display screen is v1, and the time at which the display screen sends the display data to the display end of the display screen is t1, the maximum display data amount is M1= v1t1.
And S204, judging whether the communication data can be displayed on the display screen at one time according to the total data volume and the maximum display data volume.
When the maximum display data volume is larger than or equal to the total data volume, judging that the communication data can be displayed on the display screen at one time; and when the maximum data amount is less than the total data amount, judging that the communication data can not be displayed on the display screen at one time.
If yes, go to S205; if not, go to S206.
S205, the communication data are displayed on a display screen, a picture is generated according to the display content on the display screen, and the picture is stored.
And S206, calculating the difference between the total data volume and the maximum data volume.
And S207, determining actual display data and virtual display data from the communication data according to the difference.
Specifically, the difference is the data amount of the communication data which is left after the communication data is displayed on the full screen of the display screen and cannot be displayed at one time. For example, if the network data generated by the user performing network communication is a table, but the maximum display data amount of the display screen is one fourth of the total data amount of the table, the first quarter of the total data amount of the table is selected as the actual display data, and the remaining three quarters of the total data amount of the table is selected as the virtual display data.
S208, displaying the actual display data on the display screen, and generating virtual display data on at least one virtual screen.
Specifically, the step of generating virtual display data on at least one virtual screen may include:
and 3-1, determining the number of the virtual screens according to the difference value and the maximum display data amount.
Specifically, step 3-1 may comprise the following sub-steps:
if the difference is less than or equal to the maximum display data amount, the number is 1;
if the difference is larger than or equal to the maximum display data amount, calculating the quotient of the difference and the maximum display data amount to obtain a calculation result;
if the calculation result is an integer, taking the calculation result as the number;
if the calculation result is a decimal, the sum of the integer part of the calculation result and 1 is taken as the number.
And 3-2, determining the display content on each virtual screen according to the number and the virtual display data.
Specifically, the display content on each virtual screen is not random, but is determined according to the specific content of the communication data, and the display content on each virtual screen and the display content on the display screen should be identical to the communication data in combination.
And 3-3, generating corresponding display content on each virtual screen.
And S209, generating a picture according to the display content on the display screen and the display content on the at least one virtual screen, and storing the picture so as to store the communication data.
Specifically, because the display screen and the virtual screen are located on the same plane, the processor can select all communication data on the plane to perform graph processing, that is, all communication data can be saved to one picture to save the communication data.
As can be seen from the above, the communication data saving method provided in this embodiment is applied to a mobile terminal, and is configured to obtain a communication data saving instruction, where the communication data saving instruction carries communication data, then obtain a total data amount of the communication data, then obtain a maximum display data amount of a display screen, then judge whether the communication data can be displayed on the display screen at one time according to the total data amount and the maximum display data amount, display the communication data on the display screen, and generate a picture according to display content on the display screen, and save the picture, if not, calculate a difference between the total data amount and the maximum data amount, determine actual display data and virtual display data from the communication data according to the difference, display the actual display data on the display screen, and generate the virtual display data on at least one virtual screen, and then generate a picture according to the display content on the display screen and display content on the at least one virtual screen, and save the picture, so as to finish saving the communication data. The application utilizes at least one virtual screen to generate the communication data which can not be displayed on the display screen at one time, so that the limitation of the size of the display screen is eliminated, all the communication data are stored on one picture at one time, the user experience is improved, and the storage space is saved.
According to the method described in the foregoing embodiment, the present embodiment will be further described from the perspective of a communication data saving device, which may be specifically implemented as a stand-alone entity, or may be implemented by being integrated in an electronic device, such as a terminal, where the terminal may include a mobile phone, a tablet computer, and the like.
Referring to fig. 4, fig. 4 specifically describes that the communication data saving device provided in the embodiment of the present application is applied to a mobile terminal, and the terminal device may be any intelligent electronic device with a mobile communication function, such as a smart phone, a tablet computer, a notebook computer, and the like. The communication data saving device may include: the device comprises an acquisition module 10, a judgment module 20, a display module 30 and a first saving module 40, wherein:
(1) Acquisition module 10
The obtaining module 10 is configured to obtain a communication data saving instruction, where the communication data saving instruction carries communication data.
For example, when a user performs network communication, communication data may be generated, and when the current network communication is ended, the obtaining module 10 obtains a communication data saving instruction, and the communication data is saved to zero and carries all communication data generated during the current network communication.
For example, when a user opens a picture using a network and closes the picture, the obtaining module 10 obtains a communication data saving instruction, where the communication data saving instruction carries communication data generated by opening the picture this time.
(2) Judging module 20
And a judging module 20, configured to judge whether the communication data can be displayed on the display screen of the mobile terminal at one time.
In this embodiment, the determining module 20 may specifically include:
and a first obtaining sub-module (not shown in the figure) for obtaining the total data amount of the communication data.
Specifically, the total data volume of the communication data can be calculated according to the speed and time of the processor for transmitting the communication data to the display screen of the mobile terminal, and if the total data volume of the communication data is set to be M, the speed of the processor for transmitting the communication data to the display screen is set to be v, and the time is set to be t, the total data volume is set to be M = vt.
And a second obtaining sub-module (not shown in the figure) for obtaining the maximum display data amount of the display screen.
Specifically, the maximum display data amount of the display screen may be calculated according to the speed and time at which the display screen sends the display data to the display end of the display screen, and if the maximum display data amount is M1, the speed at which the display screen sends the display data to the display end of the display screen is v1, and the time at which the display screen sends the display data to the display end of the display screen is t1, the maximum display data amount is M1= v1t1.
And a first judging sub-module (not shown in the figure) for judging that the communication data can be displayed on the display screen at one time when the maximum display data amount is larger than or equal to the total data amount.
And a second judging sub-module (not shown in the figure) for judging that the communication data cannot be displayed on the display screen at one time when the maximum display data amount is less than the total data amount.
(3) Display module 30
And a display module 30, configured to, after the determining module 20 determines whether the communication data can be displayed on the display screen of the mobile terminal at one time, if not, display part of the communication data on the display screen, and generate the remaining communication data on at least one virtual screen, where the display screen and the at least one virtual screen are located on the same plane.
In this embodiment, the display module 30 may specifically include:
a first calculation sub-module (not shown in the figure) for calculating a difference between the total data amount and the maximum display data amount.
A first determining sub-module (not shown in the figure) for determining the actual display data and the virtual display data from the communication data based on the difference.
Specifically, the difference is the data amount of the communication data which is left after the communication data is displayed on the full screen of the display screen and cannot be displayed at one time. For example, the network data generated by the network communication performed by the user is a table, but the maximum display data amount of the display screen is one fourth of the total data amount of the table, the first determining module selects the first quarter of the total data amount of the table as the actual display data, and selects the remaining three quarters of the total data amount of the table as the virtual display data.
And a first display submodule (not shown in the figure) for displaying the actual display data on the display screen and generating the virtual display data on at least one virtual screen.
In this embodiment, the first display sub-module may include a second determining sub-module (not shown in the figure), a third determining sub-module (not shown in the figure), and a second display sub-module (not shown in the figure), specifically:
and the second determining submodule is used for determining the number of the virtual screens according to the difference value and the maximum display data size.
And the third determining submodule is used for determining the display content on each virtual screen according to the number and the virtual display data.
And the second display submodule is used for generating corresponding display content on each virtual screen.
Specifically, the display content on each virtual screen is not random, but is determined according to the specific content of the communication data, and the display content on each virtual screen and the display content on the display screen, in combination, should be identical to the communication data.
In this embodiment, assuming that the maximum display data amount of the virtual screen and the maximum display data amount of the display screen are equal, the second determining sub-module may include a fourth determining sub-module (not shown in the figure), a second calculating sub-module (not shown in the figure), a fifth determining sub-module (not shown in the figure), and a sixth determining sub-module (not shown in the figure), specifically:
a fourth determination submodule, configured to determine that the number is 1 if the difference is smaller than or equal to the maximum display data amount;
the second calculation submodule is used for calculating a quotient of the difference value and the maximum display data volume to obtain a calculation result if the difference value is larger than the maximum display data volume;
a fifth determining submodule, configured to take the calculation result as a number if the calculation result is an integer;
and the sixth determining submodule is used for taking the sum of the integer part of the calculation result and 1 as the number if the calculation result is a decimal.
(4) First saving module 40
And the first storage module 40 generates a picture according to the display content on the display screen and the display content on the at least one virtual screen, and stores the picture so as to store the communication data.
Specifically, because the display screen and the virtual screen are located on the same plane, the first saving module 40 may select all communication data on the plane to perform graph processing, that is, may save all communication data to one picture to save the communication data.
In this embodiment, as shown in fig. 5, fig. 5 is another schematic structural diagram of the communication data saving device provided in the embodiment of the present application, where the communication data saving device may further include:
and a second saving module 50, configured to, after the determining module 20 determines whether the communication data can be displayed on the display screen of the mobile terminal at one time, if so, display the communication data on the display screen, generate a picture according to display content on the display screen, and save the picture.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the communication data saving device provided in this embodiment is applied to a terminal device, and acquires a communication data saving instruction by using the acquiring module 10, where the communication data saving instruction carries communication data, and then determines whether the communication data can be displayed on the display screen of the mobile terminal at one time by using the determining module 20; if not, displaying part of the communication data on a display screen through the display module 30, and generating the rest communication data on at least one virtual screen, wherein the display screen and the at least one virtual screen are positioned on the same plane; then, a picture is generated by the first saving module 40 according to the display content on the display screen and the display content on the at least one virtual screen, and the picture is saved to finish the saving of the communication data. The communication data which cannot be displayed on the display screen at one time is generated by the aid of the at least one virtual screen, so that limitation of the size of the display screen is eliminated, all the communication data are stored on one picture at one time, user experience is improved, and storage space is saved.
In addition, the embodiment of the application further provides a terminal device, and the terminal device can be a smart phone, a tablet computer and other devices. As shown in fig. 6, the terminal device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the terminal device 500, connects various parts of the entire terminal device by using various interfaces and lines, and executes various functions of the terminal device and processes data by running or loading an application program stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the terminal device.
In this embodiment, the processor 501 in the terminal device 500 loads instructions corresponding to processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 runs the application programs stored in the memory 502, thereby implementing various functions:
acquiring a communication data storage instruction, wherein the communication data storage instruction carries communication data;
judging whether the communication data can be displayed on a display screen of the mobile terminal at one time or not;
if not, displaying part of the communication data on a display screen, and generating the rest communication data on at least one virtual screen, wherein the display screen and the at least one virtual screen are positioned on the same plane;
and generating a picture according to the display content on the display screen and the display content on the at least one virtual screen, and storing the picture so as to store the communication data.
Fig. 7 is a block diagram showing a specific structure of a terminal device according to an embodiment of the present application, where the terminal device may be configured to implement the communication data saving method provided in the foregoing embodiment. The terminal device 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network described above may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), enhanced Data GSM Environment (EDGE), wideband Code Division Multiple Access (WCDMA), code Division Multiple Access (CDMA), time Division Multiple Access (TDMA), wireless Fidelity (Wi-Fi) (such as IEEE802.11 a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), internet telephony (VoIP), world Interoperability for Microwave, and other suitable protocols for instant messaging, including any other protocols not currently developed for short message Communication.
The memory 320 may be used for storing software programs and modules, such as the communication data saving method and the corresponding program instructions/modules in the above embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to realize the communication data saving function. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 7, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 300.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., a Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 7 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring a communication data storage instruction, wherein the communication data storage instruction carries communication data;
judging whether the communication data can be displayed on a display screen of the mobile terminal at one time or not;
if not, displaying part of the communication data on a display screen, and generating the rest communication data on at least one virtual screen, wherein the display screen and the at least one virtual screen are positioned on the same plane;
and generating a picture according to the display content on the display screen and the display content on the at least one virtual screen, and storing the picture so as to store the communication data.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium including terminal device executable instructions. The terminal device executable instructions, when executed by a terminal device processor, perform the steps of any one of the communication data saving methods provided in the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any communication data saving method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any communication data saving method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described again here.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (10)

1. A communication data storage method is applied to a mobile terminal, and is characterized by comprising the following steps:
when the mobile terminal finishes network communication, triggering a communication data storage instruction, wherein the communication data storage instruction carries communication data generated when the mobile terminal carries out the network communication;
judging whether the communication data can be displayed on a display screen of the mobile terminal at one time or not based on the total data volume of the communication data and the maximum display data volume of the display screen of the mobile terminal, wherein the total data volume is determined according to the speed and time of transmitting the communication data to the display screen, and the maximum display data volume is determined according to the speed and time of transmitting the display data to a display end of the display screen by the display screen;
if not, displaying part of the communication data on the display screen, and generating the rest communication data on at least one virtual screen, wherein the display screen and the at least one virtual screen are positioned on the same plane;
and generating a picture according to the display content on the display screen and the display content on the at least one virtual screen, and storing the picture so as to store the communication data.
2. The communication data saving method according to claim 1, wherein after the determining whether the communication data can be displayed on the display screen of the mobile terminal at one time, the method further comprises:
and if so, displaying the communication data on the display screen, and generating a picture according to the display content on the display screen for storage.
3. The communication data saving method according to claim 1, wherein the determining whether the communication data can be displayed on the display screen of the mobile terminal at one time specifically includes:
acquiring the total data volume of the communication data;
acquiring the maximum display data volume of a display screen;
when the maximum display data amount is larger than or equal to the total data amount, judging that the communication data can be displayed on the display screen at one time;
and when the maximum display data amount is smaller than the total data amount, judging that the communication data cannot be displayed on the display screen at one time.
4. The communication data saving method according to claim 3, wherein the displaying of a part of the communication data on the display screen and the generation of the remaining communication data on at least one virtual screen comprises:
calculating a difference between the total amount of data and the maximum amount of display data;
determining actual display data and virtual display data from the communication data according to the difference value;
and displaying the actual display data on the display screen, and generating the virtual display data on at least one virtual screen.
5. The communication data saving method according to claim 4, wherein the generating the virtual display data on at least one virtual screen includes:
determining the number of virtual screens according to the difference value and the maximum display data volume;
determining the display content on each virtual screen according to the number and the virtual display data;
and generating corresponding display content on each virtual screen.
6. The communication data saving method according to claim 5, wherein the determining the number of virtual screens based on the difference value and the maximum display data amount includes:
if the difference is less than or equal to the maximum display data amount, the number is 1;
if the difference is larger than the maximum display data quantity, calculating a quotient of the difference and the maximum display data quantity to obtain a calculation result;
if the calculation result is an integer, taking the calculation result as the number;
and if the calculation result is a decimal number, taking the sum of the integer part of the calculation result and 1 as the number.
7. A communication data saving device applied to a mobile terminal, the communication data saving device comprising:
the acquisition module is used for triggering and acquiring a communication data storage instruction when the mobile terminal finishes network communication, wherein the communication data storage instruction carries communication data generated when the mobile terminal carries out the network communication;
the judging module is used for judging whether the communication data can be displayed on the display screen of the mobile terminal at one time or not based on the total data volume of the communication data and the maximum display data volume of the display screen of the mobile terminal, wherein the total data volume is determined according to the speed and time of transmitting the communication data to the display screen, and the maximum display data volume is determined according to the speed and time of transmitting the display data to the display end of the display screen by the display screen;
the display module is used for displaying part of the communication data on the display screen and generating the rest communication data on at least one virtual screen if the communication data is not displayed on the display screen, and the display screen and the at least one virtual screen are positioned on the same plane;
and the first storage module is used for generating a picture according to the display content on the display screen and the content on the at least one virtual screen and storing the picture so as to store the communication data.
8. The communication data saving device according to claim 7, further comprising:
and the second storage module is used for displaying the communication content on the display screen if the communication data can be displayed on the display screen of the mobile terminal at one time after the judgment module judges whether the communication data can be displayed on the display screen of the mobile terminal at one time, generating a picture according to the display content on the display screen and storing the picture.
9. A computer-readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the communication data saving method of any one of claims 1 to 6.
10. A terminal device, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the communication data saving method according to any one of claims 1 to 6.
CN201911238701.8A 2019-12-06 2019-12-06 Communication data saving method, device, terminal equipment and storage medium Active CN111026488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911238701.8A CN111026488B (en) 2019-12-06 2019-12-06 Communication data saving method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911238701.8A CN111026488B (en) 2019-12-06 2019-12-06 Communication data saving method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111026488A CN111026488A (en) 2020-04-17
CN111026488B true CN111026488B (en) 2023-04-07

Family

ID=70208101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911238701.8A Active CN111026488B (en) 2019-12-06 2019-12-06 Communication data saving method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111026488B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162248A (en) * 2019-04-22 2019-08-23 西安万像电子科技有限公司 Display processing method, apparatus and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495711B (en) * 2011-11-15 2017-05-17 中兴通讯股份有限公司 Virtual multi-screen implementation method and device
KR20140055880A (en) * 2012-11-01 2014-05-09 삼성전자주식회사 Method and apparatus for controlling virtual screen
CN104238926A (en) * 2013-06-07 2014-12-24 中兴通讯股份有限公司 Method and device for generating virtual screen of touch terminal, touch terminal and operating method thereof
CN105653174A (en) * 2014-11-10 2016-06-08 东莞宇龙通信科技有限公司 Touch terminal screen capture method and system
KR102318610B1 (en) * 2015-01-30 2021-10-28 삼성전자주식회사 Mobile device and displaying method thereof
CN105404455B (en) * 2015-12-16 2019-02-22 北京奇虎科技有限公司 The method and device of screenshotss is realized to mobile terminal using terminal
US11057500B2 (en) * 2017-11-20 2021-07-06 Asg Technologies Group, Inc. Publication of applications using server-side virtual screen change capture
CN108121491B (en) * 2017-12-18 2021-02-09 威创集团股份有限公司 Display method and device
CN108154864B (en) * 2017-12-22 2020-02-21 联想(北京)有限公司 Display screen processing method, first electronic device and second electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162248A (en) * 2019-04-22 2019-08-23 西安万像电子科技有限公司 Display processing method, apparatus and system

Also Published As

Publication number Publication date
CN111026488A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
WO2020007116A1 (en) Split-screen window adjustment method and apparatus, storage medium and electronic device
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN111182236A (en) Image synthesis method and device, storage medium and terminal equipment
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN105513098B (en) Image processing method and device
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN111368238A (en) Status bar adjusting method and device, mobile terminal and storage medium
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium
CN112867171B (en) WIFI connection method and device, storage medium and mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN111026488B (en) Communication data saving method, device, terminal equipment and storage medium
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN111309223B (en) Application function starting method and device, storage medium and mobile terminal
CN112199050A (en) Storage method, device, storage medium and terminal equipment
CN109672242B (en) Terminal charging control method and device and storage medium
CN111143580A (en) Multimedia data storage method and device, storage medium and electronic equipment
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN111078428A (en) Remote control method and device, storage medium and terminal equipment
CN111966271B (en) Screen panorama screenshot method and device, terminal equipment and storage medium
CN104866287B (en) Method and device for generating function bar
CN110972220B (en) Wireless communication method, device, storage medium and terminal 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
GR01 Patent grant
GR01 Patent grant