CN104571802B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN104571802B CN104571802B CN201310518300.4A CN201310518300A CN104571802B CN 104571802 B CN104571802 B CN 104571802B CN 201310518300 A CN201310518300 A CN 201310518300A CN 104571802 B CN104571802 B CN 104571802B
- Authority
- CN
- China
- Prior art keywords
- application
- event
- state
- parameter information
- window
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of information processing methods, comprising: obtains the second event of user, second event is for making the first application be in non-wicket state from wicket state;The first state information that first application is in wicket state is obtained, the first state information is saved;The third event of user is obtained, third event is for making first application be in wicket state from non-wicket state;The second conversion parameter is determined according to the first state information saved, and second conversion parameter is used to convert the full screen window of first application, so that first application is in wicket state corresponding with the first state information;It is converted using full screen window of second conversion parameter to first application, generates wicket corresponding with the first state information.The invention also discloses a kind of electronic equipment.Using technical solution of the present invention, the status information of the corresponding window of these programs can be effectively saved, to promote user experience.
Description
Technical Field
The present invention relates to electronic device technologies, and in particular, to an information processing method and an electronic device.
Background
In the initial development stage of the mobile equipment, the screen size of the mobile equipment is smaller, and the resolution of the screen is lower; in this period, an operating system of the mobile terminal, such as an Android operating system (Android), provides an application function of a single window, and only one application can be displayed in the single window; that is, the operating system allows only one application to be in the foreground and interact with the user, wherein a state in which the application is in the foreground is called an active state (active Status), and a state in which the application is in interaction with the user is called an active state (Resumed Status). However, with the rapid development of mobile terminal hardware, especially the improvement of screen resolution and the increase of size, such a single-window application of an operating system of a mobile device at the beginning cannot meet the user's needs, and the user urgently needs that the operating system of the mobile device can provide multi-window application functions, for example, when the user wants to chat with friends and family based on an instant chat tool such as PP while watching a video with a mobile terminal such as a tablet computer, the user needs to display more than two windows at the same time on the display interface of the tablet computer, wherein each window is used for displaying one application.
In a mobile device providing a multi-window application function, when an application is suspended to a background or is closed due to a special reason, and the application is restored to the foreground again or restarted, state information such as the position, the size, the transparency, the rotation angle and the like of a previous window is completely lost; therefore, how to effectively save the state information of the windows corresponding to the programs becomes an urgent problem to be solved.
Disclosure of Invention
In view of this, embodiments of the present invention mainly aim to provide an information processing method and an electronic device, which can effectively save state information of windows corresponding to programs, so as to improve user experience.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the information processing method provided by the embodiment of the invention is applied to electronic equipment, wherein the electronic equipment comprises a touch display unit and can run an application;
acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window;
acquiring a first conversion parameter based on the first event;
transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state;
the method comprises the following steps:
acquiring a second event of the user, wherein the second event is used for enabling the first application to be in a non-widget state from the widget state;
acquiring and storing first state information of the first application in a small window state, wherein the first state information comprises position parameter information and size parameter information;
acquiring a third event of a user, wherein the third event is used for enabling the first application to be in a small window state from a non-small window state;
determining a second conversion parameter according to the position parameter information and the size parameter information in the saved first state information, wherein the second conversion parameter is used for converting a full-screen window of the first application so as to enable the first application to be in a small-window state corresponding to the first state information;
and transforming the full screen window of the first application by using the second conversion parameter to generate a small window corresponding to the first state information.
The embodiment of the invention also provides an information processing method, which is applied to electronic equipment, wherein the electronic equipment comprises a touch display unit;
acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window;
acquiring a first conversion parameter based on the first event;
transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state;
the method comprises the following steps:
acquiring a second event of the user, wherein the second event is used for enabling the first application to be in a non-widget state from the widget state;
acquiring first state information of the first application in a small window state, and storing the first state information, wherein the first state information at least comprises first size parameter information and first position parameter information;
acquiring a third event of a user, wherein the third event is used for enabling the first application to be in a small window state from a non-small window state;
judging whether a corresponding position of the touch display unit displays an applied small window according to the stored first position parameter information, and acquiring a first judgment result; when the first judgment result shows that the position represented by the first position parameter information displays an applied small window, determining the position parameter information of a blank display area of a touch display unit;
and generating a small window corresponding to the first size parameter information according to the first size parameter information and the position parameter information of the blank display area, so that the small window of the first application is displayed in the blank display area.
The embodiment of the invention also provides electronic equipment, which comprises a touch display unit;
acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window;
acquiring a first conversion parameter based on the first event;
transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state;
the electronic equipment comprises a first acquisition device, a storage device, a second acquisition device, a first determination device and a first generation device, wherein:
the first obtaining device is used for obtaining a second event of the user, and the second event is used for enabling the first application to be in a non-widget state from the widget state;
the saving device is used for acquiring and saving first state information of the first application in a small window state, wherein the first state information comprises position parameter information and size parameter information;
the second obtaining device is used for obtaining a third event of the user, and the third event is used for enabling the first application to be in a small window state from a non-small window state;
the first determining device is configured to determine a second conversion parameter according to the position parameter information and the size parameter information in the saved first state information, where the second conversion parameter is used to convert a full-screen window of the first application, so that the first application is in a small-window state corresponding to the first state information;
the first generating device is configured to transform a full-screen window of the first application by using the second conversion parameter, and generate a small window corresponding to the first state information.
The embodiment of the invention further provides an electronic device, which comprises a touch display unit;
acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window;
acquiring a first conversion parameter based on the first event;
transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state;
the electronic equipment comprises a first acquisition device, a storage device, a second acquisition device, a second determination device and a second generation device, wherein:
the first obtaining device is used for obtaining a second event of the user, and the second event is used for enabling the first application to be in a non-widget state from the widget state;
the saving device is used for acquiring first state information of the first application in a small window state and saving the first state information, wherein the first state information at least comprises first size parameter information and first position parameter information;
the second obtaining device is used for obtaining a third event of the user, and the third event is used for enabling the first application to be in a small window state from a non-small window state;
the second determining device is used for judging whether the corresponding position of the touch display unit displays the small window of the application according to the stored first position parameter information to obtain a first judgment result; when the first judgment result shows that the position represented by the first position parameter information displays an applied small window, determining the position parameter information of a blank display area of a touch display unit;
and the second generating device is configured to generate a small window corresponding to the first size parameter information according to the first size parameter information and the position parameter information of the blank display area, so that the small window of the first application is displayed in the blank display area.
According to the information processing method and the electronic device provided by the embodiment of the invention, a second event of a user is obtained firstly, and the second event is used for enabling a first application to be in a non-widget state from a widget state; then acquiring and storing first state information of the first application in a small window state, wherein the first state information comprises position parameter information and size parameter information; acquiring a third event of the user, wherein the third event is used for enabling the first application to be in a small window state from a non-small window state; determining a second conversion parameter according to the position parameter information and the size parameter information in the saved first state information, wherein the second conversion parameter is used for converting a full-screen window of the first application so as to enable the first application to be in a small-window state corresponding to the first state information; finally, the full-screen window of the first application is transformed by utilizing the second transformation parameter, and a small window corresponding to the first state information is generated; therefore, the state information of the windows corresponding to the programs can be effectively saved, and the user experience is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating an implementation of an information processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an implementation of step 105 according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an implementation flow of a third information processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a flow chart of a fourth information processing method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an implementation of step 404 in the fourth embodiment of the present invention;
fig. 6 is a flowchart illustrating an implementation of step 405 in the fourth embodiment of the present invention;
fig. 7 is a schematic flowchart of an implementation of step 603 in the sixth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an eighth electronic device according to an embodiment of the invention;
FIG. 9 is a schematic diagram illustrating a structure of a first generating apparatus according to an eighth embodiment of the present invention;
fig. 10 is a schematic structural diagram of an eleventh electronic device according to an embodiment of the invention.
Detailed Description
According to the information processing method and the electronic equipment provided by the embodiment of the invention, the electronic equipment comprises a touch display unit, and the electronic equipment can run an application;
acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window;
acquiring a first conversion parameter based on the first event;
transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state;
in the embodiment of the present invention, the application installed on the electronic device may be an application installed in an electronic device system, such as a clock application, a camera application, an address book application, or the like, or may also be a third-party application installed by a user, such as a WeChat application, a game application, a browser application, an instant chat application, a mail application, a management application, or the like.
Generally, all applications are displayed on a desktop of an electronic device in the form of object identifiers, one application corresponds to one object identifier, the object identifier is generally an icon, and by operating the object identifier of the application, the application corresponding to the object identifier can be started. For example, on a desktop of an electronic device such as a mobile phone, when a user touches an icon of an address book application, the address book application can be opened to display an address book recorded in the address book application on a touch display unit. When the application is started through the desktop, the application is displayed on a display screen of the electronic equipment in a full-screen window mode.
In an embodiment of the present invention, the first event is configured to present the application in a display area of the display unit in a small window manner, where the display area of the small window is smaller than the display area of the full screen window;
in the embodiment of the present invention, the first conversion parameter may be stored in a database of the electronic device in advance; the first conversion parameter is at least one of: parameters, matrices, parameter sets. For example, in an actual implementation process, the first conversion parameter may be represented in a matrix form, or may be represented in a parameter group, where a parameter in the parameter group may be a specific numerical value, or may be a vector; the first conversion parameter is realized in a form of a matrix, which is specifically defined as a first matrix in the embodiment of the present invention, and the first matrix may be stored in a matrix function library in the electronic device in advance; the full-screen window of the application can be transformed through the first matrix to generate a small window;
for example, a full-screen window is subjected to a reduction transform, a panning transform, a shape transform, and the like, and the full-screen window is further transformed into a small window.
The graph cache data applied under the full-screen window can be transformed through the first matrix to generate the graph cache data under the small application window; by changing the graphic cache data under the full-screen window, the full-screen window of the application can be reduced to form a small window in the display effect, the application is displayed on the touch display unit in a small-window state, and meanwhile, the first matrix can also perform translation transformation, shape transformation, angle transformation and the like on the small window;
preferably, the first matrix may be preset by a manufacturer of the electronic device, or may be manually set in the electronic device by a user; in order to facilitate the user to manually set the first matrix, the electronic device provides an automatic matrix generation function, the user only needs to set some parameters related to the first matrix on the electronic device, such as a window abscissa scaling parameter, a window ordinate scaling parameter, a window translation parameter, a window shape parameter, a window angle rotation parameter, and the like, and the electronic device can generate the corresponding first matrix according to the parameters.
Here, the scaling and rotation transformation of the full-screen window of the first application by using the first matrix can be implemented by formula (1 a):
in the formula (1 a), the first and second groups,is a coordinate vector of a small window, x2Is the abscissa of the small window, y2Is a small window seatMark, z2A general default setting is 1;v denotes a first matrix, which is a 3 x 3 matrix,
Mijrepresenting the elements of the ith row and the jth column in the first matrix, wherein i takes the values of 1, 2 and 3; j takes the values of 1, 2 and 3;representing full screen windowsCoordinate vector of (2), x1As abscissa of full screen window, y1Is the ordinate of a full-screen window, z1A general default setting is 1;
when the full screen window is subjected to scaling transformation by the formula (1 a), M can be convertedijThe 4 elements in (a) are set as follows: m11=α、M12=0、M21=0、M22= β, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into equation (1 a), equation (2 a) may be obtained:
wherein α is an abscissa scaling parameter, and β is an ordinate scaling parameter.
When the full screen window is subjected to clockwise rotation transformation through the formula (1 a), M can be convertedijThe 4 elements in (a) are set as follows: m11=cosθ、M12=sinθ、M21=-sinθ、M22= cos θ, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into the formula (1 a), the formula (3 a) can be obtained:
where θ is the rotation angle.
The panning of the full-screen window of the first application by means of the first matrix may be implemented by equation (4 a):
when the full screen window is subjected to translation transformation by the formula (4 a), M can be convertedij2 elements in (a) are set as follows: m11=a、M21=b、M31=0, and thus, the formula (5 a) can be derived by substituting the above-described parameters set into the formula (4 a):
wherein, a is an abscissa translation parameter, and b is an ordinate translation parameter.
In the scheme, a plurality of coordinate vectors of the full-screen window can be provided, and each coordinate vector corresponds to the position of one pixel point; similarly, there may be a plurality of coordinate vectors of the small window, and the number of the coordinate vectors of the small window corresponds to the number of the coordinate vectors of the full-screen window one to one, and the coordinate vector of the small window also corresponds to the position of a pixel point, which is the pixel point corresponding to the full-screen window.
In specific implementation, each element in the first matrix can be set to other values, so that a full-screen window can be converted into a required small window; moreover, when the full-screen window is simultaneously zoomed, panned and rotated, each element in the first matrix can be set, so that the full-screen window can be simultaneously zoomed, panned and rotated.
In the embodiment of the present invention, the first matrix V may also be another square matrix, for example, a 4 × 4 square matrix. Those skilled in the art can transform the dimension of the square matrix according to actual needs, and the description is omitted here.
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Example one
The information processing method provided by the embodiment of the invention is applied to electronic equipment, wherein the electronic equipment comprises a touch display unit and can run an application; acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window; acquiring a first conversion parameter based on the first event; and transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state. Fig. 1 is a schematic flow chart of an implementation of an information processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, acquiring a second event, wherein the second event is used for enabling a portlet state of a first application to be in a non-portlet state;
here, the non-widget state includes a full-screen-window state, a background state, an off state, or a Kill-controlled state. The Kill state refers to a state in which the user exits the first application from the task manager through a Kill command, and generally, after the first application is closed, the first application is still reserved in the task manager so that the application can be quickly started when being opened next time.
The second event may be an event of a scenario, for example, when a user installs a one-key cleaning application, and when the user starts the one-key cleaning application, some applications will be Kill, and then starting the one-key cleaning application will cause the first application, which is originally in the widget state, to be in a Kill state; for another example, some applications may have bugs, and the applications may crash during the running process, thereby causing the first application, which is originally in the widget state, to be in a closed state; for another example, when the memory of the electronic device is insufficient, the operating system may automatically Kill some applications, which may cause some applications that are far away from the widget state to be in a killed state; and the like, in the actual application process, as long as the second event can enable the first application to be in the widget state, namely the widget state is in the non-widget state, the second event is considered to be triggered, and details are not described here.
102, acquiring and storing first state information of the first application in a small window state, wherein the first state information comprises position parameter information and size parameter information;
step 103, acquiring a third event, wherein the third event is used for enabling the first application to be in a small window state from a non-small window state;
here, the third event is similar to the second event, and in an actual application process, as long as the second event enables the first application to be in the widget state from the non-widget state, the third event is considered to be triggered, which is not described herein again.
104, determining a second conversion parameter according to the position parameter information and the size parameter information in the saved first state information, wherein the second conversion parameter is used for converting a full-screen window of the first application so as to enable the first application to be in a small-window state corresponding to the first state information;
here, the second conversion parameter is similar to the first conversion parameter, and is not described in detail here.
And 105, transforming the full screen window of the first application by using the second conversion parameter to generate a small window corresponding to the first state information.
In the first embodiment of the present invention, first state information of a first application in a widget state is obtained and saved by obtaining a second event that causes the first application to be in a non-widget state from the widget state; then acquiring a third event which enables the first application to be in the small window state from the non-small window state, wherein the third event is used for enabling the first application to be in the small window state from the non-small window state; determining a second conversion parameter according to the stored first state information; finally, the full-screen window of the first application is transformed by utilizing the second transformation parameter, and a small window corresponding to the first state information is generated; therefore, after the application is restored to the foreground from the background or by the kill or the window is restarted, the state information of the small window of the application is saved, and therefore a safer and more reliable window restoration mechanism is provided for the user by saving the historical small window data used by the user, and the user experience is further improved.
Example two
An information processing method according to a second embodiment of the present invention is further provided on the basis of the first embodiment of the present invention, fig. 2 is a schematic flowchart illustrating a specific implementation flow of step 105 according to the first embodiment of the present invention, as shown in fig. 2, step 105 in fig. 1 further includes:
step 201, calling the second conversion parameter, and transforming the graph cache data corresponding to the first application according to the second conversion parameter to obtain first graph cache data;
here, the graphic buffer data of the first application may be Red, Green, Blue (RGB) data. The electronic equipment in the embodiment of the invention comprises two cache regions, namely a graph cache region and a frame cache region; the graph cache is used for storing RGB data drawn by a first application; the frame buffer is used for storing the frame buffer data after the graphics buffer data are merged, so that the content displayed in the screen display area of the electronic equipment is complete frame data.
Step 202, merging the first graph cache data with graph cache data corresponding to P applications to obtain frame cache data of the touch display unit, where P is the number of widgets displayed on the touch display unit when the third event occurs;
here, the P applications refer to applications displayed by the electronic device in a state of a small window when the third event occurs; for example, when the second event occurs, the number of applications displayed in the small window by the electronic device is 2, namely applications a and B; assuming that the second event occurs to close application a, state information of the widget of application a needs to be saved; when the third event occurs, the number of applications displayed by the electronic device in the form of small windows is 3, and the applications are C, D, E respectively; where 3 is P; in the embodiment of the present invention, after the third event occurs, the applications A, C, D, E are all required to be displayed on the display screen in a small window form, and when the graphics cache data is merged into the frame cache data, not only the graphics cache data of the program a but also the graphics cache data corresponding to the application C, D, E are required to be acquired, so that the applications A, C, D, E can be merged to form a complete frame cache.
Step 203, drawing each application in the touch unit by using the frame buffer data, and generating a small window corresponding to the first state information.
In the second embodiment of the present invention, the operating system only needs to record the last conversion parameter of the application, and can restore the application from the full-screen window to the last small-window state, and this conversion process only involves reducing the display window, and does not need to modify the first application at all.
EXAMPLE III
When two small windows are overlapped, the transparency parameter information of one small window of one application can be changed, so that the application is displayed in a semitransparent state; for example, when the user opens the video application and the instant chat application at the same time, the user wants the video application to be as large as possible, but does not want to miss the chat information sent by the friend, at this time, the transparency parameter information of the instant chat application can be set to be semi-transparent, and the video application is placed below the instant chat application, so that the video can be played while chatting.
On the basis of the foregoing embodiment of the present invention, an information processing method provided in a third embodiment of the present invention is applied to an electronic device, where the electronic device includes a touch display unit, and the electronic device is capable of running an application; acquiring a first event; acquiring a first conversion parameter based on the first event; and transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state. Fig. 3 is a schematic flow chart of an implementation of a third information processing method according to an embodiment of the present invention, and as shown in fig. 3, the information processing method shown in fig. 3 includes:
step 301, acquiring a second event, where the second event is used to enable the first application to be in a non-widget state from the widget state;
here, the non-widget state includes a full-screen-window state, a background state, an off state, or a Kill-controlled state. The Kill state refers to a state in which the user exits the first application from the task manager through a Kill command, and generally, after the first application is closed, the first application is still reserved in the task manager so that the application can be quickly started when being opened next time.
The second event may be an event of a scenario, for example, when a user installs a one-key cleaning application, and when the user starts the one-key cleaning application, some applications will be Kill, and then starting the one-key cleaning application will cause the first application, which is originally in the widget state, to be in a Kill state; for another example, some applications may have bugs, and the applications may crash during the running process, thereby causing the first application, which is originally in the widget state, to be in a closed state; for another example, when the memory of the electronic device is insufficient, the operating system may automatically Kill some applications, which may cause some applications that are far away from the widget state to be in a killed state; and the like, in the actual application process, as long as the second event can enable the first application to be in the widget state, namely the widget state is in the non-widget state, the second event is considered to be triggered, and details are not described here.
Step 302, acquiring and storing first state information of the first application in a small window state, wherein the first state information comprises position parameter information, size parameter information and display parameter information;
here, the display parameter information at least includes transparency parameter information, which may be measured by a number between 0 and 1, for example, when the transparency parameter information is 1, it means complete transparency, 0 means complete opacity, and 0.5 means 50% transparency; those skilled in the art can implement the method according to various prior arts, for example, when the method is implemented by an android operating system, the transparency parameter set in the android operating system can be directly called, and the setting is performed according to the related content of the android system, which is not described herein again.
Step 303, acquiring a third event, where the third event is used to enable the first application to be in a small window state from a non-small window state;
here, the third event is similar to the second event, and in an actual application process, as long as the second event enables the first application to be in the widget state from the non-widget state, the third event is considered to be triggered, which is not described herein again.
Step 304, determining a second conversion parameter according to the saved position parameter information and size parameter information, wherein the second conversion parameter is used for converting a full-screen window of the first application so as to enable the first application to be in a small-window state corresponding to the position parameter information and the size parameter information in the first state information;
here, the second conversion parameter is similar to the first conversion parameter, and is not described in detail here.
Step 305, transforming a full screen window of the first application by using the second conversion parameter and the display parameter information, and generating a small window corresponding to the first state information.
The information processing method provided by the third embodiment of the invention can record the display parameter information, particularly the transparency parameter information, of the small window, so that the state information and the display parameter information of the small window of the application can be stored when the application is restored to a foreground from a background or by kill or is restarted, and thus, by storing historical small window data used by a user, a safer and more reliable window restoration mechanism is provided for the user, and the user experience is further improved.
Example four
The information processing method provided by the fourth embodiment of the invention is applied to electronic equipment, wherein the electronic equipment comprises a touch display unit and can run an application; acquiring a first event; acquiring a first conversion parameter based on the first event; and transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state. Fig. 4 is a schematic flow chart of an implementation of a fourth information processing method according to an embodiment of the present invention, as shown in fig. 4, the method includes:
step 401, acquiring a second event of a user, where the second event is used to enable a widget state of a first application to be in a non-widget state;
here, the non-widget state includes a full-screen-window state, a background state, an off state, or a Kill-controlled state. The Kill state refers to a state in which the user exits the first application from the task manager through a Kill command, and generally, after the first application is closed, the first application is still reserved in the task manager so that the application can be quickly started when being opened next time.
The second event may be an event of a scenario, for example, when a user installs a one-key cleaning application, and when the user starts the one-key cleaning application, some applications will be Kill, and then starting the one-key cleaning application will cause the first application, which is originally in the widget state, to be in a Kill state; for another example, some applications may have bugs, and the applications may crash during the running process, thereby causing the first application, which is originally in the widget state, to be in a closed state; for another example, when the memory of the electronic device is insufficient, the operating system may automatically Kill some applications, which may cause some applications that are far away from the widget state to be in a killed state; and the like, in the actual application process, as long as the second event can enable the first application to be in the widget state, namely the widget state is in the non-widget state, the second event is considered to be triggered, and details are not described here.
Step 402, acquiring and storing first state information of the first application in a small window state;
here, the first state information includes at least position parameter information and size parameter information of the small window;
step 403, acquiring a third event of the user, where the third event is used to enable the first application to be in a widget state from a non-widget state;
here, the third event is similar to the second event, and in an actual application process, as long as the second event enables the first application to be in the widget state from the non-widget state, the third event is considered to be triggered, which is not described herein again.
Step 404, judging whether an application small window is displayed at a corresponding position of the touch display unit according to the stored first position parameter information, and acquiring a first judgment result; when the first judgment result shows that the position represented by the first position parameter information displays an applied small window, determining the position parameter information of a blank display area of a touch display unit;
step 405, generating a small window corresponding to the first size parameter information according to the first size parameter information and the position parameter information of the blank display area, so that the small window of the first application is displayed in the blank display area.
In the solution provided in the fourth embodiment of the present invention, a widget corresponding to the first size parameter information is generated according to the first size parameter information and the position parameter information of the blank display area, so that the widget of the first application is displayed in the blank display area; therefore, the historical widget data used by the user is saved, a safer and more reliable window recovery mechanism is provided for the user, and the user experience is improved.
In the first and fourth embodiments of the present invention, the acquiring the first event, the second event, or the third event of the user may include step a1 and step a2, where:
step A1, detecting whether touch operation meeting a first predetermined condition occurs;
here, the touch operation satisfies the first predetermined condition, which may be implemented by, but not limited to, the following forms: whether the touch operation is a single-click touch operation or not; or whether the touch operation is a double-click touch operation or not; or whether the touch operation is a three-finger touch operation or not; or whether the touch operation is a five-finger touch operation.
Step A2, when the operation satisfies the first predetermined condition, determining to acquire the first event or the second event or the third event of the user.
In the first and fourth embodiments of the present invention, the acquiring the first event, the second event, or the third event of the user may further include step B1 and step B2, where:
step B1, detecting whether the key operation meeting the second preset condition occurs;
here, the key operation satisfying the second predetermined condition may be implemented by, but not limited to, the following form: whether the key operation is long pressing of a certain key, for example, pressing of a function key-HOME key for more than 2 seconds; or whether the key operation is a combination of certain keys, such as a combination of function keys, namely a HOME key and a BACK key.
And step B2, when the key operation meets the second preset condition, determining to acquire the first event, the second event or the third event of the user.
In the first and fourth embodiments of the present invention, the acquiring the first event, the second event, or the third event of the user may further include step C1 and step C2, where:
step C1, detecting whether the electronic equipment has posture change meeting a third preset condition;
step C2, when the electronic device has a posture change meeting the third predetermined condition, determining to acquire the first event, the second event or the third event of the user;
here, the posture change may be a change in a position of the electronic device. In addition, the first operation may also be an operation of voice control, and in the embodiment of the present invention, the first operation may be any type of operation on an interactive object in the multi-window manager, which is not described herein again.
In the first and fourth embodiments of the present invention, the acquiring the first event, the second event, or the third event of the user may further include step D1 and step D2, where:
step D1, detecting whether a voice operation meeting a fourth preset condition occurs;
and D2, when the voice operation meets the fourth preset condition, determining to acquire the first event, the second event or the third event of the user.
EXAMPLE five
An information processing method according to a fifth embodiment of the present invention is further provided on the basis of the fourth embodiment of the present invention, fig. 5 is a schematic flowchart illustrating a specific implementation flow of step 404 in the fourth embodiment of the present invention, as shown in fig. 2, step 404 in fig. 1 further includes:
step 501, judging whether an application small window is displayed at a corresponding position of the touch display unit according to the stored first position parameter information, and acquiring a first judgment result; when the first judgment result shows that the position represented by the first position parameter information displays an applied small window, acquiring P position parameter information corresponding to P small windows, wherein P is the number of the small windows displayed on the touch display unit when the third event occurs;
step 502, determining position parameter information of a blank display area of a touch display unit according to the P position parameter information corresponding to the P small windows and the screen size parameter information of the electronic device.
EXAMPLE six
Based on the foregoing embodiments, an information processing method according to a sixth embodiment of the present invention is further provided, and fig. 6 is a schematic flowchart illustrating a specific implementation flow of step 405 in a fourth embodiment of the present invention, as shown in fig. 6, step 405 in fig. 6 further includes:
601, determining second position parameter information of the first application in a small window state according to the first size parameter information and the position parameter information of the blank display area;
step 602, determining a third conversion parameter according to the second location parameter information and the first size parameter information, where the third conversion parameter is used to convert a full-screen window of the first application, so that the first application is in a small-window state corresponding to the first size parameter information and the second location parameter information;
step 603, transforming the full-screen window of the first application by using the third transformation parameter, and generating a small window corresponding to the first size parameter information, so that the small window of the first application is displayed in a blank display area.
EXAMPLE seven
An information processing method according to a seventh embodiment of the present invention is further provided on the basis of the sixth embodiment of the present invention, fig. 7 is a schematic flowchart illustrating a specific implementation process of step 603 in the sixth embodiment of the present invention, as shown in fig. 7, step 603 in fig. 7 further includes:
step 701, calling the third conversion parameter, and transforming the graph cache data corresponding to the first application according to the third conversion parameter to obtain second graph cache data;
step 702, merging the second graph cache data with graph cache data corresponding to P applications to obtain frame cache data of the touch display unit, where P is the number of widgets displayed on the touch display unit when the third event occurs;
and 703, drawing each application in the touch unit by using the frame buffer data, and generating a small window corresponding to the first size parameter information and the second position parameter, so that the small window of the first application is displayed in a blank display area.
Example eight
The embodiment of the invention provides electronic equipment, which comprises a touch display unit; acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window; acquiring a first conversion parameter based on the first event; transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state; fig. 8 is a schematic structural diagram of an eighth electronic device according to an embodiment of the present invention, and as shown in fig. 8, the electronic device includes a first obtaining device 81, a saving device 82, a second obtaining device 83, a first determining device 84, and a first generating device 85, where:
the first obtaining device 81 is configured to obtain a second event of the user, where the second event is used to enable the first application to be in a portlet state;
here, the second event is for causing the first application to be in a non-portlet state from the portlet state; the non-widget state comprises a full-screen window state, a background state, a closed state or a Kill-controlled state. The Kill state refers to a state in which the user exits the first application from the task manager through a Kill command, and generally, after the first application is closed, the first application is still reserved in the task manager so that the application can be quickly started when being opened next time.
The second event may be an event of a scenario, for example, when a user installs a one-key cleaning application, and when the user starts the one-key cleaning application, some applications will be Kill, and then starting the one-key cleaning application will cause the first application, which is originally in the widget state, to be in a Kill state; for another example, some applications may have bugs, and the applications may crash during the running process, thereby causing the first application, which is originally in the widget state, to be in a closed state; for another example, when the memory of the electronic device is insufficient, the operating system may automatically Kill some applications, which may cause some applications that are far away from the widget state to be in a killed state; and the like, in the actual application process, as long as the second event can enable the first application to be in the widget state, namely the widget state is in the non-widget state, the second event is considered to be triggered, and details are not described here.
The saving device 82 is configured to obtain and save first state information of the first application in the widget state;
here, the first state information includes at least position parameter information and size parameter information of the small window;
the second obtaining device 83 is configured to obtain a third event of the user, where the third event is used to enable the first application to be in a widget state from a non-widget state;
here, the third event is similar to the second event, and in an actual application process, as long as the second event enables the first application to be in the widget state from the non-widget state, the third event is considered to be triggered, which is not described herein again.
The first determining device 84 is configured to determine a second conversion parameter according to the position parameter information and the size parameter information of the saved first state information, where the second conversion parameter is used to convert a full-screen window of the first application, so that the first application is in a small-window state corresponding to the first state information;
here, the second conversion parameter is similar to the first conversion parameter, and is not described in detail here.
The first generating device 85 is configured to transform a full-screen window of the first application by using the second conversion parameter, and generate a small window corresponding to the first state information.
In the eighth embodiment of the present invention, a second event that causes a widget state of a first application to be in a non-widget state is acquired by a first acquiring device 81, and first state information that causes the widget state of the first application to be in the widget state is acquired and saved by a saving device 82; then, a third event for making the first application in the small window state from the non-small window state is obtained through a second obtaining device 83, and the third event is used for making the first application in the small window state from the non-small window state; and determining, by the first determining means 84, a second transition parameter based on the saved first state information; finally, the full-screen window of the first application is transformed by the first generating device 85 by using the second transformation parameter, and a small window corresponding to the first state information is generated; therefore, after the application is restored to the foreground from the background or by the kill or the window is restarted, the state information of the small window of the application is saved, and therefore a safer and more reliable window restoration mechanism is provided for the user by saving the historical small window data used by the user, and the user experience is further improved.
Example nine
The electronic device of the ninth embodiment of the present invention is further provided on the basis of the eighth embodiment of the present invention; fig. 9 is a schematic diagram of a composition structure of a first generating device in an eighth embodiment of the present invention, and as shown in fig. 9, the first generating device includes a calling unit 91, a merging unit 92, and a generating unit 93, where:
the calling unit 91 is configured to call the second conversion parameter, and transform the graph cache data corresponding to the first application according to the second conversion parameter to obtain first graph cache data;
here, the graphic buffer data of the first application may be Red, Green, Blue (RGB) data. The electronic equipment in the embodiment of the invention comprises two cache regions, namely a graph cache region and a frame cache region; the graph cache is used for storing RGB data drawn by a first application; the frame buffer is used for storing the frame buffer data after the graphics buffer data are merged, so that the content displayed in the screen display area of the electronic equipment is complete frame data.
The merging unit 92 is configured to merge the first graph cache data with graph cache data corresponding to P applications to obtain frame cache data of the touch display unit, where P is the number of widgets displayed on the touch display unit when the third event occurs;
here, the P applications refer to applications displayed by the electronic device in a state of a small window when the third event occurs; for example, when the second event occurs, the number of applications displayed in the small window by the electronic device is 2, namely applications a and B; assuming that the second event occurs to close application a, state information of the widget of application a needs to be saved; when the third event occurs, the number of applications displayed by the electronic device in the form of small windows is 3, and the applications are C, D, E respectively; where 3 is P; in the embodiment of the present invention, after the third event occurs, the applications A, C, D, E are all required to be displayed on the display screen in a small window form, and when the graphics cache data is merged into the frame cache data, not only the graphics cache data of the program a but also the graphics cache data corresponding to the application C, D, E are required to be acquired, so that the applications A, C, D, E can be merged to form a complete frame cache.
The first generating unit 93 is configured to draw each application in the touch unit by using the frame buffer data, and generate a small window corresponding to the first state information.
In the ninth embodiment of the present invention, the operating system only needs to record the last conversion parameter of the application, and can restore the application from the full-screen window to the last small-window state, and this conversion process only involves reducing the display window, and does not need to modify the first application at all.
Example ten
When two small windows are overlapped, the transparency parameter information of one small window of one application can be changed, so that the application is displayed in a semitransparent state; for example, when the user opens the video application and the instant chat application at the same time, the user wants the video application to be as large as possible, but does not want to miss the chat information sent by the friend, at this time, the transparency parameter information of the instant chat application can be set to be semi-transparent, and the video application is placed below the instant chat application, so that the video can be played while chatting.
On the basis of the eighth and ninth embodiments of the present invention, the storage device provided in the tenth embodiment of the present invention is further configured to obtain and store display parameter information of the first application in the small window state;
correspondingly, the generating device is further configured to transform a full-screen window of the first application by using the position parameter information, the size parameter information, and the display parameter information, and generate a small window corresponding to the first state information and the transparency parameter information.
The electronic device provided by the tenth embodiment of the invention can record the display parameter information, particularly the transparency parameter information, of the small window, so that the state information and the display parameter information of the small window of the application can be stored when the application is restored to a foreground from a background or from kill or is restarted, and thus, by storing historical small window data used by a user, a safer and more reliable window restoration mechanism is provided for the user, and the user experience is further improved.
EXAMPLE eleven
The embodiment of the invention provides electronic equipment, which comprises a touch display unit; acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window; acquiring a first conversion parameter based on the first event; transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state; fig. 10 is a schematic structural diagram of an eleventh electronic device according to an embodiment of the invention, as shown in fig. 10,
the electronic device comprises a first obtaining means 1001, a saving means 1002, a second obtaining means 1003, a second determining means 1004 and a second generating means 1005, wherein:
the first obtaining means 1001 is configured to obtain a second event, where the second event is used to enable the first application to be in a non-widget state from the widget state;
here, the second event is for causing the first application to be in a non-portlet state from the portlet state; the non-widget state comprises a full-screen window state, a background state, a closed state or a Kill-controlled state. The Kill state refers to a state in which the user exits the first application from the task manager through a Kill command, and generally, after the first application is closed, the first application is still reserved in the task manager so that the application can be quickly started when being opened next time.
The second event may be an event of a scenario, for example, when a user installs a one-key cleaning application, and when the user starts the one-key cleaning application, some applications will be Kill, and then starting the one-key cleaning application will cause the first application, which is originally in the widget state, to be in a Kill state; for another example, some applications may have bugs, and the applications may crash during the running process, thereby causing the first application, which is originally in the widget state, to be in a closed state; for another example, when the memory of the electronic device is insufficient, the operating system may automatically Kill some applications, which may cause some applications that are far away from the widget state to be in a killed state; and the like, in the actual application process, as long as the second event can enable the first application to be in the widget state, namely the widget state is in the non-widget state, the second event is considered to be triggered, and details are not described here.
The saving device 1002 is configured to obtain and save first state information of the first application in a small window state, where the first state information at least includes first size parameter information and first position parameter information;
the second obtaining device 1003 is configured to obtain a third event of the user, where the third event is used to enable the first application to be in a widget state from a non-widget state;
here, the third event is similar to the second event, and in an actual application process, as long as the second event enables the first application to be in the widget state from the non-widget state, the third event is considered to be triggered, which is not described herein again.
The second determining device 1004 is configured to determine whether an application small window is displayed at a corresponding position of the touch display unit according to the stored first position parameter information, and obtain a first determination result; when the first judgment result shows that the position represented by the first position parameter information displays an applied small window, determining the position parameter information of a blank display area of a touch display unit;
the second generating device 1005 is configured to generate a small window corresponding to the first size parameter information according to the first size parameter information and the position parameter information of the blank display area, so that the small window of the first application is displayed in the blank display area.
In the scheme provided by the embodiment of the invention, a small window corresponding to the first size parameter information is generated according to the first size parameter information and the position parameter information of the blank display area, so that the small window of the first application is displayed in the blank display area; therefore, the historical widget data used by the user is saved, a safer and more reliable window recovery mechanism is provided for the user, and the user experience is improved.
Preferably, the first acquiring means, the second acquiring means, or the third acquiring means may include a detecting unit and a determining unit, wherein:
the detection unit is used for detecting whether touch operation meeting a first preset condition occurs or not; correspondingly, the determining unit is configured to determine to acquire a first event, a second event, or a third event of the user when the operation satisfies the first predetermined condition. Or,
the detection unit is used for detecting whether key operation meeting a second preset condition occurs or not; in a corresponding manner, the first and second electrodes are,
the determining unit is used for determining to acquire a first event, a second event or a third event of the user when the key operation meets the second preset condition. Or,
the detection unit is used for detecting whether the electronic equipment has posture change meeting a third preset condition; correspondingly, the determining unit is used for determining to acquire a first event, a second event or a third event of a user when the electronic equipment has a posture change meeting the third preset condition; or,
the detection unit is used for detecting whether voice operation meeting a fourth preset condition occurs or not; correspondingly, the determining unit is configured to determine to acquire the first event, the second event, or the third event of the user when the voice operation satisfies the fourth predetermined condition.
Here, the touch operation satisfies the first predetermined condition, which may be implemented by, but not limited to, the following forms: whether the touch operation is a single-click touch operation or not; or whether the touch operation is a double-click touch operation or not; or whether the touch operation is a three-finger touch operation or not; or whether the touch operation is a five-finger touch operation.
Here, the key operation satisfying the second predetermined condition may be implemented by, but not limited to, the following form: whether the key operation is long pressing of a certain key, for example, pressing of a function key-HOME key for more than 2 seconds; or whether the key operation is a combination of certain keys, such as a combination of function keys, namely a HOME key and a BACK key.
Here, the posture change may be a change in a position of the electronic device. In addition, the first operation may also be an operation of voice control, and in the embodiment of the present invention, the first operation may be any type of operation on an interactive object in the multi-window manager, which is not described herein again.
In the foregoing solution, the second determining apparatus includes a first obtaining unit and a third determining unit, where:
the first obtaining unit is used for judging whether a small window of an application is displayed at the corresponding position of the touch display unit according to the stored first position parameter information to obtain a first judgment result; when the first judgment result shows that the position represented by the first position parameter information displays an applied small window, acquiring P position parameter information corresponding to P small windows, wherein P is the number of the small windows displayed on the touch display unit when the third event occurs;
the third determining unit is configured to determine position parameter information of a blank display area of the touch display unit according to the P position parameter information corresponding to the P small windows and the screen size parameter information of the electronic device.
In the foregoing solution, the second generating device includes a fourth determining unit, a fifth determining unit, and a second generating unit:
the fourth determining unit is used for determining second position parameter information of the first application in a small window state according to the first size parameter information and the position parameter information of the blank display area;
the fifth determining unit is configured to determine a third conversion parameter according to the second location parameter information and the first size parameter information, where the third conversion parameter is used to convert a full-screen window of the first application, so that the first application is in a small-window state corresponding to the first size parameter information and the second location parameter information;
the second generating unit is configured to transform a full-screen window of the first application by using the third conversion parameter, and generate a widget corresponding to the first size parameter information, so that the widget of the first application is displayed in a blank display area.
In the above scheme, the second generating unit includes a transforming module, a combining module, and a generating module, where:
the conversion module is used for calling the third conversion parameter and converting the graph cache data corresponding to the first application according to the third conversion parameter to obtain second graph cache data;
the merging module is configured to merge the second graph cache data with graph cache data corresponding to P applications to obtain frame cache data of the touch display unit, where P is the number of widgets displayed on the touch display unit when the third event occurs;
the generating module is configured to draw each application in the touch unit by using the frame buffer data, and generate a small window corresponding to the first size parameter information and the second position parameter, so that the small window of the first application is displayed in a blank display area.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (18)
1. An information processing method is applied to electronic equipment, the electronic equipment comprises a touch display unit, and the electronic equipment can run an application;
acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window;
acquiring a first conversion parameter based on the first event;
transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state;
the method comprises the following steps:
acquiring a second event of the user, wherein the second event is used for enabling the first application to be in a non-widget state from the widget state;
acquiring and storing first state information of the first application in a small window state, wherein the first state information comprises transparency parameter information, position parameter information and size parameter information;
acquiring a third event of a user, wherein the third event is used for enabling the first application to be in a small window state from a non-small window state;
determining a second conversion parameter according to the position parameter information and the size parameter information in the saved first state information, wherein the second conversion parameter is used for converting a full-screen window of the first application so as to enable the first application to be in a small-window state corresponding to the first state information;
calling the second conversion parameter, and transforming the graph cache data corresponding to the first application according to the second conversion parameter to obtain first graph cache data;
merging the first graph cache data with graph cache data corresponding to P applications to obtain frame cache data of the touch display unit, wherein P is the number of small windows displayed on the touch display unit when the third event occurs;
and drawing each application in the touch unit by using the frame cache data to generate a small window corresponding to the first state information.
2. The method of claim 1, wherein the first conversion parameter is at least one of: parameters, matrices, parameter sets.
3. The method of claim 1, wherein the first status information further comprises display parameter information;
correspondingly, the transforming the full-screen window of the first application by using the second conversion parameter to generate a small window corresponding to the first state information includes:
and transforming the full-screen window of the first application by using the second conversion parameter and the display parameter information to generate a small window corresponding to the first state information.
4. The method according to any one of claims 1 to 3, wherein the acquiring a first event or a second event or a third event of a user comprises:
detecting whether touch operation meeting a first preset condition occurs, and determining to acquire a first event, a second event or a third event of a user when the touch operation meeting the first preset condition occurs; or,
detecting whether a key operation meeting a second preset condition occurs, and determining to acquire a first event, a second event or a third event of a user when the key operation meets the second preset condition; or,
detecting whether the electronic equipment has posture change meeting a third preset condition or not; when the electronic equipment generates a posture change meeting the third preset condition, determining to obtain a first event, a second event or a third event of a user; or,
detecting whether a voice operation meeting a fourth preset condition occurs; and when the voice operation meets the fourth preset condition, determining to acquire the first event, the second event or the third event of the user.
5. An information processing method is applied to electronic equipment, and the electronic equipment comprises a touch display unit;
acquiring a first event, wherein the first event is used for presenting the application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window;
acquiring a first conversion parameter based on the first event;
transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state;
the method comprises the following steps:
acquiring a second event of the user, wherein the second event is used for enabling the first application to be in a non-widget state from the widget state;
acquiring first state information of the first application in a small window state, and storing the first state information, wherein the first state information at least comprises first transparency parameter information, first size parameter information and first position parameter information;
acquiring a third event of a user, wherein the third event is used for enabling the first application to be in a small window state from a non-small window state;
judging whether a corresponding position of the touch display unit displays an applied small window according to the stored first position parameter information, and acquiring a first judgment result; when the first judgment result shows that the position represented by the first position parameter information displays an applied small window, determining the position parameter information of a blank display area of a touch display unit;
and generating a small window corresponding to the first size parameter information according to the first size parameter information and the position parameter information of the blank display area, so that the small window of the first application is displayed in the blank display area.
6. The method of claim 5, wherein the first conversion parameter is at least one of: parameters, matrices, parameter sets.
7. The method according to claim 5, wherein the determining the position parameter information of the blank display area of the touch display unit comprises:
acquiring P position parameter information corresponding to P small windows, wherein P is the number of the small windows displayed on the touch display unit when the third event occurs;
and determining the position parameter information of the blank display area of the touch display unit according to the P position parameter information corresponding to the P small windows and the screen size parameter information of the electronic equipment.
8. The method according to claim 7, wherein the generating a widget corresponding to the first size parameter information according to the first size parameter information and the position parameter information of the blank display area, so that the widget of the first application is displayed in the blank display area comprises:
determining second position parameter information of the first application in a small window state according to the first size parameter information and the position parameter information of the blank display area;
determining a third conversion parameter according to the second position parameter information and the first size parameter information, wherein the third conversion parameter is used for converting a full-screen window of the first application so as to enable the first application to be in a small-window state corresponding to the first size parameter information and the second position parameter information;
and transforming the full-screen window of the first application by using the third conversion parameter to generate a small window corresponding to the first size parameter information, so that the small window of the first application is displayed in a blank display area.
9. The method of claim 8, wherein the transforming the full-screen window of the first application by using the third conversion parameter to generate the widget corresponding to the first size parameter information comprises:
calling the third conversion parameter, and transforming the graph cache data corresponding to the first application according to the third conversion parameter to obtain second graph cache data;
merging the second graph cache data with graph cache data corresponding to P applications to obtain frame cache data of the touch display unit, wherein P is the number of small windows displayed on the touch display unit when the third event occurs;
and drawing each application in the touch unit by using the frame cache data, and generating a small window corresponding to the first size parameter information and the second position parameter so as to display the small window of the first application in a blank display area.
10. An electronic device includes a touch display unit;
acquiring a first event, wherein the first event is used for presenting an application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window;
acquiring a first conversion parameter based on the first event;
transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state;
the electronic equipment comprises a first acquisition device, a storage device, a second acquisition device, a first determination device and a first generation device, wherein:
the first obtaining device is used for obtaining a second event of the user, and the second event is used for enabling the first application to be in a non-widget state from the widget state;
the saving device is used for acquiring and saving first state information of the first application in a small window state, wherein the first state information comprises transparency parameter information, position parameter information and size parameter information;
the second obtaining device is used for obtaining a third event of the user, and the third event is used for enabling the first application to be in a small window state from a non-small window state;
the first determining device is configured to determine a second conversion parameter according to the position parameter information and the size parameter information in the saved first state information, where the second conversion parameter is used to convert a full-screen window of the first application, so that the first application is in a small-window state corresponding to the first state information;
the first generating device comprises a calling unit, a merging unit and a generating unit, wherein:
the calling unit is used for calling the second conversion parameter and transforming the graph cache data corresponding to the first application according to the second conversion parameter to obtain first graph cache data;
the merging unit is configured to merge the first graph cache data with graph cache data corresponding to P applications to obtain frame cache data of the touch display unit, where P is the number of widgets displayed on the touch display unit when the third event occurs;
the first generating unit is configured to draw each application in the touch unit by using the frame buffer data, and generate a small window corresponding to the first state information.
11. The electronic device of claim 10, wherein the first conversion parameter is at least one of: parameters, matrices, parameter sets.
12. The electronic device according to claim 10, wherein the saving means is further configured to obtain and save display parameter information of the first application in a widget state;
correspondingly, the generating device is further configured to transform a full-screen window of the first application by using the second conversion parameter and the display parameter information, and generate a small window corresponding to the first state information.
13. The electronic device according to any one of claims 10 to 12, wherein the first or second or third acquisition means comprises a detection unit and a determination unit, wherein:
the detection unit is used for detecting whether touch operation meeting a first preset condition occurs or not; correspondingly, the determining unit is configured to determine to acquire a first event, a second event or a third event of the user when the operation satisfies the first predetermined condition; or,
the detection unit is used for detecting whether key operation meeting a second preset condition occurs or not; correspondingly, the determining unit is configured to determine to acquire a first event, a second event, or a third event of the user when the key operation satisfies the second predetermined condition; or,
the detection unit is used for detecting whether the electronic equipment has posture change meeting a third preset condition; correspondingly, the determining unit is used for determining to acquire a first event, a second event or a third event of a user when the electronic equipment has a posture change meeting the third preset condition; or,
the detection unit is used for detecting whether voice operation meeting a fourth preset condition occurs or not; correspondingly, the determining unit is configured to determine to acquire the first event, the second event, or the third event of the user when the voice operation satisfies the fourth predetermined condition.
14. An electronic device includes a touch display unit;
acquiring a first event, wherein the first event is used for presenting an application in a display area of the display unit in a small window mode, and the display area of the small window is smaller than that of a full-screen window;
acquiring a first conversion parameter based on the first event;
transforming the full-screen window of the application by using the first transformation parameter to generate a small window of the application so as to enable the application to be in a small-window state;
the electronic equipment comprises a first acquisition device, a storage device, a second acquisition device, a second determination device and a second generation device, wherein:
the first obtaining device is used for obtaining a second event of the user, and the second event is used for enabling the first application to be in a non-widget state from the widget state;
the saving device is used for acquiring first state information of the first application in a small window state and saving the first state information, wherein the first state information at least comprises first transparency parameter information, first size parameter information and first position parameter information;
the second obtaining device is used for obtaining a third event of the user, and the third event is used for enabling the first application to be in a small window state from a non-small window state;
the second determining device is used for judging whether the corresponding position of the touch display unit displays the small window of the application according to the stored first position parameter information to obtain a first judgment result; when the first judgment result shows that the position represented by the first position parameter information displays an applied small window, determining the position parameter information of a blank display area of a touch display unit;
and the second generating device is configured to generate a small window corresponding to the first size parameter information according to the first size parameter information and the position parameter information of the blank display area, so that the small window of the first application is displayed in the blank display area.
15. The electronic device of claim 14, wherein the first conversion parameter is at least one of: parameters, matrices, parameter sets.
16. The electronic device according to claim 14, wherein the second determination means includes a first acquisition unit and a third determination unit, wherein:
the first obtaining unit is used for judging whether a small window of an application is displayed at the corresponding position of the touch display unit according to the stored first position parameter information to obtain a first judgment result; when the first judgment result shows that the position represented by the first position parameter information displays an applied small window, acquiring P position parameter information corresponding to P small windows, wherein P is the number of the small windows displayed on the touch display unit when the third event occurs;
the third determining unit is configured to determine position parameter information of a blank display area of the touch display unit according to the P position parameter information corresponding to the P small windows and the screen size parameter information of the electronic device.
17. The electronic device of claim 14, wherein the second generating means comprises a fourth determining unit, a fifth determining unit, and a second generating unit, wherein:
the fourth determining unit is used for determining second position parameter information of the first application in a small window state according to the first size parameter information and the position parameter information of the blank display area;
the fifth determining unit is configured to determine a third conversion parameter according to the second location parameter information and the first size parameter information, where the third conversion parameter is used to convert a full-screen window of the first application, so that the first application is in a small-window state corresponding to the first size parameter information and the second location parameter information;
the second generating unit is configured to transform a full-screen window of the first application by using the third conversion parameter, and generate a widget corresponding to the first size parameter information, so that the widget of the first application is displayed in a blank display area.
18. The electronic device of claim 17, wherein the second generating unit comprises a transformation module, a merging module, and a generation module, wherein:
the conversion module is used for calling the third conversion parameter and converting the graph cache data corresponding to the first application according to the third conversion parameter to obtain second graph cache data;
the merging module is configured to merge the second graph cache data with graph cache data corresponding to P applications to obtain frame cache data of the touch display unit, where P is the number of widgets displayed on the touch display unit when the third event occurs;
the generating module is configured to draw each application in the touch unit by using the frame buffer data, and generate a small window corresponding to the first size parameter information and the second position parameter, so that the small window of the first application is displayed in a blank display area.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310518300.4A CN104571802B (en) | 2013-10-28 | 2013-10-28 | A kind of information processing method and electronic equipment |
| US14/229,115 US9244593B2 (en) | 2013-10-28 | 2014-03-28 | Information processing methods and electronic devices |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310518300.4A CN104571802B (en) | 2013-10-28 | 2013-10-28 | A kind of information processing method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104571802A CN104571802A (en) | 2015-04-29 |
| CN104571802B true CN104571802B (en) | 2019-01-15 |
Family
ID=53088019
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310518300.4A Active CN104571802B (en) | 2013-10-28 | 2013-10-28 | A kind of information processing method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104571802B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107179914A (en) * | 2017-06-13 | 2017-09-19 | 深圳天珑无线科技有限公司 | Application processing method and device |
| CN109284043B (en) * | 2017-07-19 | 2021-06-15 | 武汉斗鱼网络科技有限公司 | A kind of gift panel state information retention method and device |
| CN109976611B (en) * | 2019-03-21 | 2021-06-29 | 维沃移动通信有限公司 | Terminal device control method and terminal device |
| CN112416479B (en) * | 2019-08-21 | 2024-11-22 | 腾讯科技(深圳)有限公司 | Window display switching method, device, terminal and computer-readable storage medium |
| CN111610912B (en) | 2020-04-24 | 2023-10-10 | 北京小米移动软件有限公司 | Application display method, application display device and storage medium |
| CN113238663A (en) * | 2021-04-27 | 2021-08-10 | 北京麟卓信息科技有限公司 | Adaptive keyboard mapping method and device based on view matching |
| CN113703629A (en) * | 2021-08-31 | 2021-11-26 | 北京达佳互联信息技术有限公司 | Interface element operation method and device, electronic equipment and storage medium |
| CN115103149B (en) * | 2022-05-23 | 2025-03-07 | 深圳康佳电子科技有限公司 | Interactive control method, terminal device and storage medium for social fitness scene |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1826575A (en) * | 2003-06-20 | 2006-08-30 | 苹果电脑有限公司 | Computer interface with single layer mode for viewing overlapping objects |
| JP2008145863A (en) * | 2006-12-12 | 2008-06-26 | Fujitsu Ltd | Display control device |
| CN101606124A (en) * | 2007-01-25 | 2009-12-16 | 夏普株式会社 | Multi-window management device and program, storage medium, and information processing device |
| CN103067569A (en) * | 2012-12-10 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and device of multi-window displaying of smart phone |
| US20130135221A1 (en) * | 2011-11-30 | 2013-05-30 | Google Inc. | Turning on and off full screen mode on a touchscreen |
| CN103270505A (en) * | 2010-10-01 | 2013-08-28 | Flex Electronics ID Co.,Ltd. | Smart Board Divide Screen |
| CN103365525A (en) * | 2012-03-28 | 2013-10-23 | 百度在线网络技术(北京)有限公司 | Mobile terminal and multi-window displaying method for mobile terminal |
-
2013
- 2013-10-28 CN CN201310518300.4A patent/CN104571802B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1826575A (en) * | 2003-06-20 | 2006-08-30 | 苹果电脑有限公司 | Computer interface with single layer mode for viewing overlapping objects |
| JP2008145863A (en) * | 2006-12-12 | 2008-06-26 | Fujitsu Ltd | Display control device |
| CN101606124A (en) * | 2007-01-25 | 2009-12-16 | 夏普株式会社 | Multi-window management device and program, storage medium, and information processing device |
| CN103270505A (en) * | 2010-10-01 | 2013-08-28 | Flex Electronics ID Co.,Ltd. | Smart Board Divide Screen |
| US20130135221A1 (en) * | 2011-11-30 | 2013-05-30 | Google Inc. | Turning on and off full screen mode on a touchscreen |
| CN103365525A (en) * | 2012-03-28 | 2013-10-23 | 百度在线网络技术(北京)有限公司 | Mobile terminal and multi-window displaying method for mobile terminal |
| CN103067569A (en) * | 2012-12-10 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and device of multi-window displaying of smart phone |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104571802A (en) | 2015-04-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104571802B (en) | A kind of information processing method and electronic equipment | |
| US9904458B2 (en) | Method for information processing and electronic apparatus thereof | |
| US11551392B2 (en) | Graphic drawing method and apparatus, device, and storage medium | |
| CN104571801B (en) | A kind of information processing method and electronic equipment | |
| CN104866318B (en) | Method and device for displaying tab pages in multiple windows | |
| CN104267931B (en) | A kind of information processing method and electronic equipment | |
| CN114518926A (en) | Notification message display method and device, electronic equipment and medium | |
| CN114779977A (en) | Interface display method and device, electronic equipment and storage medium | |
| CN103870116B (en) | A kind of information processing method and electronic equipment | |
| CN103823610B (en) | A kind of electronic equipment and its information processing method | |
| CN104571904B (en) | A kind of information processing method and electronic equipment | |
| CN103870117B (en) | A kind of information processing method and electronic equipment | |
| CN104123062B (en) | A kind of information processing method and electronic equipment | |
| CN113835577A (en) | Display method, device, electronic device and storage medium | |
| CN103870113B (en) | Information processing method and electronic equipment | |
| CN111710315B (en) | Image display method, device, storage medium, and electronic device | |
| CN103927078B (en) | A kind of information processing method and electronic equipment | |
| CN113282204A (en) | Icon control method and icon control device | |
| CN104571797B (en) | A kind of information processing method and electronic equipment | |
| CN104571791A (en) | Information processing method and electronic equipment | |
| CN104571844B (en) | A kind of information processing method and electronic equipment | |
| CN104571845A (en) | Information processing method and electronic equipment | |
| CN104571800B (en) | A kind of information processing method and electronic equipment | |
| CN114879872A (en) | Display method, display device, electronic equipment and storage medium | |
| CN114115639A (en) | Interface control method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |