CN104881235B - A kind of method and device for closing application program - Google Patents
A kind of method and device for closing application program Download PDFInfo
- Publication number
- CN104881235B CN104881235B CN201510300937.5A CN201510300937A CN104881235B CN 104881235 B CN104881235 B CN 104881235B CN 201510300937 A CN201510300937 A CN 201510300937A CN 104881235 B CN104881235 B CN 104881235B
- Authority
- CN
- China
- Prior art keywords
- finger
- application program
- touch screen
- triangle
- coordinate
- 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.)
- Expired - Fee Related
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The present invention provides a kind of method and device for closing application program, wherein method includes:Obtain the current application program that the touch screen of mobile equipment is shown;Obtain and identify the finger movement of user;When it is that preset finger throws away action to recognize the finger movement, the current application program is closed.The present invention throws away action by default finger, when identifying that user performs the finger movement, quickly thoroughly close the application program that current touch screen is shown, so that close the easy to operate, succinct of application program, save user operation time, system space and system resource are saved, improves user experience.
Description
Technical field
The invention belongs to technical field of mobile terminals, are related to a kind of method and device for closing application program.
Background technology
With the fast development of mobile Internet, more and more mobile applications provide various for mobile terminal user
Service, for example, user can understand media event at any time by application program, capture is taken down notes, it is social to be engaged in, listen to music, entertain
Game etc..
At present, it when user is when exiting some application program, generally requires repeatedly to click and returns to button, and each point
It is the last layer for being withdrawn into the Application Program Interface to hit and return to button, and this method is cumbersome, wastes time;Or click master
The application program is set to backstage, but since the process of the application program always exists, can occupy system by page (home) button
Space consumes system resource.
Invention content
In consideration of it, the present invention provides a kind of method and device for closing application program, to save user operation time, section
Save system space and system resource.
To achieve the above object, the present invention adopts the following technical scheme that:
On the one hand, a kind of method for closing application program provided in an embodiment of the present invention, including:
Obtain the current application program that the touch screen of mobile equipment is shown;
Obtain and identify the finger movement of user;
When it is that preset finger throws away action to recognize the finger movement, the current application program is closed.
On the other hand, a kind of device for closing application program provided in an embodiment of the present invention, including:
Application program acquisition module, the current application program that the touch screen for obtaining mobile equipment is shown;
Finger obtains identification module, for obtaining and identifying the finger movement of user;
Closing application program module, for when it is that preset finger throws away action to recognize the finger movement, closing
The current application program.During completion, the current application program is closed.
Compared with prior art, it is the advantages of technical solution of the present invention:
A kind of method and device for closing application program provided by the invention, compared with prior art, the present invention is by pre-
If finger throws away action, when identifying that user performs the finger movement, quickly thoroughly close current touch screen show answer
With program so that close the easy to operate, succinct of application program, save user operation time, save system space and be
System resource, improves user experience.
Description of the drawings
Exemplary embodiments of the present invention will be described in detail referring to the drawings by general below, makes those of ordinary skill in the art
The above-mentioned and other feature and advantage of the present invention are become apparent from, in attached drawing:
Fig. 1 is the flow diagram of a kind of method of closing application program that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of method for closing application program provided by Embodiment 2 of the present invention;
Fig. 3 is the flow diagram of a kind of method of closing application program that the embodiment of the present invention three provides;
Fig. 4 is the structure diagram of the device of a kind of closing application program that the embodiment of the present invention four provides;
Fig. 5 is the structure diagram that the finger that the embodiment of the present invention four provides obtains identification module.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, technical scheme of the present invention is clearly and completely described by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Go out all other embodiments obtained under the premise of creative work, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 gives a kind of flow diagram of the method for closing application program of the offer of the embodiment of the present invention one, the party
Method can be performed by the device of closing application program, and the shape of software and/or hardware may be used in the device of the closing application program
Formula is realized.As shown in Figure 1, this method includes:
Step 101 obtains the current application program that the touch screen of mobile equipment is shown.
At present, the screen of most mobile equipment is touch screen, these movement equipment combination controllers drive with controller, real
Show touch information input, it is user-friendly.For the mobile equipment with touch screen, the present embodiment is set in the movement
The device of application program is closed in standby middle setting, when the device for closing application program detects that user opens a certain application program,
And when passing through touch screen and showing any interface of the application program, this can be obtained using journey automatically by closing the device of application program
Sequence also can obtain the application program according to the acquisition instruction of user.Specifically, can obtain the title of the application program, size,
Store path and Process identifier etc..Wherein, Process identifier can be used for unique identification application, i.e., Process identifier with
There is one-to-one relationship between application program.
Step 102, the finger movement for obtaining and identifying user.
For any touch screen type mobile apparatus, finger movement and functions of the equipments can be preset in the movement equipment
Correspondence after mobile equipment gets finger movement, according to the finger movement identified, is realized corresponding with the finger movement
Function.
Specifically, touch screens may be used in the touch screen in this implementation, capacitance plate can also be used.When user's finger touches
During to touch screen, touch screen controller can carry out tactile positioning, and send the location information of each finger of each moment to pass
The device of application program is closed, after closing the location information of each finger of device acquisition of application program, and it is every according to each moment
The location information of a finger identifies the finger movement of user.
Step 103, recognize finger movement for preset finger throw away action when, close current application program.
In the present embodiment, predeterminable finger throw away action for close application program instruction, wherein finger throw away action can
Refer to for three throw away action, four fingers throw away action or the five fingers throw away action.Recognize finger movement for preset finger throw away it is dynamic
When making, current application program is closed.Specifically, the device for closing application program can be according to the Process identifier of current application program
The process of the application program is obtained, when recognizing finger and throwing away action, the positive closing process;Due to the difference of an application
Interface belongs to same process, so after process is closed, application interface relevant with the process is closed, and currently should thoroughly be closed
Use program.
The method for the closing application program that the embodiment of the present invention one provides throws away action by default finger, is identifying
When user performs the finger movement, the application program that current touch screen is shown quickly thoroughly is closed so that close application program
It is easy to operate, succinct, save user operation time, save system space and system resource, improve user experience.
Embodiment two
Fig. 2 gives a kind of flow diagram of method for closing application program provided by Embodiment 2 of the present invention, this reality
It applies example to optimize based on above-described embodiment, in the present embodiment, step is obtained and identifies that the finger movement of user is excellent
It turns to:Obtain the finger movement of user;Finger number is identified according to the finger pressure that touch screen is subject to;In the finger recognized
When number is default value, initial coordinate when each finger touches touch screen is obtained and when each finger leaves touch screen
Final coordinate;In the initial coordinate and final coordinate of each finger according to acquisition, identify default value finger to
When being subjected to displacement outside, the finger movement for determining to recognize is that preset finger throws away action.
Correspondingly, the method for the present embodiment includes the following steps:
Step 201 obtains the current application program that the touch screen of mobile equipment is shown.
Step 202, the finger movement for obtaining user.
Illustratively, when user's finger touches touch screen, touch screen controller can carry out tactile positioning, and will be each
The location information of moment each finger sends the device for closing application program to, and the device for closing application program obtains each finger
Location information, the finger movement of user is obtained with this.
Step 203 identifies finger number according to the finger pressure that touch screen is subject to.
Illustratively, touch screens may be used in the touch screen in the present embodiment, are known according to the finger pressure that touch screen is subject to
Other finger number.Specifically, when user's finger touches touch screen, touch screen is led by finger pressure, upper and lower surface
Line can touch together, current lead-through, measure the pressure spot of finger, and the device for closing application program is identified according to pressure spot
Finger number.
The touch screen of the present embodiment can also use capacitance plate, when user's finger touches touch screen, pass through charge
Number of dropouts obtains finger to the approximate distance of touch screen quadrangle, so as to obtain the specific location of touch, then by closing with being lost in speed
The device for closing application program further identifies finger number.
Step 204, when the finger number recognized is default value, obtain when each finger touches touch screen just
Beginning coordinate and each finger leave final coordinate during touch screen.
Specifically, touch screens may be used in the touch screen in the present embodiment, when user's finger touches touch screen, and identify
When the finger number arrived is default value, touch screen measures the X-coordinate of finger contact and the voltage of Y coordinate, closes using journey
The device and then each finger of acquisition of sequence touch initial coordinate during touch screen;When finger leaves touch screen, each finger
It disappears to the pressure of touch screen, the electric current in touch screen disconnects, corresponding loss of voltage, X-coordinate and Y during according to loss of voltage
Coordinate obtains final coordinate when each finger leaves touch screen.
Step 205, initial coordinate and final coordinate in each finger according to acquisition, identify default value finger
When being subjected to displacement outward, the finger movement for determining to recognize is that preset finger throws away action.
In the present embodiment, preferably default value is 3, according to the initial coordinate and final coordinate of each finger of acquisition, is known
Do not go out default value finger to be subjected to displacement outward, including:By the final coordinate of each finger and the initial coordinate of the finger
It is compared, when the abscissa and ordinate of the final coordinate for having at least two fingers increase simultaneously, identifies three fingers
It is subjected to displacement outward, the finger movement for determining to recognize is that preset finger throws away action.
In addition, according to the initial coordinate and final coordinate of each finger of acquisition, identify default value finger to
It is subjected to displacement, further includes outside:Using the triangle that each initial coordinate determines as the first triangle, three that each final coordinate is determined
It is angular to be used as the second triangle;When the area of the second triangle is more than the area of the first triangle, identify that three fingers are equal
It is subjected to displacement outward, the finger movement for determining to recognize is that preset finger throws away action.
Step 206, recognize finger movement for preset finger throw away action when, close current application program.
The method provided by Embodiment 2 of the present invention for closing application program, is set as 3, in the hand recognized by default value
When finger number is 3, determine whether finger movement is that preset finger throws away action, to perform the behaviour for whether closing application program
Make, three refer to that throw away action succinct effective, and maloperation is few.
Embodiment three
Fig. 3 gives a kind of flow diagram of the method for closing application program of the offer of the embodiment of the present invention three, this reality
It applies example to optimize based on above-described embodiment, in the present embodiment, step is being recognized into finger movement as preset hand
When finger throws away action, close current application program and be optimized for:It is that preset finger throws away action, and hand recognizing finger movement
Finger throws away action when being completed in preset time, closes current application program.
Correspondingly, the method for the present embodiment includes the following steps:
Step 301 obtains the current application program that the touch screen of mobile equipment is shown.
Step 302, the finger movement for obtaining and identifying user.
Step 303 recognizing finger movement is that preset finger throws away action, and finger throws away action in preset time
During interior completion, current application program is closed.
Illustratively, the present embodiment can set a preset time, and recognizing finger movement, to be that preset finger is thrown away dynamic
Make, and finger throws away action when being completed in the preset time, closes current application program;Otherwise, finger throws away action failure.
The operation can reduce user to application program without operation, for example, user carelessly make finger throw away action or sell
Finger is not desired to close current application suddenly after throwing away action, and it is more than preset time on the touchscreen that user, which can stop finger, currently
Application program will not turn off.
The method for the closing application program that the embodiment of the present invention three provides, by when setting default during finger is thrown away
Between, reduce user close application program without operation, further improve user experience.
Example IV
Fig. 4 is the structure diagram of the device of a kind of closing application program that the embodiment of the present invention four provides, which can
Setting is in a mobile device.As shown in figure 4, the device can include application program acquisition module 40, finger obtains identification module
41 and closing application program module 42.
Wherein, the application program acquisition module 40 is used to obtain the current application journey that the touch screen of mobile equipment is shown
Sequence;
The finger obtains the finger movement that identification module 41 is used to obtain and identify user;
The closing application program module 42 is used to, when it is that preset finger throws away action to recognize finger movement, close
Current application program.
The device for the closing application program that the embodiment of the present invention four provides throws away action by default finger, is identifying
When user performs the finger movement, the application program that current touch screen is shown quickly thoroughly is closed so that close application program
It is easy to operate, succinct, save user operation time, save system space and system resource, improve user experience.
Further, with reference to Fig. 4 and Fig. 5, the finger, which obtains identification module 41, to be included:
Finger movement acquisition submodule 411, for obtaining the finger movement of user;
Finger number identifies submodule 412, and the finger pressure for being subject to according to touch screen identifies finger number;
Finger coordinate acquisition submodule 413, for when the finger number recognized is default value, obtaining each finger
Initial coordinate and each finger when touching touch screen leave final coordinate during touch screen;
Identification submodule 414 is displaced outwardly, for the initial coordinate of each finger according to acquisition and described final
Coordinate, identifies whether the default value finger is subjected to displacement outward;
Finger movement determination sub-module 415, in the initial coordinate and final coordinate of each finger according to acquisition, knowledge
When not going out default value finger and being subjected to displacement outward, the finger movement for determining to recognize is that preset finger throws away action.
Preferably, default value 3, the identification submodule 414 that is displaced outwardly specifically can be used for:
The final coordinate of each finger and the initial coordinate of the finger are compared, there is the final of at least two fingers
When the abscissa and ordinate of coordinate increase simultaneously, identify that three fingers are subjected to displacement outward.
The identification submodule 414 that is displaced outwardly specifically can be used for:
Using the triangle that each initial coordinate determines as the first triangle, using the triangle that each final coordinate determines as
Two triangles;
When the area of the second triangle is more than the area of the first triangle, identify that position occurs outward for three fingers
It moves.
Further, closing application program module 42 specifically can be used for:It is preset finger recognizing finger movement
It throws away action, and when finger throws away action and completed in preset time, closes current application program.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art various apparent variations,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (2)
- A kind of 1. method for closing application program, which is characterized in that including:The current application program shown according to the touch screen of the mobile equipment of the Process identifier of current application program acquisition;Obtain the finger movement of user;Finger number is identified according to the finger pressure that the touch screen is subject to;When the finger number recognized is default value 3, initial coordinate when each finger touches the touch screen is obtained, And final coordinate of each finger when leaving the touch screen;The final coordinate of each finger and the initial coordinate of the finger are compared, in the final coordinate for there are at least two fingers Abscissa and ordinate when increasing simultaneously or using the triangle that each initial coordinate determines as the first triangle, will be each The triangle that the final coordinate determines is more than first triangle as the second triangle in the area of second triangle During the area of shape, identify that three fingers are subjected to displacement outward;The initial coordinate and the final coordinate in each finger according to acquisition, identify the default value finger When being subjected to displacement outward, the finger movement for determining to recognize is that preset finger throws away action;When it is that preset finger throws away action to recognize the finger movement, and the finger throws away action in preset time During completion, the current application program is closed.
- 2. a kind of device for closing application program, which is characterized in that including:Application program acquisition module, the touch screen for obtaining mobile equipment according to the Process identifier of current application program are shown Current application program;Finger movement acquisition module, for obtaining the finger movement of user;Finger number identification module, the finger pressure for being subject to according to the touch screen identify finger number;Finger coordinate obtaining module, for when the finger number recognized is preset value 3, obtain each finger touch it is described Initial coordinate and each finger during touch screen leave the final coordinate during touch screen;Identification module is displaced outwardly, for the final coordinate of each finger and the initial coordinate of the finger to be compared, is being had The triangle determined when the abscissa and ordinate of the final coordinate of at least two fingers increase simultaneously or by each initial coordinate Shape is as the first triangle, using the triangle that each final coordinate determines as the second triangle, in second triangle Area be more than first triangle area when, identify that three fingers are subjected to displacement outward;Finger movement determining module, in the initial coordinate of each finger according to acquisition and the final coordinate, knowledge Do not go out the default value for 3 fingers be subjected to displacement outward when, the finger movement for determining to recognize is that preset finger is got rid of Go out action;Closing application program module, for when recognizing the finger movement and throwing away action for preset finger, and the hand Finger throws away action when being completed in preset time, closes the current application program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510300937.5A CN104881235B (en) | 2015-06-04 | 2015-06-04 | A kind of method and device for closing application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510300937.5A CN104881235B (en) | 2015-06-04 | 2015-06-04 | A kind of method and device for closing application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104881235A CN104881235A (en) | 2015-09-02 |
CN104881235B true CN104881235B (en) | 2018-06-15 |
Family
ID=53948746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510300937.5A Expired - Fee Related CN104881235B (en) | 2015-06-04 | 2015-06-04 | A kind of method and device for closing application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104881235B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105472150A (en) * | 2015-11-24 | 2016-04-06 | 努比亚技术有限公司 | Withdrawing processing apparatus of mobile terminal application operation, terminal and realization method thereof |
CN105677215A (en) * | 2015-12-30 | 2016-06-15 | 小米科技有限责任公司 | Application control method and apparatus |
CN107066841A (en) * | 2016-12-19 | 2017-08-18 | 南昌欧菲生物识别技术有限公司 | A kind of application control method |
CN107153552A (en) * | 2017-06-06 | 2017-09-12 | 深圳市乃斯网络科技有限公司 | The quick of terminal app exits method and system |
CN107566623A (en) * | 2017-08-24 | 2018-01-09 | 深圳双创科技发展有限公司 | A kind of terminal operation method and terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102224488A (en) * | 2008-12-22 | 2011-10-19 | 帕姆公司 | Interpreting gesture input including introduction or removal of a point of contact while a gesture is in progress |
CN103106018A (en) * | 2013-02-07 | 2013-05-15 | 广州市久邦数码科技有限公司 | Method of deleting desktop elements fast |
CN103246383A (en) * | 2012-02-08 | 2013-08-14 | 纬创资通股份有限公司 | Touch display device and touch method |
CN103455259A (en) * | 2012-05-29 | 2013-12-18 | 北京小米科技有限责任公司 | Operation command detection method and device |
CN104063136A (en) * | 2013-07-02 | 2014-09-24 | 姜洪明 | Mobile operation system |
CN104484035A (en) * | 2014-12-04 | 2015-04-01 | 北京百度网讯科技有限公司 | Control method, device and system based on somatosensory equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8736557B2 (en) * | 2006-09-11 | 2014-05-27 | Apple Inc. | Electronic device with image based browsers |
-
2015
- 2015-06-04 CN CN201510300937.5A patent/CN104881235B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102224488A (en) * | 2008-12-22 | 2011-10-19 | 帕姆公司 | Interpreting gesture input including introduction or removal of a point of contact while a gesture is in progress |
CN103246383A (en) * | 2012-02-08 | 2013-08-14 | 纬创资通股份有限公司 | Touch display device and touch method |
CN103455259A (en) * | 2012-05-29 | 2013-12-18 | 北京小米科技有限责任公司 | Operation command detection method and device |
CN103106018A (en) * | 2013-02-07 | 2013-05-15 | 广州市久邦数码科技有限公司 | Method of deleting desktop elements fast |
CN104063136A (en) * | 2013-07-02 | 2014-09-24 | 姜洪明 | Mobile operation system |
CN104484035A (en) * | 2014-12-04 | 2015-04-01 | 北京百度网讯科技有限公司 | Control method, device and system based on somatosensory equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104881235A (en) | 2015-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104881235B (en) | A kind of method and device for closing application program | |
CN102541455B (en) | Method and device for rapidly switching operations | |
CN103744671B (en) | The method and electronic equipment of a kind of information processing | |
CN102662585A (en) | Method for adaptively regulating touch input range of screen, and mobile terminal | |
CN104575537B (en) | Music switching method and user equipment | |
CN102819352A (en) | Method and device for controlling terminal equipment | |
WO2015106510A1 (en) | Screen splitting method and device for applications, intelligent terminal and storage medium | |
CN105824693B (en) | A kind of control method that multitask is shown and mobile terminal | |
CN102576284A (en) | User interface methods for ending an application | |
WO2015120704A1 (en) | Method and system for displaying an application shortcut in a lock screen interface | |
CN105022955B (en) | A kind of locking means and mobile terminal of application program | |
WO2017113821A1 (en) | Method and apparatus for operating smart phone and smart phone | |
CN103136508A (en) | Gesture identification method and electronic equipment | |
CN102193714A (en) | Man-machine interactive mode for data grouping management of mobile terminal | |
WO2014201936A1 (en) | Window moving method of mobile device and apparatus thereof | |
CN103927076B (en) | Icon moving method, mobile terminal and terminal device | |
CN103019596A (en) | Method for realizing operation of virtual key based on touch screen and mobile terminal | |
CN104216639B (en) | A kind of terminal operation method | |
CN104866226A (en) | Terminal device and method for controlling same | |
CN103777758A (en) | Method and device for interaction with mobile terminal through infrared lamp gestures | |
CN106126090B (en) | The control method and electronic equipment of a kind of electronic equipment | |
CN104777992A (en) | Method and device for realizing quick mass operation under touch screen | |
CN105677220A (en) | Information processing method and electronic equipment | |
CN105242835A (en) | Terminal and touch technology based menu selection method and apparatus | |
CN105940672A (en) | Detecting patterns traced on a screen of a user device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180615 |
|
CF01 | Termination of patent right due to non-payment of annual fee |