CN112000385A - Rapid restarting method and system for Android device - Google Patents
Rapid restarting method and system for Android device Download PDFInfo
- Publication number
- CN112000385A CN112000385A CN202010912786.XA CN202010912786A CN112000385A CN 112000385 A CN112000385 A CN 112000385A CN 202010912786 A CN202010912786 A CN 202010912786A CN 112000385 A CN112000385 A CN 112000385A
- Authority
- CN
- China
- Prior art keywords
- time interval
- time
- android device
- android
- trigger
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000001960 triggered effect Effects 0.000 claims description 16
- 238000001514 detection method Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/24—Resetting means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
- Power Sources (AREA)
Abstract
The invention relates to a quick restart method and a quick restart system for Android equipment, wherein the method comprises the following steps of: continuously acquiring trigger time of triggering a power key of the Android equipment; calculating the time interval between the current trigger time and the last trigger time; comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval; by using the rapid restarting method for the Android device, provided by the invention, the Android device can be rapidly restarted without accessing an input device, and the operation is simple and convenient.
Description
Technical Field
The invention relates to the technical field of Android equipment, in particular to a quick restart method and a quick restart system for Android equipment.
Background
At present, Android equipment is widely applied to various fields, and the technology, performance, reliability and the like of the Android equipment tend to be stable.
When the existing Android equipment is restarted, generally, after the Android equipment enters a system, the Android equipment is restarted by clicking a restart button through input equipment such as a mouse or a touch screen.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a quick restart method for an Android device and a quick restart method system for an Android device, aiming at the above defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows:
in one aspect, the invention provides a quick restart method for Android equipment, which comprises the following steps:
continuously acquiring trigger time of triggering a power key of the Android equipment;
calculating the time interval between the current trigger time and the last trigger time;
and comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval.
The invention relates to a quick restart method for Android equipment, wherein,
the step of continuously acquiring the trigger time for triggering the power key of the Android device specifically comprises the following steps:
continuously detecting whether a power key of the Android device is triggered;
and when detecting that the power key of the Android equipment is triggered, taking the time at the moment as the trigger time of the time and recording the trigger time.
The invention relates to a quick restart method for Android equipment, wherein,
before the step of continuously acquiring the trigger time for triggering the power key of the Android device, the method further comprises the following steps:
receiving the standard time interval input by a user.
The invention relates to a quick restart method for Android equipment, wherein,
prior to the step of receiving the standard time interval of user input, the method further comprises the steps of:
and setting a user interface for a user to input the standard time interval.
According to the quick restart method for the Android device, the trigger mode of the power key can be that the power key is pressed, the power key is shifted or the power key is pulled up.
On the other hand, the invention provides a quick restart method and system for Android equipment, and the system comprises the following steps:
the trigger time acquiring unit is used for continuously acquiring trigger time for triggering a power key of the Android device;
the time interval calculation unit is used for calculating the time interval between the current trigger time and the last trigger time;
and the comparison unit is used for comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval.
The system for the rapid restarting method of the Android device comprises a trigger time obtaining unit and a control unit, wherein the trigger time obtaining unit comprises:
the trigger detection unit is used for continuously detecting whether a power key of the Android device is triggered;
and the recording unit is used for taking the time at the moment as the trigger time of the current time and recording when the power key of the Android device is detected to be triggered.
The invention relates to a system for a quick restart method of an Android device, which further comprises the following steps:
and the receiving unit is used for receiving the standard time interval input by the user.
The invention relates to a system for a quick restart method of an Android device, which further comprises the following steps:
a setting unit: a user interface for setting the standard time interval for user input.
The invention has the beneficial effects that: the method comprises the steps of calculating a time interval between the current trigger time and the last trigger time by continuously acquiring the trigger time of triggering a power key of the Android device, comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval, so that the rapid restart of the Android device is realized; by using the rapid restarting method for the Android device, provided by the invention, the Android device can be rapidly restarted without accessing an input device, and the operation is simple and convenient.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described with reference to the accompanying drawings and embodiments, wherein the drawings in the following description are only part of the embodiments of the present invention, and for those skilled in the art, other drawings can be obtained without inventive efforts according to the accompanying drawings:
fig. 1 is a flowchart illustrating an implementation of a fast reboot method for an Android device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an implementation of a fast restart method for an Android device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system for a fast reboot method of an Android device according to a third embodiment of the present invention;
fig. 4 is a flowchart of an example of the fast restart system for an Android device provided in the third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without inventive step, are within the scope of the present invention.
The following detailed description of specific implementations of the present invention is provided in conjunction with specific embodiments:
the first embodiment is as follows:
fig. 1 shows an implementation flowchart of a fast restart method for an Android device according to a first embodiment of the present invention, and for convenience of description, only parts related to the embodiment of the present invention are shown, which are detailed as follows:
step S101: continuously acquiring trigger time of triggering a power key of the Android equipment;
step S102: calculating the time interval between the current trigger time and the last trigger time;
step S103: and comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval.
For example, if the trigger time of this time is 18 o 'clock 20 min 20 sec, the trigger time of the last time is 18 o' clock 20 min 19 sec, and the standard time interval is 2 sec, the Android device will be restarted because the time interval between the trigger time of this time and the trigger time of the last time is 1 sec, which is less than 2 sec.
The method comprises the steps of calculating the time interval between the current trigger time and the last trigger time by continuously acquiring the trigger time of triggering a power key of the Android device, comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval, so that the rapid restart of the Android device is realized; by using the method for quickly restarting the Android device provided by the embodiment, the Android device can be quickly restarted without accessing an input device, and the operation is simple and convenient.
Preferably, before the step of continuously acquiring the trigger time for triggering the power key of the Android device, the method further includes the following steps:
a standard time interval input by a user is received.
The standard time interval is set by the user, the user can set the standard time interval according to the actual conditions of the user, the use experience is good, for example, the action of the older person is not sensitive, so that the standard time interval can be set to be larger, the operation difficulty is reduced, and the action of the younger person is sensitive, so that the standard time interval can be set to be smaller, and the restarting speed is improved.
Further preferably, before the step of "receiving a standard time interval of user input", the method further comprises the steps of:
a user interface is provided for a user to enter the standard time interval.
Through setting the user interface, the user can be better guided to input the standard time interval, and the use experience is improved.
Preferably, the triggering mode of the power key may be that the power key is pressed, the power key is toggled or the power key is pulled up.
Example two:
fig. 2 shows an implementation flowchart of a fast restart method for an Android device according to a second embodiment of the present invention, and for convenience of description, only parts related to the second embodiment of the present invention are shown, which are detailed as follows:
step S201: continuously detecting whether a power key of the Android device is triggered;
step S202: when detecting that a power key of the Android equipment is triggered, taking the time at the moment as the trigger time of the time and recording the trigger time;
step S203: calculating the time interval between the current trigger time and the last trigger time;
step S204: and comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval.
The method comprises the steps of continuously detecting whether a power key of the Android device is triggered or not, taking the time at the moment as the trigger time of the time and recording when the power key of the Android device is triggered, continuously obtaining the trigger time of the power key of the Android device when the trigger time of the Android device is detected, calculating the time interval between the trigger time of the time and the trigger time of the last time, comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval, so that the rapid restart of the Android device is realized; by using the method for quickly restarting the Android device provided by the second embodiment, the Android device can be quickly restarted without accessing an input device, and the operation is simple and convenient.
Example three:
fig. 3 shows a schematic structural diagram of a system for a fast reboot method of an Android device according to a third embodiment of the present invention, and for convenience of description, only parts related to the third embodiment of the present invention are shown, where the parts include:
the trigger time acquiring unit 30 is used for continuously acquiring trigger time for triggering a power key of the Android device;
a time interval calculation unit 31 for calculating a time interval between the present trigger time and the last trigger time;
and the comparing unit 32 is configured to compare the time interval with a preset standard time interval, and restart the Android device if the time interval is not greater than the standard time interval.
In the third embodiment, the trigger time of triggering the power key of the Android device is continuously acquired by using the trigger time acquisition unit 30, the time interval between the current trigger time and the last trigger time is calculated by using the time interval calculation unit 31, and the time interval is compared with the preset standard time interval by using the comparison unit 32; by using the quick restart system for the Android device provided by the third embodiment, the Android device can be quickly restarted without accessing an input device, and the operation is simple and convenient.
As shown in fig. 4, as an example, the trigger time obtaining unit includes an Input Manager Service system Service and a PhoneWindowManager, when the power key is triggered, the Input Manager Service system Service receives an Input event, the event records the current trigger time, after receiving the Input event, the Input Manager Service sends the Input event to the PhoneWindowManager, intercepts the Input event in the PhoneWindowManager, obtains the current trigger time, calculates a time interval between the current trigger time and the previous trigger time by using the time interval calculating unit, and finally compares the time interval with a preset standard time interval by using the comparing unit 32, for example, the standard time interval is 2 seconds, and if the time interval is not greater than 2 seconds, restarts the Android device. The relevant code content is as follows:
wherein, mKeyPowerEventTime is the last trigger time, mKeyPowerEventTime is the current trigger time, and 2000 in "mKeyPowerEventTime-mKeyPowerEventTime < (2000)" represents 2 seconds as the standard time interval.
Preferably, the trigger time acquiring unit includes:
the trigger detection unit is used for continuously detecting whether a power key of the Android device is triggered;
and the recording unit is used for taking the time at the moment as the current trigger time and recording the trigger time when the power key of the Android device is detected to be triggered.
Preferably, the system further comprises:
and the receiving unit is used for receiving the standard time interval input by the user.
The receiving unit is used for receiving the standard time interval input by the user, so that the user can set the standard time interval according to the actual situation of the user, and the use experience is improved.
Preferably, the system further comprises:
a setting unit: a user interface for setting a standard time interval for user input.
The setting unit is used for setting the user interface so that the user can input the standard time interval, the user can be better guided to input the standard time interval, and the use experience is improved.
In the embodiment of the present invention, each unit of the system for a fast restart method of an Android device may be implemented by a corresponding hardware or software unit, and each unit may be an independent software or hardware unit, or may be integrated into a software or hardware unit, which is not limited herein.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.
Claims (9)
1. A quick restart method for Android equipment is characterized by comprising the following steps:
continuously acquiring trigger time of triggering a power key of the Android equipment;
calculating the time interval between the current trigger time and the last trigger time;
and comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval.
2. The fast restart method for Android device of claim 1,
the step of continuously acquiring the trigger time for triggering the power key of the Android device specifically comprises the following steps:
continuously detecting whether a power key of the Android device is triggered;
and when detecting that the power key of the Android equipment is triggered, taking the time at the moment as the trigger time of the time and recording the trigger time.
3. The fast restart method for Android device of claim 1,
before the step of continuously acquiring the trigger time for triggering the power key of the Android device, the method further comprises the following steps:
receiving the standard time interval input by a user.
4. The fast restart method for Android device of claim 3,
prior to the step of receiving the standard time interval of user input, the method further comprises the steps of:
and setting a user interface for a user to input the standard time interval.
5. The rapid restart method for Android device of claim 1, wherein the power key is triggered by being pressed, being toggled, or being unplugged.
6. A quick restart method system for Android devices, based on any one of claims 1 to 5, characterized in that the system includes:
the trigger time acquiring unit is used for continuously acquiring trigger time for triggering a power key of the Android device;
the time interval calculation unit is used for calculating the time interval between the current trigger time and the last trigger time;
and the comparison unit is used for comparing the time interval with a preset standard time interval, and restarting the Android device if the time interval is not greater than the standard time interval.
7. The system of claim 6, wherein the trigger time obtaining unit comprises:
the trigger detection unit is used for continuously detecting whether a power key of the Android device is triggered;
and the recording unit is used for taking the time at the moment as the trigger time of the current time and recording when the power key of the Android device is detected to be triggered.
8. The system of claim 6, wherein the system further comprises:
and the receiving unit is used for receiving the standard time interval input by the user.
9. The system of claim 8, wherein the system further comprises:
a setting unit: a user interface for setting the standard time interval for user input.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010912786.XA CN112000385A (en) | 2020-09-03 | 2020-09-03 | Rapid restarting method and system for Android device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010912786.XA CN112000385A (en) | 2020-09-03 | 2020-09-03 | Rapid restarting method and system for Android device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112000385A true CN112000385A (en) | 2020-11-27 |
Family
ID=73465854
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010912786.XA Pending CN112000385A (en) | 2020-09-03 | 2020-09-03 | Rapid restarting method and system for Android device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112000385A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102759975A (en) * | 2011-04-26 | 2012-10-31 | 深圳富泰宏精密工业有限公司 | Start-up and shut-down management system and method of electronic device |
EP2624054A2 (en) * | 2012-02-06 | 2013-08-07 | Canon Kabushiki Kaisha | Information processing apparatus and method for controlling the same |
CN103686281A (en) * | 2013-12-13 | 2014-03-26 | 乐视致新电子科技(天津)有限公司 | Method for simulating mouse to control smart television, remote-control unit and mobile terminal |
CN105975304A (en) * | 2016-04-29 | 2016-09-28 | 青岛海信移动通信技术股份有限公司 | Restarting method and apparatus for mobile device |
CN106056009A (en) * | 2016-05-23 | 2016-10-26 | 乐视控股(北京)有限公司 | Mobile terminal power off control apparatus and method |
CN106227453A (en) * | 2016-07-27 | 2016-12-14 | 维沃移动通信有限公司 | The control method of a kind of mobile terminal and mobile terminal |
CN106775282A (en) * | 2016-11-10 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | Operate the method and device of terminal |
CN106951275A (en) * | 2017-02-06 | 2017-07-14 | 广东小天才科技有限公司 | Application starting method and device of mobile terminal |
CN107145282A (en) * | 2017-05-04 | 2017-09-08 | 北京奇虎科技有限公司 | The brush machine method and apparatus of smart machine based on Android operation system |
CN206574040U (en) * | 2017-01-17 | 2017-10-20 | 深圳市凯欣达信息技术股份有限公司 | The performs device of self-aided terminal |
CN109891392A (en) * | 2017-09-30 | 2019-06-14 | 华为技术有限公司 | A kind of processing method and processing device of system service time-out |
CN111262975A (en) * | 2020-01-08 | 2020-06-09 | 华为技术有限公司 | Bright screen control method and electronic equipment |
-
2020
- 2020-09-03 CN CN202010912786.XA patent/CN112000385A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102759975A (en) * | 2011-04-26 | 2012-10-31 | 深圳富泰宏精密工业有限公司 | Start-up and shut-down management system and method of electronic device |
EP2624054A2 (en) * | 2012-02-06 | 2013-08-07 | Canon Kabushiki Kaisha | Information processing apparatus and method for controlling the same |
CN103686281A (en) * | 2013-12-13 | 2014-03-26 | 乐视致新电子科技(天津)有限公司 | Method for simulating mouse to control smart television, remote-control unit and mobile terminal |
CN105975304A (en) * | 2016-04-29 | 2016-09-28 | 青岛海信移动通信技术股份有限公司 | Restarting method and apparatus for mobile device |
CN106056009A (en) * | 2016-05-23 | 2016-10-26 | 乐视控股(北京)有限公司 | Mobile terminal power off control apparatus and method |
CN106227453A (en) * | 2016-07-27 | 2016-12-14 | 维沃移动通信有限公司 | The control method of a kind of mobile terminal and mobile terminal |
CN106775282A (en) * | 2016-11-10 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | Operate the method and device of terminal |
CN206574040U (en) * | 2017-01-17 | 2017-10-20 | 深圳市凯欣达信息技术股份有限公司 | The performs device of self-aided terminal |
CN106951275A (en) * | 2017-02-06 | 2017-07-14 | 广东小天才科技有限公司 | Application starting method and device of mobile terminal |
CN107145282A (en) * | 2017-05-04 | 2017-09-08 | 北京奇虎科技有限公司 | The brush machine method and apparatus of smart machine based on Android operation system |
CN109891392A (en) * | 2017-09-30 | 2019-06-14 | 华为技术有限公司 | A kind of processing method and processing device of system service time-out |
CN111262975A (en) * | 2020-01-08 | 2020-06-09 | 华为技术有限公司 | Bright screen control method and electronic equipment |
Non-Patent Citations (2)
Title |
---|
HJWANG1: ""Android 按键流程(InputManagerService 以及JNI phoneWindowManger 应用)(and5.1)"", pages 1 - 24, Retrieved from the Internet <URL:《http://blog.csdn.net/hjwang1/article/details/78094091》> * |
王志强: ""基于模糊测试的漏洞挖掘及相关攻防技术研究"", 《中国博士学位论文全文数据库 信息科技辑》, pages 138 - 5 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190332513A1 (en) | Method and apparatus for dealing with abnormality of application program and storage medium | |
US9848072B2 (en) | Electronic device monitoring method and apparatus | |
US20190171805A9 (en) | Unlocking method and apparatus, and storage medium | |
CN106227585B (en) | Application program starting method, device and equipment | |
CN108521607B (en) | Method and device for processing advertisements in video, storage medium and intelligent terminal | |
CN111081241B (en) | Data detection method and device for device false wake-up, mobile terminal and storage medium | |
CN108292336B (en) | Fingerprint acquisition method and terminal | |
CN105612485A (en) | Method and apparatus for running application program | |
CN111163278B (en) | Camera control method and device | |
CN111949368A (en) | Application program control method and device | |
WO2018099253A1 (en) | Self-starting method and device | |
US10108474B2 (en) | Trace capture of successfully completed transactions for trace debugging of failed transactions | |
CN106775284B (en) | Information processing method and electronic equipment | |
CN105975304A (en) | Restarting method and apparatus for mobile device | |
CN110110146A (en) | Video clip searching method, device, medium and equipment based on artificial intelligence | |
US7774657B1 (en) | Automatically estimating correlation between hardware or software changes and problem events | |
US9684519B2 (en) | Electronic device using trigger signal and status signal to execute a plurality of booting modes | |
CN109558719B (en) | Unlocking method and terminal | |
CN112000385A (en) | Rapid restarting method and system for Android device | |
WO2017101336A1 (en) | Switch shortcut controlling method and device | |
CN112947829A (en) | Misoperation processing method and device, electronic equipment and readable storage medium | |
CN111124627B (en) | Method and device for determining call initiator of application program, terminal and storage medium | |
CN116860552A (en) | Application program operation monitoring method and device, electronic equipment and storage medium | |
EP4354293A1 (en) | Detection method and apparatus, and electronic device | |
CN110457075B (en) | Communication terminal shutdown method and device, storage medium and communication terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201127 |