CN109254820A - Close method, apparatus, terminal and computer readable storage medium - Google Patents

Close method, apparatus, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109254820A
CN109254820A CN201811036172.9A CN201811036172A CN109254820A CN 109254820 A CN109254820 A CN 109254820A CN 201811036172 A CN201811036172 A CN 201811036172A CN 109254820 A CN109254820 A CN 109254820A
Authority
CN
China
Prior art keywords
freeform
free window
application program
operational order
mentioned
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.)
Granted
Application number
CN201811036172.9A
Other languages
Chinese (zh)
Other versions
CN109254820B (en
Inventor
李同喜
付亮晶
林志泳
敬雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811036172.9A priority Critical patent/CN109254820B/en
Publication of CN109254820A publication Critical patent/CN109254820A/en
Application granted granted Critical
Publication of CN109254820B publication Critical patent/CN109254820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application belongs to user interaction techniques field, more particularly to a kind of close method, apparatus, terminal and computer readable storage medium, wherein, which comprises judge whether the application program of terminal front stage operation is shown in a manner of free window Freeform;If the application program is shown in a manner of free window Freeform, the trigger event whether free window Freeform meets preset condition is monitored;If monitoring, the free window Freeform does not meet the trigger event of preset condition, then close the free window Freeform of the application program, to reduce the operation power consumption of terminal, solution opens simultaneously the display interface of multiple application programs, and when realizing the operation to multiple application programs, the larger technical problem of the operation power consumption of terminal.

Description

Close method, apparatus, terminal and computer readable storage medium
Technical field
The application belongs to user interaction techniques field more particularly to a kind of close method, apparatus, terminal and computer Readable storage medium storing program for executing.
Background technique
In previous android system, the display interface of all application programs is all full screen display, if be not provided with Transparent effect once can only see the display interface of an application program.But since 7.0 version of Android, system branch Multiwindow function is held.User can open simultaneously and see the display interface of multiple application programs, greatly improve user Operating efficiency.
However, terminal is realizing the display interface for opening simultaneously multiple application programs, and realization pair by multiple-window mode When the operation of multiple application programs, have the shortcomings that operation power consumption is larger.
Summary of the invention
The embodiment of the present application provides a kind of close method, apparatus, terminal and computer readable storage medium, can solve Certainly terminal opens simultaneously the display interface of multiple application programs, and when realizing the operation to multiple application programs, operation power consumption compared with Big technical problem.
The embodiment of the present application first aspect provides a kind of close method, comprising:
Judge whether the application program of terminal front stage operation is shown in a manner of free window Freeform;
If the application program is shown in a manner of free window Freeform, the free window is monitored Whether the application program run in Freeform meets the trigger event of preset condition;
If the application program run in the free window Freeform does not meet the triggering thing of preset condition Part then closes the free window Freeform of the application program.
The embodiment of the present application second aspect provides a kind of close device, comprising:
Judging unit, for judge terminal front stage operation application program whether in a manner of free window Freeform into Row display;
Monitoring unit monitors institute if being shown in a manner of free window Freeform for the application program State the trigger event whether application program run in free window Freeform meets preset condition;
Closing unit is preset if the application program for running in the free window Freeform does not occur to meet The trigger event of condition then closes the free window Freeform of the application program.
The embodiment of the present application third aspect provides a kind of terminal, including memory, processor and storage are in memory And the computer program that can be run on a processor, when processor executes computer program the step of the realization above method.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, computer-readable recording medium storage The step of having computer program, the above method is realized when computer program is executed by processor.
In the embodiment of the present application, determining that application program carries out showing it in a manner of free window Freeform Afterwards, it monitors whether the free window Freeform meets the trigger event of preset condition, and is monitoring the freedom When window Freeform does not meet the trigger event of preset condition, the free window of the application program is closed in time Freeform solves the display interface for opening simultaneously multiple application programs, and realize to multiple to reduce the operation power consumption of terminal When the operation of application program, the larger technical problem of operation power consumption of terminal.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of first implementation flow schematic diagram of close method provided by the embodiments of the present application;
Fig. 2 is that the mode of free window Freeform provided by the embodiments of the present application a kind of shows the display of social category application Interface schematic diagram;
Fig. 3 is a kind of the second implementation process schematic diagram of close method provided by the embodiments of the present application;
Fig. 4 is a kind of third implementation process schematic diagram of close method provided by the embodiments of the present application;
Fig. 5 is a kind of the 4th implementation process schematic diagram of close method provided by the embodiments of the present application;
Fig. 6 is a kind of the 5th implementation process schematic diagram of close method provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of close device provided by the embodiments of the present application;
Fig. 8 is the structural schematic diagram of terminal provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.Meanwhile in the description of the present application, term " first ", " second " etc. are only used for distinguishing description, without It can be interpreted as indication or suggestion relative importance.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate the above-mentioned technical solution of the application, the following is a description of specific embodiments.
A kind of first implementation flow schematic diagram of close method provided by the embodiments of the present application as shown in figure 1, should Method is applied to terminal, can close device by the free window Freeform configured in terminal and execute, suitable for that need to reduce certainly By the situation of window Freeform operation power consumption, including step 101 is to step 103.
Step 101, judge whether the application program of terminal front stage operation is shown in a manner of free window Freeform Show.
Wherein, above-mentioned terminal may include the mobile terminals such as smart phone, tablet computer, learning machine, also, above-mentioned terminal Operating system can be the operating systems such as android system, Google's system and IOS system.Above-mentioned terminal can be equipped with clear Look at device, social category application, e-book reading application, video player, audio player, game class application, payment class application etc. Application program.
In the embodiment of the present application, free window Freeform belongs to a seed type of multiwindow, referred to as free window mould Formula, active window and free window are similar to suspended window, but actually free window Freeform is a real active window Mouthful, contain the feature of complete activity, window, focus, input input etc. complete active window.
Above-mentioned free window Freeform is typically displayed on the display interface of another application program, is real meaning On multiwindow.In android system, the difference of the windows such as free window Freeform and suspended window is the two in not In the memory stack (Stack) of same Activity Manager management service, the function of display, scheduling is realized by different Stack It can operation.
Specifically, two ways, which can be used, in terminal opens free window Freeform, one is pass through system Feature definition, one is increase switch starting by setting.
For example, in android system, it, can when defining the free window Freeform of unlatching by system feature First to check in Android open source code project AOSP defined Feature configuration file: frameworks/ Native/data/etc/android.software.freeform_window_managem ent.xml, it is only necessary to this text Under part push to the system/etc/permissions/ catalogue of mobile phone, terminal be switched on when Android PMS can by reading Xml configuration under this catalogue is taken to open this feature of freeform.Realizing can be with free window Freeform in application program Mode show.
In general, terminal is pre-defined distinctive freeform stack, all free window Freeform's of support Each Activity of application program creation can start in the specific Freeform stack.In android system Each Activity is all located in a Task.One Task may include multiple Activity, the same Activity There may be multiple examples.In Android Manifest.xml, it can be controlled by android:launch Mode Example of the Activity in Task.
In addition, the Activity that can also control starting by setFlag exists when start Activity Example in Task.The meaning of Task management also resides in recent task list and Back stack.When by multitask key, (some are set Standby is above long-pressing Home key, is the multitask key specially provided in some equipment) when recalling multitask, be exactly in fact from Activity Manager Service obtains the Task list started recently.Back stack has been managed when the point on Activity Back key is hit, current Activity should jump to the logic of which Activity after destroying.
When application program supports the mode of free window Freeform to show, and user is with free window Freeform's When mode opens the application program, terminal can use the application program that the support Task of AMS offer is moved between different stack Task is moved to above-mentioned freeform stack by interface, so that the application program enters with the side of free window Freeform Formula is shown.
Therefore, whether the above-mentioned application program for judging terminal front stage operation is shown in a manner of free window Freeform Show to may include: to detect the Activity of the destination application of terminal front stage operation whether to be located at terminal predetermined In freeform stack, if so, the application program for determining terminal front stage operation is with the side of free window Freeform Formula is shown.
Optionally, in some embodiments of the application, the above-mentioned application program for judging terminal front stage operation whether with It can also include: the screenshot capture for obtaining terminal current display interface that the mode of free window Freeform, which carries out display, to upper It states screenshot capture to be identified, the application program of above-mentioned terminal front stage operation is judged according to the recognition result to above-mentioned screenshot capture Display interface whether there is inclusion relation, if it exists above-mentioned inclusion relation, it is determined that in the application program of terminal front stage operation Display interface by comprising application program be the application program shown in a manner of free window Freeform.
For example, as shown in Fig. 2, the interface that terminal is currently displayed in full screen is the display interface 21 of game class application, above-mentioned Include the display interface 22 of social category application on the display interface 21 of game application, then determines that social category is applied as with certainly at this time The application program shown by the mode of window Freeform, game class application is shown in a manner of free window Freeform Application program.
Step 102, if above-mentioned application program is shown in a manner of free window Freeform, above-mentioned freedom is monitored Whether window Freeform meets the trigger event of preset condition.
In the embodiment of the present application, the above-mentioned trigger event for meeting preset condition, which refers to be not related to, closes the freedom for stating application program The trigger event of window Freeform.
In the embodiment of the present application, the application program of terminal front stage operation exists to be carried out in a manner of free window Freeform Display is the precondition that triggering monitors whether above-mentioned free window Freeform meets the trigger event of preset condition.
Optionally, if there is no shown the application program of terminal front stage operation in a manner of free window Freeform Show, then without monitoring the step of whether above-mentioned free window Freeform meets the trigger event of preset condition, but It continues to execute and the step of whether application program of terminal front stage operation is shown in a manner of free window Freeform is judged, Or terminate the operation that above-mentioned free window Freeform closes device.
Step 103, it if above-mentioned free window Freeform does not meet the trigger event of preset condition, closes above-mentioned The free window Freeform of application program.
In the embodiment of the present application, the free window Freeform of the above-mentioned application program of above-mentioned closing, which can be, is only simply turned off The display interface of application program, and the application program run in free window Freeform is returned into terminal running background;? It can be, directly kill the application process of above-mentioned application program, realize the closing of above-mentioned application program.
In the embodiment of the present application, determining that application program carries out showing it in a manner of free window Freeform Afterwards, the trigger event whether above-mentioned free window Freeform meets preset condition is monitored, and in above-mentioned free window When Freeform does not meet the trigger event of preset condition, the free window of above-mentioned application program is closed in time Freeform solves the display interface for opening simultaneously multiple application programs, and realize to multiple to reduce the operation power consumption of terminal When the operation of application program, the larger technical problem of the operation power consumption of terminal.
Optionally, in some embodiments of the application, as shown in figure 3, the closing side of above-mentioned free window Freeform Method can specifically include step 301 to step 303.
Step 301, judge whether the application program of terminal front stage operation is shown in a manner of free window Freeform Show.
Step 302, if above-mentioned application program is shown in a manner of free window Freeform, preset duration is monitored The operational order to free window Freeform inside whether is received, the operation of free window Freeform is referred to if not receiving It enables, it is determined that free window Freeform does not meet the trigger event of preset condition;Wherein, above-mentioned to free window The operational order of Freeform includes the operational order of speech form triggering and/or the display in above-mentioned free window Freeform The operational order that region is triggered by touch gestures.
Step 303, if monitoring, above-mentioned free window Freeform does not meet the trigger event of preset condition, closes Close the free window Freeform for stating application program.
That is, in preset duration, if not triggering any operational order in above-mentioned free window Freeform, Then expression monitors to close the trigger event of above-mentioned free window Freeform, need to execute the free window for closing above-mentioned application program The step of mouth Freeform.
For example, as shown in Fig. 2, social category is applied with free window Freeform when game class is applied in hook state Mode open for a long time, then when needing not receive the operational order to free window Freeform in preset duration, close The free window Freeform of social category application, to reduce the operation power consumption of terminal.
Wherein, above-mentioned preset duration can be the duration of user's customized setting in advance, for example, 5 minutes, 10 minutes, 15 The duration of minute, 30 minutes etc. customized setting.In addition, above-mentioned preset duration is also possible to when leaving the factory according to different application The preset duration of program setting.
Optionally, aforesaid operations instruction include speech form triggering operational order and/or in above-mentioned free window The operational order that the display area of Freeform is triggered by touch gestures.
For example, the operational order of speech form triggering can be " closing social category application " corresponding voice signal, terminal When receiving the voice signal, then the free window Freeform of operation social category application is closed.It is above-mentioned in free window What the operational order that the display area of Freeform is triggered by touch gestures can trigger to drag free window Freeform Operational order, and the operational order triggered in the display area of above-mentioned free window Freeform by clicking operation.
Optionally, in some embodiments of the application, whether received in above-mentioned monitoring preset duration to it is above-mentioned from Before operational order by window Freeform, comprising: obtain the application type of above-mentioned application program, and judge above-mentioned using journey Whether the application type of sequence belongs to default application type.
Optionally, the operational order to above-mentioned free window Freeform whether is received in above-mentioned monitoring preset duration, If including: that the application type of above-mentioned application program belongs to default application type, monitors in preset duration and whether receive to upper The operational order of free window Freeform is stated, if not receiving the operational order to above-mentioned free window Freeform, really Fixed above-mentioned free window Freeform does not meet the trigger event of preset condition.
That is, the application type of the application program only run in free window Freeform belongs to default application When type, above-mentioned steps 302 are just executed to step 303, to avoid there is a situation where free window Freeform mistakes to close.
Above-mentioned default application type refers to the application that can be automatically closed by terminal.Also, above-mentioned default application type can To be the application type being arranged when terminal factory, it is also possible to the application type of the customized setting of user.For example, above-mentioned preset is answered Class application can be applied and paid with type for social category.
Further, the application type of the above-mentioned application program of above-mentioned acquisition, and judge the application type of above-mentioned application program Whether default application type is belonged to, comprising: if the application type of above-mentioned application program is not belonging to default application type, monitoring is The no shutoff operation instruction received to above-mentioned free window Freeform, if receiving to above-mentioned free window Freeform's Shutoff operation instruction, then close the free window Freeform of above-mentioned application program.
It is not belonging to default application type specifically, above-mentioned and refers to without answering for free window Freeform is automatically closed With for example, above-mentioned be not belonging to preset application type be video playing application.
For example, being used when above-mentioned application program is video playing in application, when due to video playing application normal play video Family will not generally trigger other operational orders to it, also, also it is not intended to be automatically switched off, and only receive user's touching The shutoff operation to above-mentioned free window Freeform of hair instructs, and just closes above-mentioned free window Freeform.
Therefore, when the application program run in free window Freeform is not belonging to the application program of default application type When, then do not need that the step for whether receiving the operational order to above-mentioned free window Freeform in monitoring preset duration executed Suddenly, and also its free window Freeform is not automatically closed.
The above-mentioned shutoff operation instruction to above-mentioned free window Freeform can click free window by user The closing selection control triggering of Freeform, for example, selecting control 23 to trigger above-mentioned freedom by clicking closing as shown in Figure 2 The shutoff operation of window Freeform instructs.
It, can be with other than setting video playing application to being not belonging to default application type in the embodiment of the present application What is be customized by the user sets other applications to be not belonging to default application type, for example, by e-book reading application It is set as being not belonging to default application type, and sets default using class for payment class application, browser, payment class application etc. Type.
It should be noted that whether it is default application type that application type belonging to above-mentioned application program refers to, also, should Application type can be customized by the user setting, can also carry out default setting when leaving the factory.
In some embodiments of the application, as shown in figure 4, the method for closing of above-mentioned free window Freeform may be used also To specifically include step 401 to step 403.
Step 401, judge whether the application program of terminal front stage operation is shown in a manner of free window Freeform Show.
Step 402, it if above-mentioned application program is shown in a manner of free window Freeform, monitors above-mentioned default Whether receive in duration and whether is received in the corresponding new unread message of above-mentioned application program, and the above-mentioned preset duration of monitoring To the operational order to above-mentioned free window Freeform.
Step 403, if not receiving the corresponding new unread message of above-mentioned application program in above-mentioned preset duration, and it is above-mentioned The operational order to above-mentioned free window Freeform is not received in preset duration, it is determined that monitor above-mentioned free window Freeform does not meet the trigger event of preset condition, and closes the free window Freeform of above-mentioned application program.
For example, above-mentioned application program be social category in application, if in preset duration above-mentioned application program do not receive it is new Unread message, and the operational order to above-mentioned free window Freeform is not received in above-mentioned preset duration, it is determined that it is above-mentioned Free window Freeform does not meet the trigger event of preset condition, to close above-mentioned free window in time Freeform reduces the operation power consumption of terminal.
Wherein, new unread message refer to exclude preset duration outside above-mentioned application program have been received and user not into The message that row is read, and only calculate in preset duration, and be not receive to refer to the operation of above-mentioned free window Freeform In the preset duration of order, the unread message that receives.
Further, if receiving the corresponding new unread message of above-mentioned application program, Huo Zheshang in above-mentioned preset duration The operational order not received in preset duration to above-mentioned free window Freeform is stated, then without free window Freeform Be automatically closed.
When opening above-mentioned application program in a manner of free window Freeform due to user, illustrates that user exists and greatly may be used very much It can may require that and use the application program, therefore, in above-mentioned preset duration not receive to above-mentioned free window Freeform's When operational order, also to monitor whether that not receiving above-mentioned application program corresponds to new unread message in the preset duration, It can judge whether user has completed the use of the application program.It is corresponding new when receiving above-mentioned application program in preset duration Unread message when, in order to avoid user misses important messages, at this point, not carried out to above-mentioned free window Freeform then automatic It closes.
Optionally, as shown in figure 5, the method for closing of above-mentioned free window Freeform can also specifically include step 501 To step 503.
Step 501, judge whether the application program of terminal front stage operation is shown in a manner of free window Freeform Show.
Step 502, if above-mentioned application program is shown in a manner of free window Freeform, judge the last time Whether the operational order of triggering is the operational order triggered in free window Freeform.
Step 503, if the operational order of the last triggering is not that the operation triggered in free window Freeform refers to It enables, then monitors the operational order whether received in preset duration to above-mentioned free window Freeform;If not receiving to upper State the operational order of free window Freeform, it is determined that the above-mentioned application program run in above-mentioned free window Freeform is not Meet the trigger event of preset condition, and closes the free window Freeform of above-mentioned application program.
Wherein, the operational order that above-mentioned user's the last time triggers can be any form in addition to shutoff operation instruction The operational order of triggering.For example, the operational order of speech form triggering, and the operational order triggered by touch gestures.
Optionally, as the another embodiment of the application, as shown in fig. 6, the pass of above-mentioned free window Freeform The method of closing can also specifically include step 601 to step 603.
Step 601, judge whether the application program of terminal front stage operation is shown in a manner of free window Freeform Show.
Step 602, if above-mentioned application program is shown in a manner of free window Freeform, preset duration is monitored Inside whether receive the operational order to above-mentioned free window Freeform.
Step 603, if not receiving the operational order to above-mentioned free window Freeform in preset duration, judge most Whether the operational order closely once triggered is the operational order triggered in free window Freeform;If the last time triggering Operational order is not the operational order triggered in free window Freeform, it is determined that is transported in above-mentioned free window Freeform Capable above-mentioned application program does not meet the trigger event of preset condition, and closes the free window of above-mentioned application program Freeform。
Further, above-mentioned to judge whether the last time operational order of triggering is to trigger in free window Freeform If operational order can also include: the operational order of the last triggering be the operation triggered in free window Freeform Instruction, then be not related to and close the free window Freeform for stating application program.
That is, user can be triggered by choosing the application run in free window Freeform for the last time The application of operational order keeps the long-term display of the free window Freeform, without being closed by mistake, thus more flexiblely Control the display and closing of free window Freeform.
Fig. 7 shows a kind of structural schematic diagram of close device 600 provided by the embodiments of the present application, including judgement list Member 701, monitoring unit 702 and closing unit 703.
Judging unit 701, for judging the application program of terminal front stage operation whether with the side of free window Freeform Formula is shown;
Monitoring unit 702 monitors if being shown in a manner of free window Freeform for above-mentioned application program Whether the above-mentioned application program run in above-mentioned free window Freeform meets the trigger event of preset condition;
Closing unit 703, if the above-mentioned application program for running in above-mentioned free window Freeform does not meet The trigger event of preset condition then closes the free window Freeform of above-mentioned application program.
Whether in some embodiments of the application, above-mentioned monitoring unit 702 is specifically used for, monitor and connect in preset duration The operational order to above-mentioned free window Freeform is received, the operation of above-mentioned free window Freeform is referred to if not receiving It enables, it is determined that the above-mentioned application program run in above-mentioned free window Freeform does not meet the triggering thing of preset condition Part.
Optionally, above-mentioned monitoring unit 702 is also particularly useful for obtaining the application type of above-mentioned application program, and on judging Whether the application type for stating application program belongs to default application type;If the application type of above-mentioned application program belongs to default application Type then monitors the operational order whether received in preset duration to above-mentioned free window Freeform;If not receiving pair The operational order of above-mentioned free window Freeform, it is determined that the above-mentioned application program run in above-mentioned free window Freeform The trigger event of preset condition is not met.
Optionally, above-mentioned monitoring unit 702 is also particularly useful for if the application type of above-mentioned application program is not belonging to default answer With type, then monitor whether to receive the shutoff operation instruction to above-mentioned free window Freeform, if receive to it is above-mentioned from It is instructed by the shutoff operation of window Freeform, then closes the free window Freeform of above-mentioned application program.
In some embodiments of the application, above-mentioned monitoring unit 702 is also particularly useful for monitoring in above-mentioned preset duration Whether receive and whether is received to upper in the corresponding new unread message of above-mentioned application program, and the above-mentioned preset duration of monitoring State the operational order of free window Freeform;If not receiving in above-mentioned preset duration, above-mentioned application program is corresponding new not to be read Message, and the operational order to above-mentioned free window Freeform is not received in above-mentioned preset duration, it is determined that above-mentioned freedom The above-mentioned application program run in window Freeform does not meet the trigger event of preset condition.
In some embodiments of the application, above-mentioned monitoring unit 702 is also particularly useful for judging the last triggering Whether operational order is the operational order triggered in free window Freeform;If the last time operational order of triggering is not Whether the operational order triggered in free window Freeform then monitors and is received in preset duration to above-mentioned free window The operational order of Freeform;If not receiving the operational order to above-mentioned free window Freeform, it is determined that above-mentioned freedom The above-mentioned application program run in window Freeform does not meet the trigger event of preset condition;Alternatively, if preset duration Do not receive the operational order to above-mentioned free window Freeform inside, then judge the last triggering operational order whether be The operational order triggered in free window Freeform;If the last time operational order of triggering is not in free window The operational order triggered in Freeform, it is determined that the above-mentioned application program run in above-mentioned free window Freeform does not occur Meet the trigger event of preset condition.
Optionally, above-mentioned monitoring unit 702 is also particularly useful for if the operational order of the last triggering is in free window The operational order triggered in Freeform is then not related to and closes the free window Freeform for stating application program.
It should be noted that for convenience and simplicity of description, the specific works mistake of the close device 700 of foregoing description Journey can describe the corresponding process of method with reference to above-mentioned Fig. 1 into Fig. 6, and details are not described herein.
As shown in figure 8, the application provides a kind of terminal for realizing above-mentioned close method, which can be intelligence The terminals such as energy mobile phone, tablet computer, learning machine, comprising: one or more input equipments 83 (one is only shown in Fig. 8) and one Or multiple output equipments 84 (one is only shown in Fig. 8).Processor 81, memory 82, input equipment 83 and output equipment 84 are logical Cross the connection of bus 85.
It should be appreciated that in the embodiment of the present application, alleged processor 81 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
Input equipment 83 may include that dummy keyboard, Trackpad, fingerprint adopt sensor (for acquiring the finger print information of user With the directional information of fingerprint), microphone etc., output equipment 84 may include display, loudspeaker etc..
Memory 82 may include read-only memory and random access memory, and provide instruction sum number to processor 81 According to.Part or all of memory 82 can also include nonvolatile RAM.For example, memory 82 can be with The information of storage device type.
Above-mentioned memory 82 is stored with computer program, and above-mentioned computer program can be run on above-mentioned processor 81, example Such as, above-mentioned computer program is the program of close method.Above-mentioned processor 81 is realized when executing above-mentioned computer program State the step in close embodiment of the method, such as step 101 shown in FIG. 1 is to step 103.Alternatively, above-mentioned processor 81 The function of each module/unit in above-mentioned each Installation practice, such as unit shown in Fig. 7 are realized when executing above-mentioned computer program 701 to 703 function.
Above-mentioned computer program can be divided into one or more module/units, and said one or multiple modules/mono- Member is stored in above-mentioned memory 82, and is executed by above-mentioned processor 81, to complete the application.Said one or multiple moulds Block/unit can be the series of computation machine program instruction section that can complete specific function, the instruction segment by describe it is above-mentioned based on Calculation machine program carries out the implementation procedure of close in above-mentioned terminal.For example, above-mentioned computer program can be divided into judgement Unit, monitoring unit and closing unit, each unit concrete function are as follows: judging unit, for judging answering for terminal front stage operation Whether shown in a manner of free window Freeform with program;Monitoring unit, if for above-mentioned application program with freedom The mode of window Freeform shown, then whether monitors the above-mentioned application program that runs in above-mentioned free window Freeform Meet the trigger event of preset condition;Closing unit, if above-mentioned being answered for what is run in above-mentioned free window Freeform The trigger event for not meeting preset condition with program then closes the free window Freeform of above-mentioned application program.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of above-mentioned apparatus is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal and method can pass through Other modes are realized.For example, device/terminal embodiment described above is only schematical, for example, above-mentioned module or The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling or direct-coupling or communication connection discussed can be through some interfaces, device or unit INDIRECT COUPLING or communication connection can be electrical property, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, above-mentioned meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, above-mentioned computer program includes computer program code, above-mentioned computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Above-mentioned computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry above-mentioned computer program code Dish, CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that above-mentioned meter The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, It such as does not include electric carrier signal and telecommunications according to legislation and patent practice, computer-readable medium in certain jurisdictions Signal.
Above above-described embodiment is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of close method characterized by comprising
Judge whether the application program of terminal front stage operation is shown in a manner of free window Freeform;
If the application program is shown in a manner of free window Freeform, the free window Freeform is monitored Whether the application program of middle operation meets the trigger event of preset condition;
If the application program run in the free window Freeform does not meet the trigger event of preset condition, Close the free window Freeform of the application program.
2. close method as described in claim 1, which is characterized in that in the monitoring free window Freeform Whether the application program of operation meets the trigger event of preset condition, comprising:
Whether operational order to the free window Freeform is received in monitoring preset duration, if not receiving to described The operational order of free window Freeform, it is determined that the application program run in the free window Freeform is not sent out The raw trigger event for meeting preset condition.
3. close method as claimed in claim 2, which is characterized in that
Before whether receiving the operational order to the free window Freeform in the monitoring preset duration, comprising:
The application type of the application program is obtained, and it is default using class to judge whether the application type of the application program belongs to Type;
Whether operational order to the free window Freeform is received in the monitoring preset duration, comprising:
If the application type of the application program belongs to default application type, monitors in preset duration and whether receive to described The operational order of free window Freeform;If not receiving the operational order to the free window Freeform, it is determined that The application program run in the free window Freeform does not meet the trigger event of preset condition.
4. close method as claimed in claim 3, which is characterized in that the application type of the judgement application program Whether default application type is belonged to, comprising:
If the application type of the application program is not belonging to default application type, monitor whether to receive to the free window The shutoff operation of Freeform instructs, if receiving the shutoff operation instruction to the free window Freeform, closes institute State the free window Freeform of application program.
5. close method as claimed in claim 2, which is characterized in that whether received in the monitoring preset duration pair The operational order of the free window Freeform, if not receiving the operational order to the free window Freeform, Determine that the free window Freeform does not meet the trigger event of preset condition, comprising:
It monitors and whether receives the corresponding new unread message of the application program in the preset duration, and monitoring is described pre- If whether receiving the operational order to the free window Freeform in duration;
If not receiving the application program in the preset duration corresponds to new unread message, and does not connect in the preset duration Receive the operational order to the free window Freeform, it is determined that is run in the free window Freeform described answers The trigger event of preset condition is not met with program.
6. close method as claimed in claim 2, which is characterized in that whether received in the monitoring preset duration pair The operational order of the free window Freeform, comprising:
Whether the operational order for judging the last triggering is the operational order triggered in free window Freeform;If recently The operational order once triggered is not the operational order triggered in free window Freeform, then monitor in preset duration whether Receive the operational order to the free window Freeform;If not receiving the operation to the free window Freeform Instruction, it is determined that the application program run in the free window Freeform does not meet the triggering thing of preset condition Part;
Alternatively,
If not receiving the operational order to the free window Freeform in preset duration, the last triggering is judged Whether operational order is the operational order triggered in free window Freeform;If the last time operational order of triggering is not The operational order triggered in free window Freeform, it is determined that the application run in the free window Freeform Program does not meet the trigger event of preset condition.
7. close method as claimed in claim 6, which is characterized in that the operational order of the last triggering of judgement It whether is the operational order triggered in free window Freeform, comprising:
If the last time operational order of triggering is the operational order triggered in free window Freeform, do not close described The free window Freeform of application program.
8. a kind of close device characterized by comprising
Judging unit, for judging whether the application program of terminal front stage operation is shown in a manner of free window Freeform Show;
Monitoring unit, if being shown in a manner of free window Freeform for the application program, monitoring is described certainly Whether meet the trigger event of preset condition by the application program run in window Freeform;
Closing unit, if the application program for running in the free window Freeform does not meet preset condition Trigger event, then close the free window Freeform of the application program.
9. a kind of terminal, including memory, processor and storage can be run in the memory and on the processor Computer program, which is characterized in that the processor is realized when executing the computer program as claim 1 to 7 is any The step of one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization is such as the step of claim 1 to 7 any one the method when the computer program is executed by processor.
CN201811036172.9A 2018-09-05 2018-09-05 Window closing method, device, terminal and computer readable storage medium Active CN109254820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811036172.9A CN109254820B (en) 2018-09-05 2018-09-05 Window closing method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811036172.9A CN109254820B (en) 2018-09-05 2018-09-05 Window closing method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109254820A true CN109254820A (en) 2019-01-22
CN109254820B CN109254820B (en) 2022-04-19

Family

ID=65047111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811036172.9A Active CN109254820B (en) 2018-09-05 2018-09-05 Window closing method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109254820B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210303106A1 (en) * 2020-03-24 2021-09-30 Beijing Xiaomi Mobile Software Co., Ltd. Method, apparatus and storage medium for displaying application interface
CN113946304A (en) * 2021-09-29 2022-01-18 湖北亿咖通科技有限公司 Visible window synthesis method and synthesis device and multi-screen system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633639A (en) * 2002-02-15 2005-06-29 国际商业机器公司 Application window closure in response to event in parent window
US20060031781A1 (en) * 2004-08-05 2006-02-09 International Business Machines Corporation System and method for reversing a windows close action
US20070006093A1 (en) * 2005-06-30 2007-01-04 International Business Machines Corporation Canceling window close commands
CN101673216A (en) * 2008-09-09 2010-03-17 联想(北京)有限公司 Method and device for closing application program
CN102118322A (en) * 2009-12-30 2011-07-06 蒋斌 Method for automatically controlling number of chat windows in chat tool
CN103197842A (en) * 2013-04-15 2013-07-10 广州博冠信息科技有限公司 Method and device for controlling application program windows
CN105468235A (en) * 2015-11-20 2016-04-06 华为技术有限公司 Management method and device of user dialogue window, and terminal
CN106792101A (en) * 2017-01-03 2017-05-31 青岛海信电器股份有限公司 Home interface method of adjustment, device and intelligent television
CN106896904A (en) * 2015-12-18 2017-06-27 联想(北京)有限公司 A kind of control method and electronic equipment
CN107301009A (en) * 2017-06-15 2017-10-27 深圳市金立通信设备有限公司 A kind of method, terminal and the computer-readable recording medium of removal Toast message boxs

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633639A (en) * 2002-02-15 2005-06-29 国际商业机器公司 Application window closure in response to event in parent window
US20060031781A1 (en) * 2004-08-05 2006-02-09 International Business Machines Corporation System and method for reversing a windows close action
US20070006093A1 (en) * 2005-06-30 2007-01-04 International Business Machines Corporation Canceling window close commands
CN101673216A (en) * 2008-09-09 2010-03-17 联想(北京)有限公司 Method and device for closing application program
CN102118322A (en) * 2009-12-30 2011-07-06 蒋斌 Method for automatically controlling number of chat windows in chat tool
CN103197842A (en) * 2013-04-15 2013-07-10 广州博冠信息科技有限公司 Method and device for controlling application program windows
CN105468235A (en) * 2015-11-20 2016-04-06 华为技术有限公司 Management method and device of user dialogue window, and terminal
CN106896904A (en) * 2015-12-18 2017-06-27 联想(北京)有限公司 A kind of control method and electronic equipment
CN106792101A (en) * 2017-01-03 2017-05-31 青岛海信电器股份有限公司 Home interface method of adjustment, device and intelligent television
CN107301009A (en) * 2017-06-15 2017-10-27 深圳市金立通信设备有限公司 A kind of method, terminal and the computer-readable recording medium of removal Toast message boxs

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
饶润润: ""基于安卓操作系统的应用软件开发"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
黎阳子: ""基于Android平台的移动医疗系统的研究与设计"", 《基于ANDROID平台的移动医疗系统的研究与设计》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210303106A1 (en) * 2020-03-24 2021-09-30 Beijing Xiaomi Mobile Software Co., Ltd. Method, apparatus and storage medium for displaying application interface
CN113946304A (en) * 2021-09-29 2022-01-18 湖北亿咖通科技有限公司 Visible window synthesis method and synthesis device and multi-screen system

Also Published As

Publication number Publication date
CN109254820B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
US11561763B2 (en) Electronic device for processing multi-modal input, method for processing multi-modal input and server for processing multi-modal input
CN109271223A (en) Windows switching method, device, terminal and computer readable storage medium
CN108536416A (en) It handles electronic equipment input by user and handles method input by user
CN106256116B (en) A kind of method and terminal controlling application program
CN108351772A (en) Across the identifier of application example
CN108463832A (en) Electronic equipment and process execution method based on hardware diagnostic result
CN106293914B (en) A kind of method and terminal of task schedule
CN104484223B (en) A kind of Android system application method for closing and device
CN107430480A (en) The method of electronic equipment and in the electronic device processing information
CN108702421A (en) For controlling using the electronic equipment and method with component
CN108028891A (en) Electronic equipment and photographic means
CN105630326A (en) Electronic device and method of controlling object in electronic device
JP2008508597A (en) Help utility application program
CN106372102A (en) Electronic device and method for managing object in folder on electronic device
CN108351692A (en) Gesture method for sensing and its electronic equipment of support
CN105589623A (en) Notification message checking method, apparatus and terminal
US20170249067A1 (en) User interface feature recommendation
CN108605261A (en) Electronic equipment and its operating method
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
KR20180101926A (en) Electronic device and method for controlling application thereof
CN107748697B (en) Application closing method and device, storage medium and electronic equipment
CN111158806B (en) Interface display method, device, computer equipment and storage medium
CN109254820A (en) Close method, apparatus, terminal and computer readable storage medium
CN109254821A (en) Window Zoom method, device, terminal and computer readable storage medium
CN109358927A (en) The method, apparatus and terminal device that application program is shown

Legal Events

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