CN108829313B - Design method for Android APP quitting application program - Google Patents
Design method for Android APP quitting application program Download PDFInfo
- Publication number
- CN108829313B CN108829313B CN201810403296.XA CN201810403296A CN108829313B CN 108829313 B CN108829313 B CN 108829313B CN 201810403296 A CN201810403296 A CN 201810403296A CN 108829313 B CN108829313 B CN 108829313B
- Authority
- CN
- China
- Prior art keywords
- application program
- user
- return key
- return
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Abstract
The invention discloses a design method for an Android APP quitting application program, which comprises the following steps: a user firstly presses down an Android device return key in an application program; if the application program has internal return logic to be processed, the application program performs internal return logic operation, and if the application program has no internal return logic to be processed, the application program can prompt a user immediately and the application program is about to exit; when the user presses the return key for a long time, the application program waits for the user to release the return key, and the application program cannot be immediately quitted in the waiting period; when the user releases the return key, if the return key is pressed again within a certain time, the current client application program immediately exits, otherwise, no operation is performed; the invention solves the problem of exit of the application program caused by misoperation of the return key by the user, improves the friendliness of the application program and improves the interactive experience of the user.
Description
Technical Field
The invention relates to the field of Android client Application (APP) development, in particular to a design method for an Android APP quitting application.
Background
When the Android intelligent device is used in daily life, people almost deal with various APPs, so that the interactive experience with the APPs is particularly important. The return key serving as one of the three virtual keys of the Android device plays a main role in returning and jumping pages and exiting an application program in interaction between a user and the Android device, but a user may have misoperation of long-pressing the return key, and the long-pressing event of the Android operating system on the return key is processed into continuous pressing events, so that a return mechanism is required to prevent the application program from exiting due to misoperation of the return key by the user.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a design method for exiting an application program of an Android APP, which solves the problem that the application program exits due to the fact that a user operates a return key by mistake, improves the friendliness of the application program, and improves the interaction experience of the user.
In order to achieve the purpose, the invention adopts the following technical scheme that:
s1, the user presses a return key of the Android device for the first time in the application program;
s2, judging whether the application program of the user has internal return logic to be processed, if the application program has internal return logic to be processed, the application program carries out internal return logic operation; if the application program has no internal return logic to be processed, namely the user is in the Main Activity of the application program, the application program immediately prompts the user that the application program is about to exit;
s3, judging whether the user releases the return key, if the user does not release the return key, namely the user still keeps the long-time pressing state of the return key, waiting for the user to release the return key, and not doing any operation during the waiting period, namely the application program does not exit immediately during the long-time pressing period; otherwise, the user releases the return key for the first time, and starts the operation of step S4;
s4, after the user releases the return key for the first time, judging whether the user presses the return key again within a set time interval after releasing the return key, if so, immediately quitting the current application program; otherwise, the operation of step S1 is resumed.
In step S4, the determination of whether the user has pressed the return key again within the set time interval after releasing the return key is made by the time difference between the time when the user has released the return key for the first time and the time when the user has pressed the return key again, and based on whether the time difference is smaller than the set time interval.
In step S4, the set time interval is 2 seconds.
The first press of the return key means that all presses of the return key are not pressed again within 2 seconds.
The invention has the advantages that:
(1) the exit operation of the application program is completed by pressing the return key twice within a set time interval.
(2) When the user presses the return key for the first time when the application program has no internal return logic, the application program can prompt the user to 'press again to quit the application program', so that the operation of quitting the application program by the Android APP is more humanized, and the friendliness of the application program is improved.
(3) When the user presses the return key in the application program without internal return logic duration, the application program cannot be immediately exited, and the exit of the application program caused by misoperation of the user is avoided.
(4) Whether the return key is pressed within a certain time interval is judged by the time difference between the time when the user releases the return key for the first time and the time when the user presses the return key again, so that the exiting operation of the application program is not influenced when the return key is pressed for the first time or when the return key is pressed for the second time.
(5) The time interval of twice pressing the return key for exiting the application program is set to be within 2 seconds, which accords with the human thinking mode.
Drawings
FIG. 1 is a flowchart of a method for designing an Android APP quitting application program.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a method for designing an Android APP to exit an application program includes the following specific steps:
s1, judging whether the user presses a return key of the Android device in the application program, if so, executing the step S2; if not, no operation is performed.
S2, judging whether the internal return logic in the application program needs to be processed, if so, executing step S3; if the application does not have internal return logic to process, then step S4 is performed.
S3, the application program performs the operation of internal return logic, and after the operation is completed, the process returns to the step S1.
S4, the application pops up a prompt box "exit the application again".
S5, judging whether the user is in the long-press state of the return key, if so, executing the step S6, namely the user does not release the pressed return key; if not, step S7 is executed.
S6, the application waits for the user to release the return button and records the time the user first released the return button.
And S7, recording the time when the user releases the return key for the first time.
And S8, judging whether the user presses the return key again, if so, executing the step S9, and if not, not doing any operation.
And S9, recording the time when the user presses the return key of the Android device again.
S10, judging whether the time interval between the time when the user releases the return key for the first time and the time when the user presses the return key again is less than 2 seconds, if so, executing the step S11; if not, go to step S2.
S11, the application immediately exits.
The invention is not to be considered as limited to the specific embodiments shown and described, but is to be understood to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the appended claims.
Claims (2)
1. A design method for exiting an application program from an Android APP is characterized by comprising the following steps:
s1, the user presses a return key of the Android device for the first time in the application program;
s2, judging whether the application program of the user has internal return logic to be processed, if the application program has internal return logic to be processed, the application program carries out internal return logic operation; if the application program has no internal return logic to be processed, namely the user is in the Main Activity of the application program, the application program immediately prompts the user that the application program is about to exit;
s3, judging whether the user releases the return key, if the user does not release the return key, namely the user still keeps the long-time pressing state of the return key, waiting for the user to release the return key, and not doing any operation during the waiting period, namely the application program does not exit immediately during the long-time pressing period; otherwise, the user releases the return key for the first time, and starts the operation of step S4;
s4, after the user releases the return key for the first time, judging whether the user presses the return key again within a set time interval after releasing the return key, if so, immediately quitting the current application program; otherwise, the operation of step S1 is resumed;
in step S4, the determination of whether the user has pressed the return key again within the set time interval after releasing the return key is made by the time difference between the time when the user has released the return key for the first time and the time when the user has pressed the return key again, and based on whether the time difference is smaller than the set time interval.
2. The method for designing an Android APP exit application as claimed in claim 1, wherein in step S4, the set time interval is within 2 seconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810403296.XA CN108829313B (en) | 2018-04-28 | 2018-04-28 | Design method for Android APP quitting application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810403296.XA CN108829313B (en) | 2018-04-28 | 2018-04-28 | Design method for Android APP quitting application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108829313A CN108829313A (en) | 2018-11-16 |
CN108829313B true CN108829313B (en) | 2020-11-17 |
Family
ID=64147540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810403296.XA Active CN108829313B (en) | 2018-04-28 | 2018-04-28 | Design method for Android APP quitting application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108829313B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750096A (en) * | 2012-06-15 | 2012-10-24 | 深圳乐投卡尔科技有限公司 | Vehicle-mounted Android platform multi-point gesture control method |
CN103309756A (en) * | 2013-06-14 | 2013-09-18 | 广东欧珀移动通信有限公司 | Method for preventing application program from quitting or being interrupted accidently and mobile terminal |
CN103440092A (en) * | 2013-08-13 | 2013-12-11 | 广东欧珀移动通信有限公司 | Return key processing method, system and mobile terminal |
JP2018041175A (en) * | 2016-09-05 | 2018-03-15 | 京セラドキュメントソリューションズ株式会社 | Electronic apparatus and image forming apparatus |
-
2018
- 2018-04-28 CN CN201810403296.XA patent/CN108829313B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750096A (en) * | 2012-06-15 | 2012-10-24 | 深圳乐投卡尔科技有限公司 | Vehicle-mounted Android platform multi-point gesture control method |
CN103309756A (en) * | 2013-06-14 | 2013-09-18 | 广东欧珀移动通信有限公司 | Method for preventing application program from quitting or being interrupted accidently and mobile terminal |
CN103440092A (en) * | 2013-08-13 | 2013-12-11 | 广东欧珀移动通信有限公司 | Return key processing method, system and mobile terminal |
JP2018041175A (en) * | 2016-09-05 | 2018-03-15 | 京セラドキュメントソリューションズ株式会社 | Electronic apparatus and image forming apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN108829313A (en) | 2018-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10838838B2 (en) | Method and apparatus for dealing with abnormality of application program and storage medium | |
CN104898515B (en) | A kind of time switch and its control method and control device | |
US10798461B2 (en) | Method for switching control modes of a smart TV set, device and computer readable medium | |
CN106256116B (en) | A kind of method and terminal controlling application program | |
CN107783803B (en) | System optimization method and device of intelligent terminal, storage medium and intelligent terminal | |
CN108804157A (en) | Application program preloads method, apparatus, storage medium and terminal | |
CN106855826B (en) | Background application program control method and device | |
CN108984243B (en) | Application use timeout reminding method and device and readable storage medium | |
CN107203369A (en) | Bullet frame reminding method and device based on Android | |
CN106547598A (en) | The method for lifting Android application program launching speed | |
WO2013185551A1 (en) | Misoperation prevention method and touch screen terminal device | |
CA2565364A1 (en) | System and method for surely but conveniently causing reset of a computerized device | |
CN108376067A (en) | A kind of application operating method and its equipment, storage medium, terminal | |
CN108595224A (en) | Application prompts method, apparatus, storage medium and terminal | |
WO2013167022A2 (en) | Method and device for achieving mobile terminal power saving and mobile terminal | |
CN106231136B (en) | Call mode monitoring method, system and communication terminal | |
CN104239131B (en) | A kind of method and device for closing application program | |
CN106022108B (en) | A kind of synchronization management method and terminal device | |
US8499309B2 (en) | Application event handling methods and systems | |
CN112991635A (en) | Storage and taking method and device for intelligent cabinet | |
CN108829313B (en) | Design method for Android APP quitting application program | |
CN110825460A (en) | Application program control method and device, computer equipment and storage medium | |
CN106095055B (en) | A kind of method for closing and device of application program | |
CN204517795U (en) | Have the composite push-button of page up and homepage function concurrently | |
CN107229412A (en) | A kind of key control method and device of embedded Linux equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |