CN108900666B - Elastic frame prompting method and device and electronic equipment - Google Patents
Elastic frame prompting method and device and electronic equipment Download PDFInfo
- Publication number
- CN108900666B CN108900666B CN201810602873.8A CN201810602873A CN108900666B CN 108900666 B CN108900666 B CN 108900666B CN 201810602873 A CN201810602873 A CN 201810602873A CN 108900666 B CN108900666 B CN 108900666B
- Authority
- CN
- China
- Prior art keywords
- sliding assembly
- sliding
- camera
- preset
- pop
- 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
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000001514 detection method Methods 0.000 claims abstract description 16
- 238000004590 computer program Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000001788 irregular Effects 0.000 description 3
- 230000006698 induction Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Indication In Cameras, And Counting Of Exposures (AREA)
Abstract
The invention discloses a method and a device for prompting a popup box and electronic equipment, wherein the electronic equipment comprises: the sliding assembly is used for sliding between a first position where the sliding assembly is contained in the body and a second position where the sliding assembly is exposed out of the body; the detection assembly comprises a magnetic field generating element and a Hall element, the magnetic field generating element and the Hall element are respectively fixed on the body and the sliding assembly, and the sliding assembly is provided with a camera, and the method comprises the following steps: judging whether the sliding assembly is in a preset state or not; in the preset state, the flag bit is preset, and the sliding assembly is located at the first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received; when the sliding assembly is in a preset state, determining whether the camera is in a running state; when the camera is in an operating state, the pop-up frame is displayed, and a user is prompted to start the sliding assembly, so that the problem that the camera cannot be used due to misoperation of the sliding assembly can be avoided.
Description
Technical Field
The invention relates to the technical field of electronics, in particular to a method and a device for prompting a popup box and electronic equipment.
Background
In order to improve user experience, the screen of the mobile phone is more and more occupied, and even a scheme that a front camera is arranged on a sliding assembly to avoid being arranged on a front panel has been proposed, so that how to use the sliding assembly becomes a problem to be solved urgently.
Disclosure of Invention
The invention provides a pop-up frame prompting method and device and electronic equipment.
The invention discloses a pop-up frame prompting method, which is applied to electronic equipment, wherein the electronic equipment comprises: the sliding assembly is used for sliding between a first position where the sliding assembly is contained in the body and a second position where the sliding assembly is exposed out of the body; the detection assembly comprises a magnetic field generating element and a Hall element, the magnetic field generating element and the Hall element are respectively fixed on the body and the sliding assembly, a camera is arranged on the sliding assembly, and the pop-up frame prompting method comprises the following steps:
judging whether the sliding assembly is in a preset state or not; the preset state is that a mark position is preset, and the sliding assembly is located at a first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received;
when the sliding assembly is in a preset state, determining whether a camera is in a running state;
and when the camera is in a running state, displaying a popup frame and prompting a user to start the sliding assembly.
The invention discloses a pop-up frame prompting device, which is applied to electronic equipment, wherein the electronic equipment comprises: the sliding assembly is used for sliding between a first position where the sliding assembly is contained in the body and a second position where the sliding assembly is exposed out of the body; the detection assembly comprises a magnetic field generating element and a Hall element, the magnetic field generating element and the Hall element are respectively fixed on the body and the sliding assembly, a camera is arranged on the sliding assembly, and the elastic frame prompting device comprises:
the judging module is used for judging whether the sliding assembly is in a preset state or not; the preset state is that a mark position is preset, and the sliding assembly is located at a first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received;
the determining module is used for determining whether the camera is in a running state or not when the sliding assembly is in a preset state;
and the prompting module is used for displaying a popup box and prompting a user to start the sliding assembly when the camera is in the running state.
The invention discloses an electronic device, comprising:
the sliding assembly is used for sliding between a first position where the sliding assembly is contained in the body and a second position where the sliding assembly is exposed out of the body; the detection assembly comprises a magnetic field generating element and a Hall element, the magnetic field generating element and the Hall element are respectively fixed on the body and the sliding assembly, and a camera is arranged on the sliding assembly;
the electronic device further includes: the electronic device comprises a memory, a processor electrically connected with the sliding assembly and the detection assembly, and a computer program which is stored on the memory and can be run on the processor, wherein when the processor executes the program, the pop-up frame prompting method is realized.
The present invention discloses a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements a pop-up box prompt method as described above.
According to the pop-up frame prompting method, the pop-up frame prompting device and the electronic equipment, whether the sliding assembly is in a preset state or not is judged; in the preset state, the flag bit is preset, and the sliding assembly is located at the first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received; when the sliding assembly is in a preset state, determining whether the camera is in a running state; when the camera is in an operating state, the pop-up frame is displayed, and a user is prompted to start the sliding assembly, so that the problem that the camera cannot be used due to misoperation of the sliding assembly can be avoided.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic view of an electronic device in a second position according to an embodiment of the invention;
FIG. 2 is a state diagram of an electronic device in a first position according to an embodiment of the invention;
FIG. 3 is a schematic structural view of a detection assembly according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
FIG. 5 is a flowchart illustrating a pop-up box prompt method according to an embodiment of the present invention;
FIG. 6 is another flow chart illustrating a pop-up box prompt method according to an embodiment of the present invention;
FIG. 7 is another flowchart illustrating a pop-up box prompt method according to an embodiment of the invention;
FIG. 8 is another flowchart illustrating a pop-up box prompt method according to an embodiment of the invention;
fig. 9 is a schematic structural diagram of a pop-up frame presentation device according to an embodiment of the present invention.
Description of the main element symbols:
the electronic device 100, the body 10, the sliding assembly 20, the detection assembly 30, the pop-up frame prompting device 40, the magnetic field generating element 32, the hall element 34, the first position a, the second position B, the sliding chute 16, the housing 12, the display assembly 14, the bearing 22, the camera 42, the threaded hole 24, the rotating screw rod 26, the groove 162, the driving device 50, the driving motor 52, the judgment module 44, the determination module 46 and the prompting module 48.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or uses of other materials.
Referring to fig. 1 to 3, an electronic device 100 according to an embodiment of the present invention includes a main body 10, a sliding component 20, a detecting component 30, and a pop-up frame prompting device 40. The sliding member 20 is configured to slide between a first position a accommodated in the body 10 and a second position B exposed from the body 10. The detecting assembly 30 is used for detecting the position of the sliding assembly 20, the detecting assembly 30 includes a magnetic field generating element 32 and a hall element 34, the magnetic field generating element 32 and the hall element 34 are respectively fixed on the body 10 and the sliding assembly 20, and the sliding assembly 20 is provided with a camera 42. The hall element 34 is used for determining the current relative position of the sliding assembly 20 relative to the body 10 according to the detection signal value, and further determining the sliding distance of the sliding assembly after sliding out from the initial position; and when the sliding distance is greater than the preset calibration value, sending an interrupt signal to the bullet frame prompting device 40.
It should be noted that "the magnetic field generating element 32 and the hall element 34 are fixed on the body 10 and the sliding assembly 20 respectively" herein includes two cases, that is, the magnetic field generating element 32 is fixed on the body 10, the hall element 34 is fixed on the sliding assembly 20, that is, the magnetic field generating element 32 is fixed on the sliding assembly 20, and that the hall element 34 is fixed on the body 10. Further, the magnetic field generating element 32 and the hall element 34 may be disposed to be opposed in the vertical direction or may be disposed to be opposed in the horizontal direction. That is, the specific positions of the magnetic field generating element 32 and the hall element 34 are not limited as long as the magnetic field generating element 32 and the hall element 34 can generate relative movement.
In some embodiments, the body 10 is formed with a slide slot 16, and the sliding assembly 20 is received in the slide slot 16 in the first position a. In this manner, the sliding assembly 20 may be caused to slide between the first position a and the second position B via the sliding channel 16.
Specifically, the body 10 includes a housing 12 and a display assembly 14, and the housing 12 and the display assembly 14 are combined to constitute an enclosed structure. The slide slot 16 opens into the housing 12 to allow the slide assembly 20 to slide back and out. It will be appreciated that the chute 16 may be open on either side of the housing 12. Preferably, the chute 16 opens at the top edge of the housing 12. Thus, the use habit of the user can be met.
Referring to fig. 1, in some embodiments, the sliding assembly 20 includes a carrier 22, and the camera 42 is disposed on the carrier 22. In this manner, the camera 42 may slide with the slide assembly 20. Of course, the user may turn on the camera 42 and turn off the camera 42 as the trigger signal, that is, when the user turns on the camera 42, the trigger sliding assembly 20 slides out, and when the user turns off the camera 42, the trigger sliding assembly 20 slides back. Thus, the user can use the camera conveniently only by opening or closing the camera according to the existing habit without performing additional operation on the sliding assembly 20.
Referring to fig. 4, in some embodiments, the sliding assembly 20 includes a threaded bore 24 disposed in a central portion of the carrier 22 and a rotating lead screw 26 engaged with the threaded bore 24. The chute 16 includes a recess 162 located opposite the threaded aperture 24 and at the bottom of the chute 16. The electronic device 100 comprises a driving means 50 arranged in the recess 162. The driving device 50 includes a driving motor 52 connected to the pop-up reminder device and an output shaft (not shown) connected to the bottom of the rotary screw 26.
It is understood that the pop-up reminder device 40 can control the sliding of the slide assembly 20 by controlling the drive motor 52. When the user commands the sliding assembly 20 to slide from the first position a to the second position B, the pop-up prompting device 40 controls the driving motor 52 to rotate forward, so that the output shaft drives the rotating screw rod 26 to rotate in the threaded hole 24, and the sliding assembly 20 slides from the first position a to the second position B. When the user commands the sliding assembly 20 to slide from the second position B to the first position a, the pop-up prompting device 40 controls the driving motor 52 to rotate reversely, so that the output shaft drives the rotating screw rod 26 to rotate in the threaded hole 24, and the sliding assembly 20 slides from the second position B to the first position a. It is to be noted that "from the first position a to the second position B" and "from the second position B to the first position a" herein refer to the direction of the sliding, and do not refer to the start point and the end point of the sliding.
Referring to fig. 5, the present invention provides a pop-up frame prompting method. The pop-up frame prompting method provided by the embodiment of the invention can be used for prompting a user to start the sliding assembly and controlling the sliding assembly to slide to the second position when the sliding assembly is manually pushed to return to the first position and the camera is in a running state.
The electronic device 100 comprises a body 10, a sliding assembly 20 and a detection assembly 30, wherein the sliding assembly 20 is used for sliding between a first position A accommodated in the body 10 and a second position B exposed from the body 10, the detection assembly 30 comprises a magnetic field generating element 32 and a Hall element 34, the magnetic field generating element 32 and the Hall element 34 are respectively fixed on the body 10 and the sliding assembly 20, and the pop-up frame prompting method comprises the following steps:
s12: judging whether the sliding assembly is in a preset state or not; in the preset state, the flag bit is preset, and the sliding assembly is located at the first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received;
s14: when the sliding assembly is in a preset state, determining whether the camera is in a running state;
s16: and when the camera is in the running state, displaying a popup box and prompting a user to start the sliding assembly.
In this embodiment, a hall register is disposed in the hall element, and a preset calibration value is stored in the hall register, where the preset calibration value is a calibration value that is manually converted into an automatic slide-out calibration value, that is, when the sliding assembly is manually pushed to slide from the first position a to the second position B, and the sliding distance is greater than the preset calibration value, the pop-up frame prompting device may receive an interrupt signal output by the hall element, and control the sliding assembly to continuously slide to the second position B according to the interrupt signal; or, when the sliding assembly is manually pushed to slide from the second position B to the first position a, and the sliding distance is greater than the preset calibration value, the pop-up frame prompting device may receive an interrupt signal output by the hall element, and control the sliding assembly to continue to slide to the first position a according to the interrupt signal. The Hall element can sense a magnetic field generated by the magnetic field generating element, a corresponding detection signal value is determined according to the sensed magnetic induction intensity, the distance between the Hall element and the magnetic field generating element is determined according to the detection signal value, the position of the sliding assembly is determined, and the sliding distance of the sliding assembly is further determined. In this embodiment, the hall element can determine the sliding direction of the sliding assembly according to the sensed magnetic induction intensity or the detected signal value, and then carries the identifier in the interrupt signal, so that the camera starting device determines the sliding direction of the sliding assembly according to the interrupt signal.
The number of the hall elements may be plural, for example, 2. Under the condition that the number of the Hall elements is 2, one Hall element can be used for detecting the sliding distance of the sliding assembly when the sliding assembly slides from the first position A to the second position B, and further generating an interrupt signal 1; the other Hall element can be used for detecting the sliding distance of the sliding assembly when the sliding assembly slides from the second position B to the first position A, and further generating an interrupt signal 2; the pop-up prompting device can determine whether the sliding component slides from the first position A to the second position B or from the second position B to the first position A according to the interrupt signal.
In this embodiment, when the user manually pushes the sliding assembly to slide to the first position and the sliding distance is greater than the preset calibration value, the hall element outputs an interrupt signal to the elastic frame prompting device; when the pop-up frame prompting device receives an interrupt signal output by the Hall element, the sliding assembly can be controlled to continuously slide to the first position, and the preset mark position is set. If the user manually pushes the sliding assembly and stops pushing the sliding assembly before the sliding distance is less than or equal to the preset calibration value, the preset flag bit is not set, and the sliding assembly is not in the preset state, then the steps S12 to S14 are not executed. The preset flag bit indicates that the interrupt signal output by the Hall element is received, and indicates that the sliding of the sliding assembly is manually pushed by a user.
In this embodiment, when the sliding assembly is in the preset state, if the camera is in the non-operating state, it indicates that the operation of manually pushing the sliding assembly to the first position by the user is not a misoperation, and at this time, the camera is in the non-operating state, and the sliding assembly does not need to be started, so that the pop-up frame does not need to be displayed.
In this embodiment, after the pop frame is displayed, in order to avoid repeated display of the pop frame, the preset flag bit may be cleared.
In this embodiment, a "start" button and a "cancel" button may be displayed on the pop-up frame, and selected by the user, if the user needs to use the camera, the "start" button is selected, and the pop-up frame prompting device receives the start request, controls the sliding assembly to slide from the first position to the second position, and stops displaying the pop-up frame, so that the camera provided on the sliding assembly can be normally used; if the user does not need to use the camera, the user selects a cancel button, and the pop-up frame prompting device directly stops displaying the pop-up frame after receiving the cancel request.
The pop-up frame prompting method of the embodiment of the invention judges whether the sliding assembly is in a preset state; in the preset state, the flag bit is preset, and the sliding assembly is located at the first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received; when the sliding assembly is in a preset state, determining whether the camera is in a running state; when the camera is in an operating state, the pop-up frame is displayed, and a user is prompted to start the sliding assembly, so that the problem that the camera cannot be used due to misoperation of the sliding assembly can be avoided.
Referring to fig. 6, in some embodiments, the method may further include the following steps:
s22: if the starting request and the canceling request are not received, determining whether the camera is in a running state in real time;
s24: and if the camera is not in the running state, or the time that the camera is in the background running state exceeds a first time threshold, stopping displaying the pop-up frame.
In this embodiment, the pop-up frame prompting device receives the interrupt signal and controls the sliding assembly to slide to the first position; if the camera application is quitted before the sliding assembly reaches the first position, because the quitting and releasing time of the camera application needs about 300ms, when the sliding assembly reaches the first position, the camera release is not finished, the camera is still in a running state, and at the moment, a pop-up frame is displayed; and after the release of the camera is finished, the camera is in a non-running state, and the pop-up window can not be displayed at the moment. Therefore, after step S16, when the start request and the cancel request are not received, the pop-up frame prompting device may determine whether the camera is in an operating state in real time, and stop displaying the pop-up frame if the camera is in an inoperative state.
In this embodiment, after the camera is in the background running state, some irregular applications do not release the camera; therefore, after the pop frame is displayed, the pop frame prompting device can judge whether the time of the camera in the background running state exceeds a first time threshold value; if the first time threshold value is exceeded, the camera is determined to be operated by irregular application, but the camera is not actually used, at the moment, the sliding assembly is located at the first position, the use of the camera cannot be influenced, and therefore the display of the elastic frame can be stopped.
Referring to fig. 7, in some embodiments, the method may further include the following steps:
s32: if the starting request and the canceling request are not received, determining whether a display screen of the electronic equipment is in a screen-off state or not, and determining whether the sliding assembly leaves the first position or not;
s34: and if the time that the display screen is in the screen-off state exceeds a second time threshold value, or the sliding assembly leaves the first position, stopping displaying the elastic frame.
In the embodiment, after the display screen of the electronic equipment is turned off, some irregular applications do not use the camera, but do not release the camera; therefore, after the display of the popup frame, the popup frame prompting device can judge whether the time of the display screen in the screen-off state exceeds a second time threshold value; and if the second time threshold is exceeded, stopping displaying the bullet frame.
In this embodiment, after the pop-up frame is displayed, if the user manually pushes the sliding assembly to make the sliding assembly leave the first position, the sliding assembly is not in the preset state at this time, and the pop-up frame is stopped being displayed.
Referring to fig. 8, in some embodiments, the method may further include the steps of:
s42: acquiring the setting time length of a preset flag bit;
s44: if the setting time length is larger than the third time threshold and the sliding assembly is not located at the first position within the setting time length, determining whether the camera is in a running state;
s46: if the camera is not in the running state, controlling the sliding assembly to slide to a first position, and resetting the preset flag bit;
s48: and if the camera is in the running state, controlling the sliding assembly to slide to a second position, and resetting the preset zone bit.
In this embodiment, when the user manually pushes the sliding assembly to slide to the first position and the sliding distance is greater than the preset calibration value, the hall element outputs an interrupt signal to the elastic frame prompting device; when the pop-up frame prompting device receives an interrupt signal output by the Hall element, the sliding assembly can be controlled to continuously slide to the first position, and the preset mark position is set. If the sliding assembly is clamped in the process of sliding to the first position, the frame popping prompt device can circularly judge whether the camera is in the running state, if the camera is in the running state, the sliding assembly is controlled to slide to the first position, the preset flag bit is reset, and if the sliding assembly does not reach the first position when the fourth time threshold is reached, a user is prompted to manually push the sliding assembly to the first position or the second position.
In this embodiment, when the sliding component is blocked, the preset flag bit is always in the set state, and therefore, whether the sliding component is blocked or not can be judged through the set time length of the preset flag bit.
Referring to fig. 9, the present invention provides a pop-up frame prompting device. The pop-up frame prompting device can be arranged in a processor of the electronic equipment and used for prompting a user to start the sliding assembly and controlling the sliding assembly to slide to the second position when the sliding assembly is manually pushed to return to the first position and the camera is in a running state.
The pop-up prompting device 40 may include: a decision module 44, a determination module 46, and a prompt module 48.
The judging module 44 is configured to judge whether the sliding assembly is in a preset state; the preset state is that a mark position is preset, and the sliding assembly is located at a first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received;
a determining module 46, configured to determine whether the camera is in a running state when the sliding assembly is in a preset state;
and the prompting module 48 is used for displaying a popup box to prompt a user to start the sliding component when the camera is in the running state.
In this embodiment, the specific execution process of each module may refer to the embodiments shown in fig. 5 to 8, and will not be described in detail here.
The computer readable storage medium of the embodiment of the present invention includes a computer program used in conjunction with the electronic device 100, and when the computer program is executed by a processor, the computer program implements the pop-up box prompting method of any one of the above embodiments.
For example, the computer program may be executable by a processor to perform a pop box prompt method as described in the following steps:
judging whether the sliding assembly is in a preset state or not; the preset state is that a mark position is preset, and the sliding assembly is located at a first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received;
when the sliding assembly is in a preset state, determining whether a camera is in a running state;
and when the camera is in a running state, displaying a popup frame and prompting a user to start the sliding assembly.
In the description herein, references to the terms "one embodiment," "certain embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims (11)
1. A pop frame prompting method is applied to electronic equipment, and the electronic equipment comprises the following steps: the sliding assembly is used for sliding between a first position where the sliding assembly is contained in the body and a second position where the sliding assembly is exposed out of the body; the detection assembly comprises a magnetic field generating element and a Hall element, the magnetic field generating element and the Hall element are respectively fixed on the body and the sliding assembly, a camera is arranged on the sliding assembly, and the pop-up frame prompting method comprises the following steps:
judging whether the sliding assembly is in a preset state or not under the manual pushing of a user; the preset state is that a mark position is preset, and the sliding assembly is located at a first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received; the interrupt signal is a signal when the sliding distance of the sliding assembly under the manual pushing of a user is greater than a preset calibration value;
when the sliding assembly is in a preset state, determining whether a camera is in a running state;
and when the camera is in a running state, displaying a popup frame and prompting a user to start the sliding assembly.
2. The method of claim 1, wherein displaying a pop-up box prompting a user to activate the sliding assembly further comprises:
and clearing the preset flag bit.
3. The method of claim 1, wherein displaying a pop-up box prompting a user to activate the sliding assembly further comprises:
if a starting request is received, controlling the sliding assembly to slide from the first position to the second position, and stopping displaying the bullet frame;
and if a cancel request is received, stopping displaying the bullet frame.
4. The method of claim 1, wherein displaying a pop-up box prompting a user to activate the sliding assembly further comprises:
if the starting request and the canceling request are not received, determining whether the camera is in a running state in real time;
and if the camera is not in the running state, or the time that the camera is in the background running state exceeds a first time threshold, stopping displaying the pop-up frame.
5. The method of claim 1, wherein displaying a pop-up box prompting a user to activate the sliding assembly further comprises:
if the starting request and the canceling request are not received, determining whether a display screen of the electronic equipment is in a screen-off state, and determining whether the sliding assembly leaves a first position;
and if the time that the display screen is in the screen-off state exceeds a second time threshold value, or the sliding assembly leaves the first position, stopping displaying the elastic frame.
6. The method of claim 1, further comprising:
acquiring the setting time length of a preset flag bit;
if the setting time length is larger than a third time threshold and the sliding assembly is not located at the first position within the setting time length, determining whether the camera is in a running state;
if the camera is not in the running state, controlling the sliding assembly to slide to a first position, and resetting a preset flag bit;
and if the camera is in a running state, controlling the sliding assembly to slide to a second position, and resetting a preset flag bit.
7. The utility model provides a play frame suggestion device which characterized in that is applied to electronic equipment, electronic equipment includes: the sliding assembly is used for sliding between a first position where the sliding assembly is contained in the body and a second position where the sliding assembly is exposed out of the body; the detection assembly comprises a magnetic field generating element and a Hall element, the magnetic field generating element and the Hall element are respectively fixed on the body and the sliding assembly, a camera is arranged on the sliding assembly, and the elastic frame prompting device comprises:
the judging module is used for judging whether the sliding assembly is in a preset state or not under the manual pushing of a user; the preset state is that a mark position is preset, and the sliding assembly is located at a first position; presetting a flag bit to indicate that an interrupt signal output by the Hall element is received; the interrupt signal is a signal when the sliding distance of the sliding assembly under the manual pushing of a user is greater than a preset calibration value;
the determining module is used for determining whether the camera is in a running state or not when the sliding assembly is in a preset state;
and the prompting module is used for displaying a popup box and prompting a user to start the sliding assembly when the camera is in the running state.
8. An electronic device, comprising: the sliding assembly is used for sliding between a first position where the sliding assembly is contained in the body and a second position where the sliding assembly is exposed out of the body; the detection assembly comprises a magnetic field generating element and a Hall element, the magnetic field generating element and the Hall element are respectively fixed on the body and the sliding assembly, and a camera is arranged on the sliding assembly;
the electronic device further includes: the electronic device comprises a memory, a processor electrically connected with the sliding component and the detection component, and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the program, the electronic device realizes the pop-up box prompt method according to any one of claims 1 to 6.
9. The electronic device of claim 8, wherein the sliding assembly comprises: the bearing piece, the threaded hole arranged in the middle of the bearing piece and the rotating screw rod matched with the threaded hole are arranged on the bearing piece;
the sliding assembly is accommodated in the sliding groove when in a first position; the sliding groove comprises a groove which is arranged opposite to the threaded hole and is positioned at the bottom of the sliding groove; and a driving device is arranged in the groove and connected with the rotating screw rod, and the sliding of the sliding assembly is realized by driving the rotating screw rod to rotate.
10. The electronic device of claim 8, wherein the hall element is plural in number.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a pop-up box prompting method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810602873.8A CN108900666B (en) | 2018-06-12 | 2018-06-12 | Elastic frame prompting method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810602873.8A CN108900666B (en) | 2018-06-12 | 2018-06-12 | Elastic frame prompting method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108900666A CN108900666A (en) | 2018-11-27 |
CN108900666B true CN108900666B (en) | 2020-08-21 |
Family
ID=64344655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810602873.8A Expired - Fee Related CN108900666B (en) | 2018-06-12 | 2018-06-12 | Elastic frame prompting method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108900666B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112328082B (en) * | 2020-11-10 | 2022-12-20 | 昆山国显光电有限公司 | Slip terminal and correction method for displacement detection of slip terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007033570A (en) * | 2005-07-22 | 2007-02-08 | Casio Hitachi Mobile Communications Co Ltd | Imaging device and lens drive control method |
JP5722265B2 (en) * | 2012-03-28 | 2015-05-20 | オリンパス株式会社 | Movable member control device and imaging device including the same |
CN104035931B (en) * | 2013-03-05 | 2017-07-21 | 联想(北京)有限公司 | A kind of reminding method, system and electronic equipment |
CN107819907B (en) * | 2017-11-14 | 2019-12-27 | 维沃移动通信有限公司 | Camera control method and mobile terminal |
-
2018
- 2018-06-12 CN CN201810602873.8A patent/CN108900666B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN108900666A (en) | 2018-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108829461B (en) | Camera starting control method and device and electronic equipment | |
CN108833623B (en) | Sliding control method and device of sliding assembly and electronic device | |
CN108833697B (en) | Control method of sliding assembly, control assembly, electronic device and storage medium | |
JP3987976B2 (en) | Backdoor automatic opening and closing device | |
CN108900666B (en) | Elastic frame prompting method and device and electronic equipment | |
CN108833699B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
US10337230B2 (en) | Control device for opening and closing bodies | |
CN108897375B (en) | Control method and device for sliding mechanism, electronic device and storage medium | |
CN108900663B (en) | Sliding control method and device of sliding assembly and electronic device | |
CN110602399A (en) | Processing method and device for lifting obstacle of camera and mobile terminal | |
CN110312001B (en) | Position detection method and detection assembly of sliding-out structure and electronic device | |
US20080052996A1 (en) | Movable body control apparatus | |
EP2378164A1 (en) | Shift control device | |
CN109151106B (en) | Sliding control method and device for sliding assembly, electronic device and storage medium | |
CN108924284B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
CN109151107B (en) | Sliding control method and device for sliding assembly, electronic device and storage medium | |
JP2006186961A5 (en) | ||
CN108924342B (en) | Mobile terminal, control method thereof, control assembly and storage medium | |
CN108924286B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
EP3804909A1 (en) | Staple removing device | |
JP4510409B2 (en) | Window glass clamping presence / absence detection device | |
CN110311996B (en) | Control method of sliding-out assembly, detection assembly and electronic device | |
US7004397B2 (en) | Electronic apparatus, power control of electronic apparatus and moving method of front panel of electronic apparatus | |
CN109005280B (en) | Manual-to-automatic setting method and device for sliding assembly and electronic equipment | |
EP1975888A3 (en) | Banknote identification apparatus |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200821 |