CN106095257A - A kind of method and device realizing application switching - Google Patents
A kind of method and device realizing application switching Download PDFInfo
- Publication number
- CN106095257A CN106095257A CN201610380264.3A CN201610380264A CN106095257A CN 106095257 A CN106095257 A CN 106095257A CN 201610380264 A CN201610380264 A CN 201610380264A CN 106095257 A CN106095257 A CN 106095257A
- Authority
- CN
- China
- Prior art keywords
- page turning
- map
- application
- page
- display
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/0483—Interaction with page-structured environments, e.g. book metaphor
-
- 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/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
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)
- Controls And Circuits For Display Device (AREA)
Abstract
A kind of method and device realizing application switching, comprising: when the application switching signal of generation being detected, intercepts the first pinup picture that current screen display content shows as page turning;Glide direction according to default application switching signal, with front and at the corresponding relation of rear application, determines that application switching signal needs the application of switching;Wherein it is desired to switching application for multitask cache in current application in front or posterior application;Add a page turning window in the current application run, use the first pinup picture of intercepting and corresponding second pinup picture of application of needs switching to carry out page turning and show in the page turning window adding, and synchronous averaging needs the application of switching;Wherein, described second pinup picture is prestore.The embodiment of the present invention, is shown by page turning during application switching, enriches the visual effect of application switching, improve interactive experience during application switching.
Description
Technical Field
The present disclosure relates to, but not limited to, terminal application technologies, and more particularly, to a method and an apparatus for implementing application handover.
Background
With the continuous development of communication technology, intelligent terminal devices have become one of the most widely used auxiliary tools in people's life, such as mobile phones, tablet computers, and the like.
When the terminal device switches the applications, the terminal device transitions animation through switching between the applications, for example, makes a transition (or zooming or transparency animation) from the outside of the screen. The visual effect is flat and hard when the application is switched, and the use experience in the interactive process is poor.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a method and a device for realizing application switching, which can improve the visual effect and the user experience in the interactive process during application switching.
The embodiment of the invention provides a device for realizing application switching, which comprises:
the intercepting unit is used for intercepting the current screen display content as a first map displayed by turning pages when the generated application switching signal is detected;
the determining unit is used for determining the application to be switched by the application switching signal according to the corresponding relation between the sliding direction of the preset application switching signal and the previous and subsequent applications; the application needing to be switched is a previous application or a subsequent application of the current application in the multi-task cache;
the page turning display unit is used for adding a page turning window in the running current application, adopting the intercepted first map and a second map corresponding to the application needing to be switched in the added page turning window to perform page turning display, and synchronously starting the application needing to be switched; wherein the second map is pre-stored.
Optionally, the applying the switching signal includes:
generating the application switching signal when the edge interaction area slides according to a first preset track by a distance greater than a first preset length threshold; or,
and generating the application switching signal when the preset area finishes sliding of a second preset length threshold according to a second preset track.
Optionally, the apparatus further includes an animation processing unit, configured to gradually disappear according to the transparency animation for the first map and gradually display the second map according to the transparency animation when the application that needs to be switched is synchronously started.
Optionally, the device further includes a drawing unit, configured to draw the content displayed by the page turning in the added page turning window according to the first map and the second map;
the content displayed by page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and the page turning display effect picture is displayed in a page turning mode;
and when the application needing to be switched is a subsequent application, taking the first map as a page turning display effect map, taking the second map as a map gradually displayed in the page turning display process of the first map, and performing page turning display on the page turning display effect map.
Optionally, the drawing unit is specifically configured to,
drawing the content displayed by page turning in the added page turning window according to the first map and the second map;
the content displayed by page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and the page turning display effect picture is displayed in a page turning mode;
when the application needing to be switched is a subsequent application, taking the first map as a page turning display effect map, taking the second map as a map gradually displayed in the page turning display process of the first map, and performing page turning display on the page turning display effect map;
the page turning display of the page turning display effect graph comprises the following steps:
if the page turning display effect picture is the second map, the second map gradually covers the first map, and a part, which does not cover the first map, in the second map is used as a scrolling area for page turning display;
if the page turning display effect picture is a first map, performing page turning display through a scrolling area of the first map which is gradually increased, and gradually displaying a second map when the scrolling area of the first map is increased;
the rolling area is as follows: after determining the page hem of the page turning display effect picture, taking an area formed by the page turning point and the page hem as the scrolling area;
determining the intersection point of the page hem and a preset auxiliary line, and finishing page turning display when the initial position of the page turning point and the length of the intersection point are greater than the preset length;
the page hem is: after the initial position of the page turning point and the current position of the page turning point form a line segment, the line segment which is in a vertical relation with the formed line segment in the page turning display effect graph;
the page turning points include: presetting four vertexes of a display window corresponding to each edge interaction area and the sliding direction of the edge interaction area, determining the vertexes of the display window according to the detected edge interaction area and the sliding direction which generate the application switching signal, and taking the determined vertexes as page turning points; or, according to a preset area, each second preset track corresponds to a corresponding page turning point, and according to the second preset track of the application switching signal, the page turning point is determined;
the auxiliary line includes: and a line segment which takes the initial position of the page turning point as a starting point and extends the starting point in the display window according to the preset direction and length.
Optionally, the drawing unit is specifically configured to calculate and draw the content for performing the page turning display by using a triangle tiling method according to the first map and the second map in the added window.
On the other hand, an embodiment of the present invention further provides a method for implementing application switching, including:
when the generated application switching signal is detected, capturing the current screen display content as a first map displayed by turning pages;
determining the application to be switched by the application switching signal according to the corresponding relation between the sliding direction of the preset application switching signal and the previous and subsequent applications; the application needing to be switched is a previous application or a subsequent application of the current application in the multi-task cache;
adding a page turning window in the running current application, adopting the intercepted first map and a second map corresponding to the application needing to be switched in the added page turning window to perform page turning display, and synchronously starting the application needing to be switched; wherein the second map is pre-stored.
Optionally, the applying the switching signal includes:
generating the application switching signal when the edge interaction area slides according to a first preset track by a distance greater than a first preset length threshold; or,
and generating the application switching signal when the preset area finishes sliding of a second preset length threshold according to a second preset track.
Optionally, when the applications that need to be switched are synchronously started, the method further includes:
and gradually disappearing the first map according to the transparency animation, and gradually displaying the second map according to the transparency animation.
Optionally, before performing page turning display, the method further includes:
drawing the content displayed by page turning in the added page turning window according to the first map and the second map;
the content displayed by page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and the page turning display effect picture is displayed in a page turning mode;
and when the application needing to be switched is a subsequent application, taking the first map as a page turning display effect map, taking the second map as a map gradually displayed in the page turning display process of the first map, and performing page turning display on the page turning display effect map.
Optionally, the displaying the page turning display effect graph by page turning includes:
the page turning display of the page turning display effect graph comprises the following steps:
if the page turning display effect picture is the second map, the second map gradually covers the first map, and a part, which does not cover the first map, in the second map is used as a scrolling area for page turning display;
if the page turning display effect picture is a first map, performing page turning display through a scrolling area of the first map which is gradually increased, and gradually displaying a second map when the scrolling area of the first map is increased;
the rolling area is as follows: after determining the page hem of the page turning display effect picture, taking an area formed by the page turning point and the page hem as the scrolling area;
determining the intersection point of the page hem and a preset auxiliary line, and finishing page turning display when the initial position of the page turning point and the length of the intersection point are greater than the preset length;
the page hem is: after the initial position of the page turning point and the current position of the page turning point form a line segment, the line segment which is in a vertical relation with the formed line segment in the page turning display effect graph;
the page turning points include: presetting four vertexes of a display window corresponding to each edge interaction area and the sliding direction of the edge interaction area, determining the vertexes of the display window according to the detected edge interaction area and the sliding direction which generate the application switching signal, and taking the determined vertexes as page turning points; or, according to a preset area, each second preset track corresponds to a corresponding page turning point, and according to the second preset track of the application switching signal, the page turning point is determined;
the auxiliary line includes: and a line segment which takes the initial position of the page turning point as a starting point and extends the starting point in the display window according to the preset direction and length.
Optionally, the content displayed by drawing page turning includes:
and calculating and drawing the page turning display content by a triangular tiling method.
Compared with the related art, the technical scheme of the application comprises the following steps: when the generated application switching signal is detected, capturing the current screen display content as a first map displayed by turning pages; determining the application to be switched by the application switching signal according to the corresponding relation between the sliding direction of the preset application switching signal and the previous and subsequent applications; the application needing to be switched is a previous application or a subsequent application of the current application in the multi-task cache; adding a page turning window in the running current application, adopting the intercepted first map and a second map corresponding to the application needing to be switched in the added page turning window to perform page turning display, and synchronously starting the application needing to be switched; wherein the second map is pre-stored. According to the embodiment of the invention, through page turning display during application switching, the visual effect of application switching is enriched, and the interactive experience during application switching is improved.
Other aspects will be apparent upon reading and understanding the attached drawings and detailed description.
Drawings
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing an embodiment of the present invention;
fig. 2 is a flowchart of a method for implementing application switching according to an embodiment of the present invention;
FIG. 3 is a schematic view of a page hem according to an embodiment of the invention;
FIG. 4 is a schematic view of an auxiliary line according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a page turning display according to an embodiment of the present invention;
fig. 6 is a first schematic diagram of triangular tiling according to an embodiment of the present invention;
FIG. 7 is a second schematic diagram of triangular tiling according to an embodiment of the present invention;
FIG. 8 is a third schematic diagram of triangular tiling according to an embodiment of the present invention;
FIG. 9 is a fourth schematic diagram of triangular tiling according to an embodiment of the present invention;
FIG. 10 is a flowchart of a method for implementing application handoff according to another embodiment of the present invention;
fig. 11 is a block diagram of an apparatus for implementing application switching according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware structure of a mobile terminal implementing an embodiment of the present invention.
The mobile terminal 100 may include a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed.
The output unit 150 may include a display unit 151, and the display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 1810 for reproducing (or playing back) multimedia data, and the multimedia module 1810 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
Fig. 2 is a flowchart of a method for implementing application switching according to an embodiment of the present invention, as shown in fig. 2, including:
200, when a generated application switching signal is detected, intercepting the display content of a current screen as a first map displayed by turning pages;
it should be noted that, in the embodiment of the present invention, the method for intercepting the current screen display content may be obtained by adopting an intercepting screen display manner in the related art, for example, intercepting the content displayed on the current screen by adopting a screen intercepting (screen shot) interface in the surface control class of android.
Optionally, in the embodiment of the present invention, applying the switching signal includes:
generating an application switching signal when the edge interaction area slides according to a first preset track by a distance greater than a first preset length threshold; or,
and generating an application switching signal when the preset area finishes sliding of a second preset length threshold according to a second preset track.
It should be noted that the edge exchange area in the embodiment of the present invention may include an edge exchange area based on the FIT technology; the preset area in the embodiment of the present invention may include an edge interaction area, which may be an edge interaction area in an FIT technology, an edge interaction area in another technology, or another area that may receive a user input signal, for example, an interaction touch area set on the back of the terminal.
Wherein, the FIT technique is an interactive mode for no frame screen does, can be used to have the frame cell-phone: the functions of holding unlocking, holding screen capturing, background cleaning, quick starting and the like. Applications of FIT technology include edge gestures, e.g., edge swipe, one-handed grip, cross-screen two-handed grip; the single-hand holding can be used for terminal unlocking, screen capturing and other operations; the functions of photographing and the like can be realized in a holding and clicking mode; the edge sliding comprises switching background application, starting application and the like, and volume, brightness and the like can be adjusted according to the edge sliding setting.
Step 201, determining an application to be switched by an application switching signal according to a corresponding relation between a preset sliding direction of the application switching signal and a preceding application and a following application; the application needing to be switched is a previous application or a subsequent application of the current application in the multi-task cache;
step 202, adding a page turning window in the running current application, adopting the intercepted first map and a second map corresponding to the application needing to be switched in the added page turning window to perform page turning display, and synchronously starting the application needing to be switched; wherein the second map is pre-stored;
it should be noted that, in the method according to the embodiment of the present invention, determining an application that needs to be started from the multitask cache as a previous application or a subsequent application may include: according to the preset corresponding relation between the sliding direction and each previous or subsequent application, when the sliding direction is defined as a first direction sliding, the application needing to be started from the multitask cache is determined to be the previous application of the current application, and when the sliding direction is a second direction opposite to the first direction, the application needing to be started from the multitask cache is determined to be the subsequent application of the current application. The first direction can be set according to the use habit, and can also be set through system parameters. In addition, the method for adding the window in the application comprises the following steps: the operating system may include an android system through an Interface provided in an Application Programming Interface (API) of the operating system, and the adding of the window may be performed by using a window management service (WindowManager) technology. In addition, in the embodiment of the invention, whether the application is started or not can be monitored and determined through a Window Monitoring Service (WMS).
Optionally, when the applications that need to be switched are started synchronously, the method in the embodiment of the present invention further includes:
the first map is gradually disappeared according to the transparency animation, and the second map is gradually displayed according to the transparency animation.
It should be noted that the method for displaying the transparency animation may include a method implemented by the same principle as a method for displaying pictures, in which transparency is gradually blurred or clear according to progress, implemented in applications such as a slide or e-book reading, and the process of gradually disappearing the transparency animation includes: and the process that the transparency is gradually blurred according to the progress, and the process that the transparency animation is gradually displayed comprises the following steps: the process of display is gradually clarified.
Optionally, before performing page turning display, the method according to the embodiment of the present invention further includes:
drawing page turning display contents in the added page turning window according to the first map and the second map;
the displayed content of the page turning comprises: when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and page turning display is carried out on the page turning display effect picture;
and when the application needing to be switched is a later application, taking the first map as a page turning display effect picture, taking the second map as a picture displayed step by step in the page turning display process of the first map, and performing page turning display on the page turning display effect picture.
It should be noted that, in the method according to the embodiment of the present invention, the method for implementing page turning display may adopt a page turning display method used in an electronic book or a slide. A view (e.g., glsurface view) may be added to the window, and the appearance (surface) embedded in the view is specially responsible for rendering in an Open Graphics Library (OpenGL), and the page-turning display may be rendered by a drawing command included in the Open Graphics Library.
Optionally, in the embodiment of the present invention, performing page turning display on the page turning display effect diagram includes:
if the page turning display effect picture is the second map, the second map gradually covers the first map, and the part of the second map which does not cover the first map is used as a scrolling area for page turning display;
if the page turning display effect picture is the first map, performing page turning display through the scrolling area of the first map which is gradually increased, and gradually displaying the second map when the scrolling area of the first map is increased;
the scrolling region is: after page folding edges of the page turning display effect picture are determined, an area formed by the page turning points and the page folding edges is used as a scrolling area;
determining the intersection point of the page hem and a preset auxiliary line, and finishing page turning display when the initial position of a page turning point and the length of the intersection point are greater than the preset length;
the page is folded as follows: after the initial position of the page turning point and the current position of the page turning point form a line segment, the line segment which is in a vertical relation with the formed line segment in the page turning display effect graph; FIG. 3 is a schematic view of a page folder according to an embodiment of the present invention, as shown in FIG. 3, the dotted line in the figure is the page folder, and the page turning point moves from the initial position to the page folder position.
The page turning point comprises: presetting four vertexes of a display window corresponding to each edge interaction area and the sliding direction of the edge interaction area, determining the vertexes of the display window according to the detected edge interaction area and the sliding direction which generate the application switching signal, and taking the determined vertexes as page turning points; or, according to a second preset track of the application switching signal, determining page turning points, wherein each second preset track of the preset area corresponds to a corresponding page turning point; for example, the terminal includes a left edge interaction area and a right edge interaction area, when the left edge interaction area moves from top to bottom, a vertex at the upper end of the left side of the display window is a page turning point, when the left edge interaction area moves from small to top, a vertex at the lower end of the left side of the display window is a page turning point, when the right edge interaction area moves from top to bottom, a vertex at the upper end of the right side of the display window is a page turning point, and when the right edge interaction area moves from small to top, a vertex at the lower end of the right side of the display window is a page turning.
The auxiliary line includes: and a line segment which takes the initial position of the page turning point as a starting point and extends the starting point in the display window according to the preset direction and length. Fig. 4 is a schematic diagram of an auxiliary line according to an embodiment of the present invention, and as shown in fig. 4, a page turning point is used as a start position, a direction of a ray bisecting an angle where the page turning point is located is used as a direction of the auxiliary line, a length of a diagonal line of a terminal display window is set as a length of the auxiliary line, and the auxiliary line according to the embodiment of the present invention is obtained, and the direction and the length of the auxiliary line can be set and adjusted according to actual situations.
Optionally, in the embodiment of the present invention, the drawing page-turning display content may include: and calculating and drawing the content displayed by page turning by a triangular tiling method. The drawing of the content for page turning display when the current application is switched to the application needing switching comprises the following steps: and calculating and drawing the content displayed by page turning by a triangular tiling method.
Fig. 5 is a schematic diagram of page turning display according to an embodiment of the present invention, as shown in fig. 5, an application to be switched is a subsequent application, areas numbered 2 and 3 of a first map currently applied in the drawing are scrolled, and a partial display area numbered 4 is gradually increased when a second map of the subsequent application is increased in the scrolled area. In OpenGL, any graphic must be displayed in a triangle tiled form, i.e., drawn through a triangle (specifying the three vertices of the triangle and the texture coordinates corresponding to the three vertices of the triangle). In the embodiment of the present invention, the four regions shown in fig. 5 need to be triangularly tiled respectively; taking the lower right corner of fig. 5 as an example of a page turning point, the triangular tiled area may be divided according to the position of the page hem, which may include the following three cases;
1. when the page hem does not pass through the lower left corner of the page, the page turning point and the page are folded to form a triangle on the plane of the display window;
2. when the page folding edge exceeds the lower left corner and does not reach the upper right corner, the page turning point and the page folding edge are in a quadrangle on the plane of the display window;
3. when the folded edge of the current page exceeds the position of the upper right corner, namely the page turning point and the page folded edge are pentagonal on the plane of the display window;
performing triangular tiling on the page according to the three conditions:
case 1 and fig. 6 are first schematic diagrams of triangular tiling processing according to an embodiment of the present invention, and as shown in fig. 6, region 1 is a pentagon, two parallel lines parallel to the folded edge of the page are respectively formed through the upper right corner and the lower left corner of the page, so as to form a triangle and two quadrangles, and then the two parallel lines are respectively connected to the opposite sides of the quadrangles, so as to form five triangles. Fig. 7 is a second schematic diagram of triangular tiling according to the embodiment of the present invention, and as shown in fig. 7, the area 2 is now a cylindrical surface, the area 2 is unfolded, the area 2 is folded into N parallel lines according to the page to form a plurality of quadrangles, and the diagonals of the quadrangles are connected to form 2N triangles. The area 3 itself is already a triangle and does not need to be divided. The region 4 is also a triangle and does not need to be divided.
Case 2: fig. 8 is a third schematic diagram of triangular tiling according to the embodiment of the present invention, and as shown in fig. 8, a region 1 is divided into triangular patches as shown in the figure; fig. 9 is a fourth schematic diagram of triangular tiling according to the embodiment of the present invention, and as shown in fig. 9, the area 2 is divided into two areas after being expanded, because the area 2 includes the lower left corner of the page, parallel lines are made through the lower left corner, the area 2 is divided into two areas, the two areas are respectively made with parallel lines at equal distances to form a plurality of quadrangles, and then the diagonals of the quadrangles are connected to form a triangle. Regions 3 and 4 are triangles and do not need to be subdivided.
Case 3: areas 1 and 3 are still triangular, similar to the division of area 2 for the second case for area 2, and similar to the division of area 1 for the first case for area 4.
According to the embodiment of the invention, through page turning display during application switching, the visual effect of application switching is enriched, and the interactive experience during application switching is improved.
Fig. 10 is a flowchart of a method for implementing application handover according to another embodiment of the present invention, as shown in fig. 10, including:
step 1000, when the generated application switching signal is detected, capturing the current screen display content as a first map for page turning display;
it should be noted that, in the embodiment of the present invention, the method for intercepting the current screen display content may be obtained by adopting an intercepting screen display manner in the related art, for example, intercepting the content displayed on the current screen by adopting a screen intercepting (screen shot) interface in the surface control class of android.
Optionally, in the embodiment of the present invention, applying the switching signal includes:
generating an application switching signal when the edge interaction area slides according to a first preset track by a distance greater than a first preset length threshold; or,
and generating an application switching signal when the preset area finishes sliding of a second preset length threshold according to a second preset track.
It should be noted that the edge exchange area in the embodiment of the present invention may include an edge exchange area based on the FIT technology; the preset area in the embodiment of the present invention may include an edge interaction area, which may be an edge interaction area in an FIT technology, an edge interaction area in another technology, or another area that may receive a user input signal, for example, an interaction touch area set on the back of the terminal.
1001, determining an application to be switched by an application switching signal according to a preset corresponding relation between the sliding direction of the application switching signal and a preceding application and a following application; the application needing to be switched is a previous application or a subsequent application of the current application in the multi-task cache;
step 1002, adding a page turning window in the running current application, and drawing page turning display contents in the added window by using the intercepted first map and a prestored second map corresponding to the application needing to be switched;
the displayed content of the page turning comprises: when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and page turning display is carried out on the page turning display effect picture;
and when the application needing to be switched is a later application, taking the first map as a page turning display effect picture, taking the second map as a picture displayed step by step in the page turning display process of the first map, and performing page turning display on the page turning display effect picture.
It should be noted that, in the method according to the embodiment of the present invention, the method for implementing page turning display may adopt a page turning display method used in an electronic book or a slide. A view (e.g., glsurface view) may be added to the window, and the appearance (surface) embedded in the view is specially responsible for rendering in an Open Graphics Library (OpenGL), and the page-turning display may be rendered by a drawing command included in the Open Graphics Library.
Step 1003, page turning display of the drawn page turning display content is carried out in the added page turning window, and the application needing to be switched is synchronously started;
it should be noted that, in the method according to the embodiment of the present invention, determining an application that needs to be started from the multitask cache as a previous application or a subsequent application may include: according to the preset corresponding relation between the sliding direction and each previous or subsequent application, when the sliding direction is defined as a first direction sliding, the application needing to be started from the multitask cache is determined to be the previous application of the current application, and when the sliding direction is a second direction opposite to the first direction, the application needing to be started from the multitask cache is determined to be the subsequent application of the current application. The first direction can be set according to the use habit, and can also be set through system parameters. In addition, the method for adding the window in the application comprises the following steps: the operating system may include an android system through an Interface provided in an Application Programming Interface (API) of the operating system, and the adding of the window may be performed by using a window management service (WindowManager) technology. In addition, in the embodiment of the invention, whether the application is started or not can be monitored and determined through a Window Monitoring Service (WMS).
And 1004, when the applications needing to be switched are synchronously started, gradually disappearing the first map according to the transparency animation, and gradually displaying the second map according to the transparency animation.
It should be noted that the method for displaying the transparency animation may include a method implemented by the same principle as a method for displaying pictures, in which transparency is gradually blurred or clear according to progress, implemented in applications such as a slide or e-book reading, and the process of gradually disappearing the transparency animation includes: and the process that the transparency is gradually blurred according to the progress, and the process that the transparency animation is gradually displayed comprises the following steps: the process of display is gradually clarified.
Optionally, in the embodiment of the present invention, performing page turning display on the page turning display effect diagram includes:
if the page turning display effect picture is the second map, the second map gradually covers the first map, and the part of the second map which does not cover the first map is used as a scrolling area for page turning display;
if the page turning display effect picture is the first map, performing page turning display through the scrolling area of the first map which is gradually increased, and gradually displaying the second map when the scrolling area of the first map is increased;
the scrolling region is: after page folding edges of the page turning display effect picture are determined, an area formed by the page turning points and the page folding edges is used as a scrolling area;
determining the intersection point of the page hem and a preset auxiliary line, and finishing page turning display when the initial position of a page turning point and the length of the intersection point are greater than the preset length;
the page is folded as follows: after the initial position of the page turning point and the current position of the page turning point form a line segment, the line segment which is in a vertical relation with the formed line segment in the page turning display effect graph;
the page turning point comprises: presetting four vertexes of a display window corresponding to each edge interaction area and the sliding direction of the edge interaction area, determining the vertexes of the display window according to the detected edge interaction area and the sliding direction which generate the application switching signal, and taking the determined vertexes as page turning points; or, according to a second preset track of the application switching signal, determining page turning points, wherein each second preset track of the preset area corresponds to a corresponding page turning point; for example, the terminal includes a left edge interaction area and a right edge interaction area, when the left edge interaction area moves from top to bottom, a vertex at the upper end of the left side of the display window is a page turning point, when the left edge interaction area moves from small to top, a vertex at the lower end of the left side of the display window is a page turning point, when the right edge interaction area moves from top to bottom, a vertex at the upper end of the right side of the display window is a page turning point, and when the right edge interaction area moves from small to top, a vertex at the lower end of the right side of the display window is a page turning.
The auxiliary line includes: and a line segment which takes the initial position of the page turning point as a starting point and extends the starting point in the display window according to the preset direction and length.
Optionally, in the embodiment of the present invention, the drawing content for performing page turning display when the current application is switched to the application that needs to be switched includes: and calculating and drawing the content displayed by page turning by a triangular tiling method.
According to the embodiment of the invention, through page turning display during application switching, the visual effect of application switching is enriched, and the interactive experience during application switching is improved.
Fig. 11 is a block diagram of a device for implementing application switching according to an embodiment of the present invention, as shown in fig. 11, including:
the intercepting unit is used for intercepting the current screen display content as a first map displayed by turning pages when the generated application switching signal is detected;
the determining unit is used for determining the application to be switched by the application switching signal according to the corresponding relation between the sliding direction of the preset application switching signal and the previous and subsequent applications; the application needing to be switched is a previous application or a subsequent application of the current application in the multi-task cache;
the page turning display unit is used for adding a page turning window in the running current application, adopting the intercepted first map and a second map corresponding to the application needing to be switched in the added page turning window to perform page turning display, and synchronously starting the application needing to be switched; wherein the second map is pre-stored.
It should be noted that, in the method according to the embodiment of the present invention, determining an application that needs to be started from the multitask cache as a previous application or a subsequent application may include: according to the preset corresponding relation between the sliding direction and each previous or subsequent application, when the sliding direction is defined as a first direction sliding, the application needing to be started from the multi-task cache is determined to be the previous application of the current application, and when the sliding direction is a second direction opposite to the first direction, the application needing to be switched from the multi-task cache is determined to be the subsequent application of the current application. The first direction can be set according to the use habit, and can also be set through system parameters. In addition, the method for adding the window in the application comprises the following steps: the operating system may include an android system through an Interface provided in an Application Programming Interface (API) of the operating system, and the adding of the window may be performed by using a window management service (WindowManager) technology. In addition, in the embodiment of the invention, whether the application is started or not can be monitored and determined through a Window Monitoring Service (WMS).
Optionally, applying the switching signal includes:
generating an application switching signal when the edge interaction area slides according to a first preset track by a distance greater than a first preset length threshold; or,
and generating an application switching signal when the preset area finishes sliding of a second preset length threshold according to a second preset track.
It should be noted that the edge exchange area in the embodiment of the present invention may include an edge exchange area based on the FIT technology; the preset area in the embodiment of the present invention may include an edge interaction area, which may be an edge interaction area in an FIT technology, an edge interaction area in another technology, or another area that may receive a user input signal, for example, an interaction touch area set on the back of the terminal.
Optionally, the apparatus in this embodiment of the present invention further includes an animation processing unit, configured to gradually disappear according to the transparency animation for the first map and gradually display according to the transparency animation for the second map when the application that needs to be switched is synchronously started.
It should be noted that the method for displaying the transparency animation may include a method implemented by the same principle as a method for displaying pictures, in which transparency is gradually blurred or clear according to progress, implemented in applications such as a slide or e-book reading, and the process of gradually disappearing the transparency animation includes: and the process that the transparency is gradually blurred according to the progress, and the process that the transparency animation is gradually displayed comprises the following steps: the process of display is gradually clarified.
Optionally, the apparatus in the embodiment of the present invention further includes a drawing unit, configured to draw content displayed in a page turning window according to the first map and the second map;
the displayed content of the page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and page turning display is carried out on the page turning display effect picture;
and when the application needing to be switched is a later application, taking the first map as a page turning display effect picture, taking the second map as a picture displayed step by step in the page turning display process of the first map, and performing page turning display on the page turning display effect picture.
It should be noted that, in the method according to the embodiment of the present invention, the method for implementing page turning display may adopt a page turning display method used in an electronic book or a slide. A view (e.g., glsurface view) may be added to the window, and the appearance (surface) embedded in the view is specially responsible for rendering in an Open Graphics Library (OpenGL), and the page-turning display may be rendered by a drawing command included in the Open Graphics Library.
Optionally, in the embodiment of the present invention, the drawing unit is specifically configured to,
drawing page turning display contents in the added page turning window according to the first map and the second map;
the displayed content of the page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and page turning display is carried out on the page turning display effect picture;
when the application needing to be switched is a later application, the first map is taken as a page turning display effect picture, the second map is taken as a picture gradually displayed in the page turning display process of the first map, and the page turning display effect picture is displayed in a page turning mode;
the page turning display of the page turning display effect graph comprises the following steps:
if the page turning display effect picture is the second map, the second map gradually covers the first map, and the part of the second map which does not cover the first map is used as a scrolling area for page turning display;
if the page turning display effect picture is the first map, performing page turning display through the scrolling area of the first map which is gradually increased, and gradually displaying the second map when the scrolling area of the first map is increased;
the scrolling region is: after page folding edges of the page turning display effect picture are determined, an area formed by the page turning points and the page folding edges is used as a scrolling area;
determining the intersection point of the page hem and a preset auxiliary line, and finishing page turning display when the initial position of a page turning point and the length of the intersection point are greater than the preset length;
the page is folded as follows: after the initial position of the page turning point and the current position of the page turning point form a line segment, the line segment which is in a vertical relation with the formed line segment in the page turning display effect graph;
the page turning point comprises: presetting four vertexes of a display window corresponding to each edge interaction area and the sliding direction of the edge interaction area, determining the vertexes of the display window according to the detected edge interaction area and the sliding direction which generate the application switching signal, and taking the determined vertexes as page turning points; or, according to a second preset track of the application switching signal, determining page turning points, wherein each second preset track of the preset area corresponds to a corresponding page turning point;
the auxiliary line includes: and a line segment which takes the initial position of the page turning point as a starting point and extends the starting point in the display window according to the preset direction and length.
Optionally, the drawing unit is specifically configured to calculate and draw content for page-turning display by using a triangle tiling method according to the first map and the second map in the added window.
According to the embodiment of the invention, through page turning display during application switching, the visual effect of application switching is enriched, and the interactive experience during application switching is improved.
The embodiment of the invention also provides a device for realizing application switching, which comprises: the device comprises an intercepting unit, a determining unit, a drawing unit, a page turning display unit and an animation processing unit; wherein,
the intercepting unit is used for intercepting the current screen display content as a first map displayed by turning pages when the generated application switching signal is detected;
it should be noted that, in the embodiment of the present invention, the method for intercepting the current screen display content may be obtained by adopting an intercepting screen display manner in the related art, for example, intercepting the content displayed on the current screen by adopting a screen intercepting (screen shot) interface in the surface control class of android.
A determining unit, configured to determine an application to which the application switching signal needs to be switched, according to a preset correspondence between a sliding direction of the application switching signal and preceding and following applications; the application needing to be switched is a previous application or a subsequent application of the current application in the multi-task cache;
the drawing unit is used for drawing page turning display contents in the added page turning window according to the first map and the second map;
the displayed content of the page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and page turning display is carried out on the page turning display effect picture;
and when the application needing to be switched is a later application, taking the first map as a page turning display effect picture, taking the second map as a picture displayed step by step in the page turning display process of the first map, and performing page turning display on the page turning display effect picture.
It should be noted that, in the method according to the embodiment of the present invention, the method for implementing page turning display may adopt a page turning display method used in an electronic book or a slide. A view (e.g., glsurface view) may be added to the window, and the appearance (surface) embedded in the view is specially responsible for rendering in an Open Graphics Library (OpenGL), and the page-turning display may be rendered by a drawing command included in the Open Graphics Library.
The page turning display unit is used for adding a page turning window in the running current application, adopting the intercepted first mapping and a second mapping corresponding to the application needing to be switched in the added page turning window to perform page turning display, and synchronously starting the application needing to be switched; wherein the second map is pre-stored.
It should be noted that, in the method according to the embodiment of the present invention, determining an application that needs to be started from the multitask cache as a previous application or a subsequent application may include: according to the preset corresponding relation between the sliding direction and each previous or subsequent application, when the sliding direction is defined as a first direction sliding, the application needing to be started from the multitask cache is determined to be the previous application of the current application, and when the sliding direction is a second direction opposite to the first direction, the application needing to be started from the multitask cache is determined to be the subsequent application of the current application. The first direction can be set according to the use habit, and can also be set through system parameters. In addition, the method for adding the window in the application comprises the following steps: the operating system may include an android system through an Interface provided in an Application Programming Interface (API) of the operating system, and the adding of the window may be performed by using a window management service (WindowManager) technology. In addition, in the embodiment of the invention, whether the application is started or not can be monitored and determined through a Window Monitoring Service (WMS).
And the animation processing unit is used for gradually disappearing the first map according to the transparency animation and gradually displaying the second map according to the transparency animation when the application needing to be switched is synchronously started.
It should be noted that the method for displaying the transparency animation may include a method implemented by the same principle as a method for displaying pictures, in which transparency is gradually blurred or clear according to progress, implemented in applications such as a slide or e-book reading, and the process of gradually disappearing the transparency animation includes: and the process that the transparency is gradually blurred according to the progress, and the process that the transparency animation is gradually displayed comprises the following steps: the process of display is gradually clarified.
Optionally, in the embodiment of the present invention, the drawing unit is specifically configured to,
drawing page turning display contents in the added page turning window according to the first map and the second map;
the displayed content of the page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and page turning display is carried out on the page turning display effect picture;
when the application needing to be switched is a later application, the first map is taken as a page turning display effect picture, the second map is taken as a picture gradually displayed in the page turning display process of the first map, and the page turning display effect picture is displayed in a page turning mode;
the page turning display of the page turning display effect graph comprises the following steps:
if the page turning display effect picture is the second map, the second map gradually covers the first map, and the part of the second map which does not cover the first map is used as a scrolling area for page turning display;
if the page turning display effect picture is the first map, performing page turning display through the scrolling area of the first map which is gradually increased, and gradually displaying the second map when the scrolling area of the first map is increased;
the scrolling region is: after page folding edges of the page turning display effect picture are determined, an area formed by the page turning points and the page folding edges is used as a scrolling area;
determining the intersection point of the page hem and a preset auxiliary line, and finishing page turning display when the initial position of a page turning point and the length of the intersection point are greater than the preset length;
the page is folded as follows: after the initial position of the page turning point and the current position of the page turning point form a line segment, the line segment which is in a vertical relation with the formed line segment in the page turning display effect graph;
the page turning point comprises: presetting four vertexes of a display window corresponding to each edge interaction area and the sliding direction of the edge interaction area, determining the vertexes of the display window according to the detected edge interaction area and the sliding direction which generate the application switching signal, and taking the determined vertexes as page turning points; or, according to a preset area, each second preset track corresponds to a corresponding page turning point, and according to the second preset track of the application switching signal, the page turning point is determined;
the auxiliary line includes: and a line segment which takes the initial position of the page turning point as a starting point and extends the starting point in the display window according to the preset direction and length.
Optionally, the drawing unit is specifically configured to calculate and draw content for page turning display by using a triangle tiling method in the added window according to the first map and the second map.
According to the embodiment of the invention, through page turning display during application switching, the visual effect of application switching is enriched, and the interactive experience during application switching is improved.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by a program instructing associated hardware (e.g., a processor) to perform the steps, and the program may be stored in a computer readable storage medium, such as a read only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in hardware, for example, by an integrated circuit to implement its corresponding function, or in software, for example, by a processor executing a program/instruction stored in a memory to implement its corresponding function. The present invention is not limited to any specific form of combination of hardware and software.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (12)
1. An apparatus for implementing application handoff, comprising:
the intercepting unit is used for intercepting the current screen display content as a first map displayed by turning pages when the generated application switching signal is detected;
the determining unit is used for determining the application to be switched by the application switching signal according to the corresponding relation between the sliding direction of the preset application switching signal and the previous and subsequent applications; the application needing to be switched is a previous application or a subsequent application of the current application in the multi-task cache;
the page turning display unit is used for adding a page turning window in the running current application, adopting the intercepted first map and a second map corresponding to the application needing to be switched in the added page turning window to perform page turning display, and synchronously starting the application needing to be switched; wherein the second map is pre-stored.
2. The apparatus of claim 1, wherein the applying a switching signal comprises:
generating the application switching signal when the edge interaction area slides according to a first preset track by a distance greater than a first preset length threshold; or,
and generating the application switching signal when the preset area finishes sliding of a second preset length threshold according to a second preset track.
3. The apparatus according to claim 1, further comprising an animation processing unit for fading the first map according to a transparency animation and gradually displaying the second map according to a transparency animation when the application requiring switching is synchronously started.
4. The device according to any one of claims 1 to 3, further comprising a drawing unit, configured to draw the content of the page-turning display in the added page-turning window according to the first map and the second map;
the content displayed by page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and the page turning display effect picture is displayed in a page turning mode;
and when the application needing to be switched is a subsequent application, taking the first map as a page turning display effect map, taking the second map as a map gradually displayed in the page turning display process of the first map, and performing page turning display on the page turning display effect map.
5. The apparatus according to claim 4, characterized in that the rendering unit is in particular adapted to,
drawing the content displayed by page turning in the added page turning window according to the first map and the second map;
the content displayed by page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and the page turning display effect picture is displayed in a page turning mode;
when the application needing to be switched is a subsequent application, taking the first map as a page turning display effect map, taking the second map as a map gradually displayed in the page turning display process of the first map, and performing page turning display on the page turning display effect map;
the page turning display of the page turning display effect graph comprises the following steps:
if the page turning display effect picture is the second map, the second map gradually covers the first map, and a part, which does not cover the first map, in the second map is used as a scrolling area for page turning display;
if the page turning display effect picture is a first map, performing page turning display through a scrolling area of the first map which is gradually increased, and gradually displaying a second map when the scrolling area of the first map is increased;
the rolling area is as follows: after determining the page hem of the page turning display effect picture, taking an area formed by the page turning point and the page hem as the scrolling area;
determining the intersection point of the page hem and a preset auxiliary line, and finishing page turning display when the initial position of the page turning point and the length of the intersection point are greater than the preset length;
the page hem is: after the initial position of the page turning point and the current position of the page turning point form a line segment, the line segment which is in a vertical relation with the formed line segment in the page turning display effect graph;
the page turning points include: presetting four vertexes of a display window corresponding to each edge interaction area and the sliding direction of the edge interaction area, determining the vertexes of the display window according to the detected edge interaction area and the sliding direction which generate the application switching signal, and taking the determined vertexes as page turning points; or, according to a preset area, each second preset track corresponds to a corresponding page turning point, and according to the second preset track of the application switching signal, the page turning point is determined;
the auxiliary line includes: and a line segment which takes the initial position of the page turning point as a starting point and extends the starting point in the display window according to the preset direction and length.
6. The apparatus according to any one of claims 1 to 3, wherein the drawing unit is specifically configured to calculate and draw the content for performing the page-turning display by using a triangle tiling method in the added window according to the first map and the second map.
7. A method for implementing application handover, comprising:
when the generated application switching signal is detected, capturing the current screen display content as a first map displayed by turning pages;
determining the application to be switched by the application switching signal according to the corresponding relation between the sliding direction of the preset application switching signal and the previous and subsequent applications; the application needing to be switched is a previous application or a subsequent application of the current application in the multi-task cache;
adding a page turning window in the running current application, adopting the intercepted first map and a second map corresponding to the application needing to be switched in the added page turning window to perform page turning display, and synchronously starting the application needing to be switched; wherein the second map is pre-stored.
8. The method of claim 7, wherein applying the switching signal comprises:
generating the application switching signal when the edge interaction area slides according to a first preset track by a distance greater than a first preset length threshold; or,
and generating the application switching signal when the preset area finishes sliding of a second preset length threshold according to a second preset track.
9. The method of claim 7, wherein when the synchronous startup of the application requiring a handover, the method further comprises:
and gradually disappearing the first map according to the transparency animation, and gradually displaying the second map according to the transparency animation.
10. The method according to any one of claims 7 to 9, wherein before the page turning display, the method further comprises:
drawing the content displayed by page turning in the added page turning window according to the first map and the second map;
the content displayed by page turning comprises:
when the application needing to be switched is the previous application, the second map is taken as a page turning display effect picture, the first map is taken as a picture gradually covered by the second map, and the page turning display effect picture is displayed in a page turning mode;
and when the application needing to be switched is a subsequent application, taking the first map as a page turning display effect map, taking the second map as a map gradually displayed in the page turning display process of the first map, and performing page turning display on the page turning display effect map.
11. The method according to claim 10, wherein the page turning display of the page turning display effect map comprises:
if the page turning display effect picture is the second map, the second map gradually covers the first map, and a part, which does not cover the first map, in the second map is used as a scrolling area for page turning display;
if the page turning display effect picture is a first map, performing page turning display through a scrolling area of the first map which is gradually increased, and gradually displaying a second map when the scrolling area of the first map is increased;
the rolling area is as follows: after determining the page hem of the page turning display effect picture, taking an area formed by the page turning point and the page hem as the scrolling area;
determining the intersection point of the page hem and a preset auxiliary line, and finishing page turning display when the initial position of the page turning point and the length of the intersection point are greater than the preset length;
the page hem is: after the initial position of the page turning point and the current position of the page turning point form a line segment, the line segment which is in a vertical relation with the formed line segment in the page turning display effect graph;
the page turning points include: presetting four vertexes of a display window corresponding to each edge interaction area and the sliding direction of the edge interaction area, determining the vertexes of the display window according to the detected edge interaction area and the sliding direction which generate the application switching signal, and taking the determined vertexes as page turning points; or, according to a preset area, each second preset track corresponds to a corresponding page turning point, and according to the second preset track of the application switching signal, the page turning point is determined;
the auxiliary line includes: and a line segment which takes the initial position of the page turning point as a starting point and extends the starting point in the display window according to the preset direction and length.
12. The method according to any one of claims 7 to 9, wherein the drawing of the content of the page turning display comprises:
and calculating and drawing the page turning display content by a triangular tiling method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610380264.3A CN106095257A (en) | 2016-05-31 | 2016-05-31 | A kind of method and device realizing application switching |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610380264.3A CN106095257A (en) | 2016-05-31 | 2016-05-31 | A kind of method and device realizing application switching |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106095257A true CN106095257A (en) | 2016-11-09 |
Family
ID=57230863
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610380264.3A Pending CN106095257A (en) | 2016-05-31 | 2016-05-31 | A kind of method and device realizing application switching |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106095257A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108319498A (en) * | 2018-01-31 | 2018-07-24 | 努比亚技术有限公司 | A kind of application scenarios method for pushing, equipment and computer readable storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101655766A (en) * | 2008-08-22 | 2010-02-24 | 鸿富锦精密工业(深圳)有限公司 | Electronic device capable of realizing effect of page turning of electronic document and method thereof |
| CN101923435A (en) * | 2010-08-24 | 2010-12-22 | 福州瑞芯微电子有限公司 | Method for simulating real page turning effect for electronic book |
| US20130081133A1 (en) * | 2011-09-23 | 2013-03-28 | Barnesandnoble.Com Llc | System and method for unlocking an electronic device |
| CN104731507A (en) * | 2015-03-31 | 2015-06-24 | 努比亚技术有限公司 | Application switching method of mobile terminal and mobile terminal |
| CN104750417A (en) * | 2015-03-30 | 2015-07-01 | 努比亚技术有限公司 | Frameless terminal application switching method and frameless terminal |
-
2016
- 2016-05-31 CN CN201610380264.3A patent/CN106095257A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101655766A (en) * | 2008-08-22 | 2010-02-24 | 鸿富锦精密工业(深圳)有限公司 | Electronic device capable of realizing effect of page turning of electronic document and method thereof |
| CN101923435A (en) * | 2010-08-24 | 2010-12-22 | 福州瑞芯微电子有限公司 | Method for simulating real page turning effect for electronic book |
| US20130081133A1 (en) * | 2011-09-23 | 2013-03-28 | Barnesandnoble.Com Llc | System and method for unlocking an electronic device |
| CN104750417A (en) * | 2015-03-30 | 2015-07-01 | 努比亚技术有限公司 | Frameless terminal application switching method and frameless terminal |
| CN104731507A (en) * | 2015-03-31 | 2015-06-24 | 努比亚技术有限公司 | Application switching method of mobile terminal and mobile terminal |
Non-Patent Citations (1)
| Title |
|---|
| JIANCHIBUXIE5: "在Android手机上实现阅读器的翻页效果", 《LINUX公社HTTPS://WWW.LINUXIDC.COM/LINUX/2011-09/43439.HTM》 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108319498A (en) * | 2018-01-31 | 2018-07-24 | 努比亚技术有限公司 | A kind of application scenarios method for pushing, equipment and computer readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101533850B1 (en) | Mobile communication terminal having electronic paper and control method applied thereto | |
| CN101923425B (en) | Method and device for realizing window switching based on sliding terminal screen | |
| KR102689503B1 (en) | Electronic device and displaying method thereof | |
| US9239625B2 (en) | Mobile terminal and control method thereof | |
| US10205873B2 (en) | Electronic device and method for controlling a touch screen of the electronic device | |
| KR100923973B1 (en) | System and method for viewing digital visual content on a device | |
| KR102534714B1 (en) | Method for providing user interface related to note and electronic device for the same | |
| KR20140046346A (en) | Multi display apparatus and method for contorlling thereof | |
| KR20140046319A (en) | Multi display apparatus and multi display method | |
| US20150063785A1 (en) | Method of overlappingly displaying visual object on video, storage medium, and electronic device | |
| US8762840B1 (en) | Elastic canvas visual effects in user interface | |
| US20220091736A1 (en) | Method and apparatus for displaying page, graphical user interface, and mobile terminal | |
| KR20140094226A (en) | Mobile terminal and control method for the mobile terminal | |
| CN108803965A (en) | Method, device, terminal and storage medium for displaying icons | |
| WO2020000971A1 (en) | Method and apparatus for switching global special effects, terminal device, and storage medium | |
| CN116048327A (en) | Display method of task display area, display method of window and electronic device | |
| KR20120133003A (en) | Mobile terminal and method for controlling thereof | |
| KR101636084B1 (en) | Mobile terminal with dual display and method for displaying data in terminal | |
| CN105808145A (en) | Method and terminal for achieving image processing | |
| KR101658097B1 (en) | Mobile terminal and control method thereof | |
| US20250173035A1 (en) | Window display method, electronic device, and computer-readable storage medium | |
| CN106095257A (en) | A kind of method and device realizing application switching | |
| KR102138500B1 (en) | Terminal and method for controlling the same | |
| KR101711537B1 (en) | Mobile terminal and control method thereof | |
| KR101919778B1 (en) | Mobile terminal and method for controlling thereof, and recording medium thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161109 |
|
| RJ01 | Rejection of invention patent application after publication |