CN110417966B - Terminal control method, device, mobile terminal and storage medium - Google Patents

Terminal control method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN110417966B
CN110417966B CN201910706066.5A CN201910706066A CN110417966B CN 110417966 B CN110417966 B CN 110417966B CN 201910706066 A CN201910706066 A CN 201910706066A CN 110417966 B CN110417966 B CN 110417966B
Authority
CN
China
Prior art keywords
camera assembly
terminal body
mobile terminal
terminal
electric quantity
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
Application number
CN201910706066.5A
Other languages
Chinese (zh)
Other versions
CN110417966A (en
Inventor
周千里
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201910706066.5A priority Critical patent/CN110417966B/en
Publication of CN110417966A publication Critical patent/CN110417966A/en
Application granted granted Critical
Publication of CN110417966B publication Critical patent/CN110417966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The application discloses a terminal control method, a terminal control device, a mobile terminal and a storage medium, and relates to the technical field of mobile terminals. The terminal control method is applied to a mobile terminal, the mobile terminal comprises a terminal body and a camera assembly, and the camera assembly is arranged in the terminal body, can move relative to the terminal body and is exposed out of the terminal body. The method comprises the following steps: when the camera assembly is in a state of being moved out of the terminal body, the residual electric quantity of the mobile terminal is monitored, and when the residual electric quantity is reduced to an electric quantity threshold value, the camera assembly is controlled to be withdrawn into the terminal body. This application is through when the camera subassembly is in the state of following this internal shifting out of terminal, and it is internal to withdraw the terminal according to mobile terminal's residual capacity control camera subassembly to the camera subassembly is withdrawed to intelligence, and protection camera subassembly avoids damaging.

Description

Terminal control method, device, mobile terminal and storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a terminal control method and apparatus, a mobile terminal, and a storage medium.
Background
With the development of science and technology, mobile terminals are widely used and have more functions, and the mobile terminals become one of the necessary electronic products in daily life. However, the screen occupation ratio of the display screen of the mobile terminal is low at present, so that the display effect is poor, and the user experience is poor.
Disclosure of Invention
In view of the above problems, the present application provides a terminal control method, apparatus, mobile terminal and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a terminal control method, which is applied to a mobile terminal, where the mobile terminal includes a terminal body and a camera assembly, and the camera assembly is disposed in the terminal body, and is capable of moving relative to the terminal body and being exposed from the terminal body, and the method includes: when the camera assembly is in a state of being moved out of the terminal body, monitoring the residual electric quantity of the mobile terminal; and when the residual electric quantity is reduced to an electric quantity threshold value, controlling the camera assembly to retract into the terminal body.
In a second aspect, an embodiment of the present application provides a terminal control device, which is applied to a mobile terminal, where the mobile terminal includes a terminal body and a camera assembly, the camera assembly is disposed in the terminal body, and can move relative to the terminal body and be exposed from the terminal body, and the device includes: the electric quantity monitoring module is used for monitoring the residual electric quantity of the mobile terminal when the camera assembly is in a state of being moved out of the terminal body; and the mobile control module is used for controlling the camera assembly to withdraw into the terminal body when the residual electric quantity is reduced to the electric quantity threshold value.
In a third aspect, embodiments of the present application provide a mobile terminal, including a terminal body and a camera assembly, where the terminal body includes one or more processors and a memory, the camera assembly and the memory are coupled to the processors, and the memory stores instructions that, when executed by the processors, the processors perform the above-mentioned method.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
The terminal control method and device, the mobile terminal and the storage medium provided by the embodiment of the application are applied to the mobile terminal, the mobile terminal comprises a terminal body and a camera assembly, and the camera assembly is arranged in the terminal body, can move relative to the terminal body and is exposed out of the terminal body. When the camera assembly is in the state of shifting out from the terminal body, the residual capacity of the mobile terminal is monitored, when the residual capacity is reduced to the capacity threshold value, the camera assembly is controlled to withdraw the terminal body, so that when the camera assembly is in the state of shifting out from the terminal body, the camera assembly is controlled to withdraw the terminal body according to the residual capacity of the mobile terminal, the camera assembly is withdrawn intelligently, and the camera assembly is protected from being damaged.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 illustrates a schematic structural diagram of a first mobile terminal according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a first mobile terminal according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a second mobile terminal provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a third mobile terminal provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a fourth mobile terminal provided in an embodiment of the present application;
fig. 6 shows a schematic structural diagram of a fifth mobile terminal provided in an embodiment of the present application;
fig. 7 is a flowchart illustrating a terminal control method according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a terminal control method according to another embodiment of the present application;
fig. 9 is a flowchart illustrating a terminal control method according to still another embodiment of the present application;
fig. 10 is a flowchart illustrating a terminal control method according to another embodiment of the present application;
fig. 11 is a flowchart illustrating a terminal control method according to still another embodiment of the present application;
fig. 12 is a flowchart illustrating step S540 of the terminal control method illustrated in fig. 11 of the present application;
fig. 13 shows a block diagram of a terminal control device provided in an embodiment of the present application;
fig. 14 is a block diagram of a mobile terminal according to an embodiment of the present application for executing a terminal control method according to an embodiment of the present application;
fig. 15 shows a storage unit of an embodiment of the present application for storing or carrying a program code implementing a terminal control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
The display screen generally plays a role in a mobile terminal such as a mobile phone, a tablet computer, and a wearable electronic device to display contents such as text, pictures, icons, or videos. With the increasing requirements of users on the definition and the fineness of displayed contents, more mobile terminals adopt touch display screens with larger sizes to achieve the display effect of a full screen. However, in the process of setting a display screen with a larger size, it is found that functional devices such as a front camera, a proximity optical sensor, a projection component, and a receiver, which are arranged at the front end of the mobile terminal, affect the area that the touch display screen can extend to.
Generally, a mobile terminal includes a front panel, a rear cover, and a bezel. The front panel includes a forehead area, a middle screen area and a lower key area. Generally, the forehead area is provided with a sound outlet of a receiver and functional devices such as a front camera, the middle screen area is provided with a touch display screen, and the lower key area is provided with one to three physical keys. With the development of the technology, the lower key area is gradually cancelled, and the physical keys originally arranged in the lower key area are replaced by the virtual keys in the touch display screen.
And functional devices such as a receiver sound outlet hole and a front camera arranged in the forehead area are important for the functional support of the mobile phone and are not easy to cancel, so that the display area of the touch display screen is expanded to cover the forehead area with great difficulty. After a series of researches, the inventor finds that functional devices such as a projection component, a telephone receiver, a camera and a structured light component can be hidden and arranged inside a terminal main body of a mobile terminal or on the back of the terminal main body, and a sliding component or a rotating component is configured to be exposed from the top of the terminal main body, so that the original upper forehead area is expanded into a displayable area of a touch display screen, the area of the displayable area is increased, and the effect of a full-screen is achieved.
For example, referring to fig. 1 and 2, fig. 1 illustrates a schematic structural diagram of a camera assembly of a mobile terminal 100 in an initial position, which can be used in a terminal control method according to an embodiment of the present application, and fig. 2 illustrates a schematic structural diagram of a camera assembly of a mobile terminal 100 in a raised position, which can be used in a terminal control method according to an embodiment of the present application. The mobile terminal 100 includes a terminal body 130 and a camera assembly 140, where the camera assembly 140 at least includes a base, a receiver and a camera, and certainly, the camera assembly 140 may further include functional devices such as a structured light assembly and a light supplement device, which are not exhaustive here.
As a first way, please refer to fig. 1 and 2, a sliding slot is disposed at the back of the terminal body 130, and the camera assembly 140 is hidden in the sliding slot and slidably exposed from the top of the terminal body 130. Specifically, the size and shape of the camera assembly 140 are matched with the sliding slot, when the camera assembly 140 is located at the initial position, it is just hidden and arranged in the sliding slot to form a whole with the terminal body, at this time, the functional devices such as the front camera, the receiver and the like are hidden between the sliding slot and the substrate, when the camera assembly 140 slides along the sliding slot to the top direction of the terminal body 130, the functional devices such as the receiver, the front camera and the like can be exposed from the top of the terminal body 130, wherein the functional devices such as the rear camera, the flash and the like can be arranged on one side of the substrate departing from the front camera, or on the rear case, which is not limited herein.
Furthermore, as a second mode, the camera assembly 140 may be disposed as shown in fig. 1 and fig. 2, or may be disposed as shown in fig. 3, and it is understood that the disposed width of the camera assembly 140 may be the same as the width of the terminal body 130, or may be smaller than the width of the terminal body 130, wherein when the disposed width of the camera assembly 140 is smaller than the width of the terminal body 130, the camera assembly 140 may be disposed at a middle position of the top of the terminal body 130, or may be disposed at a position close to an edge of the top of the terminal body 130, which is not limited herein.
As a third mode, referring to fig. 4, the structure of the mobile terminal shown in fig. 4 is different from the structure of the mobile terminal shown in fig. 1 and 2 in that the camera assembly 140 shown in fig. 4 is slidably connected to the back of the terminal body 130 and protrudes from the back of the terminal body 130.
As a fourth mode, referring to fig. 5, the structure of the mobile terminal shown in fig. 5 is different from the structure of the mobile terminal shown in fig. 1 and 2 in that a sliding slot is disposed at the top of the terminal body 130 shown in fig. 5, and the camera assembly 140 is slidably connected to the sliding slot at the top of the terminal body 130, it can be understood that the size and shape of the camera assembly 140 are matched with the sliding slot, when the camera assembly 140 is located at the initial position, it is just hidden and disposed in the sliding slot to form a whole with the terminal body 130, at this time, the functional devices such as the front camera and the receiver are hidden and disposed at one side of the sliding slot and the substrate, and the functional devices such as the rear camera can be hidden and disposed at one side of the sliding slot and the substrate away from the front camera, and when the camera assembly 140 slides along the sliding slot towards the top of the terminal body 130, the front camera, the rear camera and the camera can be hidden and disposed at the other side of the substrate, Functional devices such as a receiver and a rear camera are exposed from the top of the terminal body 130.
As a fifth way, referring to fig. 6, the structure of the mobile terminal shown in fig. 6 is different from that of the mobile terminal shown in fig. 1 and 2 in that the camera assembly 140 shown in fig. 6 can be rotated with respect to the terminal body 130 to expose the camera assembly hidden at the back of the terminal body from the top of the terminal body 130 by rotation.
The inventor finds that the existing camera assembly of the mobile terminal is automatically ejected and retracted under the control of an automatic motor, if the battery of the mobile terminal is exhausted and the mobile terminal is automatically powered off, and the camera assembly is in a moving-out state, the camera assembly cannot be retracted for a long time, if the camera assembly is retracted by using brute force pressing, a mechanical device of the mobile terminal may be damaged, and if the camera assembly is not retracted by using brute force pressing, the camera assembly is always kept in the moving-out state and is easily damaged. In view of the above problems, the inventor has found through long-term research and provides a terminal control method, a device, a mobile terminal and a storage medium provided in the embodiments of the present application, where when a camera assembly is in a state of being removed from a terminal body, the camera assembly is controlled to be withdrawn into the terminal body according to the remaining power of the mobile terminal, so as to intelligently withdraw the camera assembly, protect the camera assembly from being damaged
And is bad. The specific terminal control method is explained in detail in the following embodiments.
Referring to fig. 7, fig. 7 is a flowchart illustrating a terminal control method according to an embodiment of the present application. The terminal control method is used for controlling the camera assembly to be withdrawn into the terminal body according to the residual electric quantity of the mobile terminal when the camera assembly is moved out of the terminal body, so that the camera assembly is withdrawn intelligently, and the camera assembly is protected from being damaged. In a specific embodiment, the terminal control method is applied to the terminal control apparatus 200 shown in fig. 13 and the mobile terminal 100 (fig. 14) configured with the terminal control apparatus 200. The following will describe a specific process of this embodiment by taking a mobile terminal as an example, and it is understood that the mobile terminal applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 7, the mobile terminal includes a terminal body and a camera assembly, the camera assembly is disposed in the terminal body and can move relative to the terminal body and be exposed from the terminal body, and the terminal control method may specifically include the following steps:
step S110: and when the camera assembly is in a state of being moved out of the terminal body, monitoring the residual electric quantity of the mobile terminal.
In some embodiments, a detection may be made as to whether the camera assembly is removed from within the terminal body. Alternatively, the terminal body may be determined as the reference object, and then whether the camera assembly is removed from the terminal body may be detected. It will be appreciated that the movement of the camera assembly relative to the terminal body includes at least one of sliding or rotating, i.e., the camera assembly may be removed from the terminal body by relative sliding or relative rotation.
Specifically, when the camera assembly is slidable relative to the terminal body, a distance sensor may be provided in advance at a position where the terminal body contacts the camera assembly, when a distance value between the terminal body and the camera assembly detected by the distance sensor changes, it is indicated that the camera assembly is sliding relative to the terminal body, when the distance value detected by the distance sensor increases, it is indicated that the camera is ascending toward the top of the terminal body, when the distance value detected by the distance sensor decreases, it is indicated that the camera is descending toward the top of the terminal body, so that it is possible to detect whether the camera assembly moves relative to the terminal body, and it is possible to detect whether the camera assembly moves out of the terminal body based on a specific measurement value of the distance sensor.
Further, when the camera assembly can rotate relative to the terminal body, an angle sensor can be arranged on the camera assembly in advance, when the change of the angle value between the terminal body and the camera assembly detected by the angle sensor is detected, the camera assembly is represented to rotate relative to the terminal body, when the angle value detected by the angle sensor is increased, the camera is represented to rotate towards the top of the terminal body, when the angle value detected by the angle sensor is decreased, the camera is represented to rotate back to the top of the terminal body, so that whether the camera assembly moves relative to the terminal body can be detected, and whether the camera assembly moves out of the terminal body can be detected according to the specific measurement value of the angle sensor.
In some embodiments, the state of the camera assembly can be determined by setting a numerical value corresponding to the state of the camera assembly in the mobile terminal and identifying the numerical value. For example, it is preset that: when the camera assembly is in a state of being moved out of the terminal body, the corresponding numerical value is '1', when the camera assembly is in the state of the terminal body, the corresponding numerical value is '0', and correspondingly, the mobile terminal monitors the state of the camera assembly and updates the corresponding numerical value. It is understood that when the current updated value of the mobile terminal is "1", it may be determined that the camera assembly is in a state of being removed from the terminal body, and when the current updated value of the mobile terminal is "0", it may be determined that the camera assembly is in a state of being in the terminal body.
Of course, in this embodiment, whether the camera assembly is in a state of being removed from the terminal body may also be determined in other more manners, which is not described herein again.
In some embodiments, the remaining power of the mobile terminal may be monitored when the detection result indicates that the camera assembly is in a state of being removed from the terminal body. Specifically, the remaining power of the mobile terminal may be monitored in real time, at preset time intervals, at preset time points, or according to other rules set by a user, without limitation. In some embodiments, the mobile terminal may further preset a reference electric quantity value, wherein when the remaining electric quantity of the mobile terminal is greater than the reference electric quantity value, the remaining electric quantity of the mobile terminal may be monitored at preset time intervals, and when the remaining electric quantity of the mobile terminal is not greater than the reference electric quantity value, the remaining electric quantity of the mobile terminal may be actually monitored.
In this embodiment, the coulometer may be used to monitor the remaining power of the mobile terminal, for example, a detection resistor is disposed at the positive electrode and the negative electrode of the battery of the mobile terminal, and the power consumption and the remaining power of the battery of the mobile terminal may be obtained by monitoring the voltage of the detection resistor, where the higher the voltage is, the more the remaining power is, the lower the voltage is, and the less the remaining power is.
Step S120: and when the residual electric quantity is reduced to an electric quantity threshold value, controlling the camera assembly to retract into the terminal body.
In some embodiments, the mobile terminal is preset and stores a power threshold, and the power threshold is used as a judgment basis for the remaining power of the mobile terminal. Therefore, in this embodiment, after monitoring the remaining power, the mobile terminal may compare the remaining power with the power threshold to determine whether the remaining power is reduced to the power threshold, and it can be understood that when the monitored current remaining power is smaller than the last monitored remaining power and the monitored current remaining power is smaller than or equal to the power threshold, it may be determined that the remaining power is reduced to the power threshold. It can be understood that if the monitored current remaining power is less than or equal to the power threshold, but the monitored current remaining power is greater than the previously monitored remaining power, it may be determined that the remaining power is not satisfied to be reduced to the remaining power.
In this embodiment, when the remaining power of the mobile terminal is reduced to the power threshold, it may be considered that the mobile terminal is in a state of insufficient power, that is, it may indicate that the mobile terminal may be automatically powered off due to insufficient power, and therefore, the camera module may be controlled to be withdrawn into the terminal body, so as to ensure that the camera module may be automatically withdrawn into the terminal body, and avoid that the camera module still is in a state of being moved out from the terminal body after the mobile terminal is automatically powered off, and thus the camera module is damaged.
In this embodiment, when the determination result indicates that the remaining power is not reduced to the power threshold, it may be determined that the mobile terminal is in a state with sufficient power, that is, it indicates that the mobile terminal is not automatically powered off due to insufficient power within a certain time, and therefore, the camera assembly may be kept in a state of being continuously moved out of the terminal body.
According to the terminal control method provided by the embodiment of the application, when the camera assembly is in the state of moving out of the terminal body, the residual capacity of the mobile terminal is monitored, when the residual capacity is reduced to the capacity threshold value, the camera assembly is controlled to withdraw the terminal body, so that when the camera assembly is in the state of moving out of the terminal body, the camera assembly is controlled to withdraw the terminal body according to the residual capacity of the mobile terminal, the camera assembly is withdrawn intelligently, and the camera assembly is protected from being damaged.
Referring to fig. 8, fig. 8 is a flowchart illustrating a terminal control method according to another embodiment of the present application. The method is applied to the mobile terminal, and will be described in detail with reference to a flow shown in fig. 8, where the mobile terminal includes a terminal body and a camera assembly, the camera assembly is disposed in the terminal body and can move relative to the terminal body and be exposed from the terminal body, and the terminal control method may specifically include the following steps:
step S210: and when the camera assembly is in a state of being moved out of the terminal body, monitoring the residual electric quantity of the mobile terminal.
For detailed description of step S210, please refer to step S110, which is not described herein again.
Step S220: and when the residual electric quantity is reduced to an electric quantity threshold value, judging whether an application program calling the camera assembly runs in the foreground of the mobile terminal.
In some embodiments, when the remaining power of the mobile terminal is reduced to the power threshold, the application calling the camera assembly may be acquired, and whether the application calling the camera assembly runs in the foreground of the mobile terminal may be determined.
In this embodiment, the mobile terminal may determine whether the application is running in the foreground of the mobile terminal. For example, whether the application program runs in the foreground of the mobile terminal can be judged through Running Task, Running Process, activity lifecycle calls, use states Manager, Android self-contained barrier-free function, Process information stored in a directory in a Linux system kernel, and the like of the mobile terminal.
The method includes the steps that whether an application program runs in the foreground of the mobile terminal or not is judged through the Running Task of the mobile terminal, when the application program runs in the foreground, the application program can be located at the stack top of the Running Task, so that a Task process at the stack top of the Running Task can be taken out, whether the Task process is the same as the package name of the application program or not can be checked, it can be understood that when the package name of the Task process at the stack top is the same as the package name of the application program, the application program can be represented to run in the foreground of the mobile terminal, and when the package name of the Task process at the stack top is different from the package name of the application program, the application program can be represented to not run in the foreground of the mobile terminal.
Step S230: and when the application program calling the camera assembly does not run in the foreground of the mobile terminal, controlling the camera assembly to be retracted into the terminal body.
In some embodiments, when the determination result represents that the application program calling the camera assembly is not running in the foreground of the mobile terminal, it may be considered that the user is not currently using the camera assembly, or the user is not concerned about the application program currently, and the camera assembly may be controlled to be retracted into the terminal body, so as to avoid that the camera assembly is still in a state of being moved out of the terminal body and cannot be automatically retracted after the mobile terminal is automatically powered off, thereby causing damage to the camera assembly.
Step S240: when an application program calling the camera assembly runs in the foreground of the mobile terminal, prompt information is output, and the prompt information is used for prompting a user to select whether the camera assembly is retracted into the terminal body.
In some embodiments, when the determination result represents that the application program calling the camera assembly runs in the foreground of the mobile terminal, it may be considered that the user is currently using the camera assembly, or the user is currently paying attention to the application program, and then a prompt message may be output to prompt the user to select whether to withdraw the camera assembly into the terminal body. The prompt information may be output in a text form, may be output in a picture form, may be output in an audio form, and the like, which is not limited herein.
Step S250: and when receiving instruction information indicating that the camera assembly is retracted into the terminal body, controlling the camera assembly to retract into the terminal body.
In this embodiment, the mobile terminal outputs a prompt message, and accordingly, after receiving the prompt message, a user corresponding to the mobile terminal may return instruction information to the mobile terminal based on the prompt message, so as to instruct the mobile terminal to perform a corresponding operation. In some embodiments, when the mobile terminal receives instruction information which is sent by a user based on the prompt information and indicates that the camera assembly is retracted into the terminal body, the instruction information may be responded to control the camera assembly to be retracted into the terminal body, so as to avoid that the camera assembly still is in a state of being moved out of the terminal body and cannot be automatically retracted after the mobile terminal is automatically powered off, thereby causing damage to the camera assembly.
Step S260: when instruction information indicating that the camera assembly is not retracted into the terminal body is received, the camera assembly is kept in a state of being moved out of the terminal body, and an application program running in a background of the mobile terminal is closed.
In some embodiments, when the mobile terminal receives instruction information which is sent by the user based on the prompt information and indicates that the camera assembly is not retracted into the terminal body, the mobile terminal can respond to the instruction information to keep the camera assembly in a state of being moved out of the terminal body, so that the user can continue to use the camera assembly, and the influence on normal use of the user caused by automatic retraction of the camera assembly into the terminal body is avoided.
In addition, in this embodiment, when the camera assembly is kept in the state of being continuously removed from the terminal body, the application program running in the background of the mobile terminal is also closed at the same time, so that the consumption of the application program running in the background on the electric quantity of the mobile terminal is reduced, the service life of the mobile terminal under the residual electric quantity is prolonged, and the user experience is improved.
In another embodiment of the present application, a terminal control method is provided, where when a camera assembly is in a state of being removed from a terminal body, a remaining power of a mobile terminal is monitored, when the remaining power is reduced to a power threshold, whether an application program calling the camera assembly is running on a foreground of the mobile terminal is determined, when the application program calling the camera assembly is not running on the foreground of the mobile terminal, the camera assembly is controlled to be withdrawn into the terminal body, when the application program calling the camera assembly is running on the foreground of the mobile terminal, a prompt message is output, when a command message instructing to withdraw the camera assembly into the mobile terminal body is received, the camera assembly is controlled to be withdrawn into the terminal body, when the command message instructing not to withdraw the camera assembly into the terminal body is received, the camera assembly is maintained in a state of being removed from the terminal body, and closing the application program running in the background of the mobile terminal. Compared with the terminal control method shown in fig. 7, in this embodiment, the camera assembly is directly collected into the terminal body when the remaining power is reduced to the power threshold and the application program calling the camera assembly runs in the background, or when the remaining power is reduced to the power threshold and the application program calling the camera assembly runs in the foreground, the prompt information is output for the user to select whether to collect the camera assembly into the terminal body, and the application program running in the background of the mobile terminal is closed when the user selects not to collect the camera assembly into the terminal body, so as to reduce the power consumption of the mobile terminal.
Referring to fig. 9, fig. 9 is a flowchart illustrating a terminal control method according to still another embodiment of the present application. The method is applied to the mobile terminal, and will be described in detail with reference to a flow shown in fig. 9, where the mobile terminal includes a terminal body and a camera assembly, the camera assembly is disposed in the terminal body and can move relative to the terminal body and be exposed from the terminal body, and in addition, in this embodiment, the circuit threshold is an electric quantity value that satisfies an automatic shutdown of the mobile terminal, and the terminal control method may specifically include the following steps:
step S310: and when the camera assembly is in a state of being moved out of the terminal body, monitoring the residual electric quantity of the mobile terminal.
Step S320: and when the residual electric quantity is reduced to an electric quantity threshold value, controlling the camera assembly to retract into the terminal body.
For the detailed description of steps S310 to S320, please refer to steps S110 to S120, which are not described herein again.
Step S330: and when the camera assembly is retracted into the terminal body, controlling the mobile terminal to automatically shut down.
In some embodiments, the power threshold is a power value that satisfies an automatic power-off of the mobile terminal, that is, the mobile terminal automatically powers off when the remaining power of the mobile terminal decreases to the power threshold. In this implementation, when the remaining capacity reduces to the electric quantity threshold value, can control the camera subassembly and withdraw in the terminal body, when confirming that this camera subassembly has retrieved the terminal body in, control mobile terminal automatic shutdown to avoid after mobile terminal automatic shutdown, the camera subassembly still is in the state of following the internal shift out of terminal and can't withdraw automatically, thereby causes the damage to the camera subassembly.
Step S340: and when the mobile terminal is connected with the charging equipment, the camera assembly is controlled to move out of the terminal body.
In some embodiments, after the camera assembly withdraws the terminal body, if it is detected that the mobile terminal is connected with the charging device, the residual capacity of the representation mobile terminal is changed from less to more, that is, the residual capacity of the representation mobile terminal is changed from insufficient capacity to sufficient capacity, so that the camera assembly can be controlled to automatically move out of the terminal body again, an application scene of the camera assembly is called before is reproduced, the influence of the camera assembly on the use of a user in the terminal body is automatically withdrawn, and the user experience is improved.
According to the terminal control method provided by the embodiment of the application, when the camera assembly is in a state of being moved out of the terminal body, the residual electric quantity of the mobile terminal is monitored, when the residual electric quantity is reduced to the electric quantity threshold value, the camera assembly is controlled to be withdrawn into the terminal body, when the camera assembly is withdrawn into the terminal body, the mobile terminal is controlled to be automatically powered off, and when the mobile terminal is connected with the charging equipment, the camera assembly is controlled to be moved out of the terminal body. Compared with the terminal control method shown in fig. 7, in this embodiment, the mobile terminal is further controlled to automatically shut down when the camera assembly is retracted into the terminal body, so that the camera assembly is protected from being damaged, and in addition, the camera assembly is automatically controlled to move out of the terminal body when the mobile terminal is connected with the charging device, so that a scene for calling the camera assembly is reproduced, and user experience is improved.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating a terminal control method according to another embodiment of the present application. The method is applied to the mobile terminal, and will be described in detail with reference to a flow shown in fig. 10, where the mobile terminal includes a terminal body and a camera assembly, the camera assembly is disposed in the terminal body and can move relative to the terminal body and be exposed from the terminal body, and the terminal control method may specifically include the following steps:
step S410: and when the camera assembly is in a state of being moved out of the terminal body, monitoring the residual electric quantity of the mobile terminal.
For detailed description of step S410, please refer to step S110, which is not described herein again.
Step S420: and when the residual electric quantity is reduced to an electric quantity threshold value, acquiring the classification to which the application program calling the camera assembly belongs.
In some embodiments, when the remaining power of the mobile terminal decreases to the power threshold, an application calling the camera assembly may be acquired, and the category to which the application belongs may be acquired. Such as a capture class, a video class, a scan class, etc.
Step S430: and judging whether the classification to which the application program calling the camera assembly belongs meets a preset classification.
In some embodiments, the mobile terminal is preset and stores a preset classification, and the preset classification is used as a judgment basis for the classification to which the application program calling the camera assembly belongs. Therefore, in this embodiment, after obtaining the category to which the application program calling the camera assembly belongs, the category to which the application program calling the camera assembly belongs may be compared with the preset category to determine whether the category to which the application program calling the camera assembly belongs satisfies the preset category. Specifically, the number of the preset classifications may be multiple, after the mobile terminal obtains the classification to which the application program calling the camera assembly belongs, the mobile terminal may compare the classification to which the application program calling the camera assembly belongs with the multiple preset classifications one by one to judge whether the multiple preset classifications include a classification consistent with the classification to which the application program calling the camera assembly belongs, if so, the classification to which the application program representing the camera assembly belongs satisfies the preset classifications, and conversely, if not, the classification to which the application program representing the camera assembly belongs does not satisfy the preset classifications.
In this embodiment, the preset classification may at least include a photo class.
Step S440: and when the classification to which the application program calling the camera assembly belongs meets the preset classification, controlling the camera assembly to be retracted into the terminal body.
In some embodiments, when the category to which the application calling the camera assembly belongs satisfies a preset category, for example, when the category to which the application calling the camera assembly belongs is a photographing category, such as when the application calling the camera assembly is a camera, the camera assembly may be controlled to be retracted into the terminal body.
In some embodiments, when the classification to which the application calling the camera assembly belongs does not meet the preset classification, for example, when the classification to which the application calling the camera assembly belongs is a scan class or a video class, such as WeChat or Payment treasure, the camera assembly may be controlled to continue to maintain the state of being removed from the terminal body.
In another embodiment of the present application, a terminal control method includes monitoring a remaining power of a mobile terminal when a camera assembly is in a state of being moved out of a terminal body, obtaining a category to which an application program calling the camera assembly belongs when the remaining power is reduced to a power threshold, determining whether the category to which the application program calling the camera assembly belongs satisfies a preset category, and controlling the camera assembly to be retracted into the terminal body when the category to which the application program calling the camera assembly belongs satisfies the preset category. Compared with the terminal control method shown in fig. 7, the present embodiment further controls the moving out and retracting back of the camera assembly according to the category to which the application program calling the camera assembly belongs, so as to improve the diversity of control.
Referring to fig. 11, fig. 11 is a schematic flowchart illustrating a terminal control method according to yet another embodiment of the present application. The method is applied to the mobile terminal, and will be described in detail with reference to a flow shown in fig. 11, where the mobile terminal includes a terminal body and a camera assembly, the camera assembly is disposed in the terminal body and can move relative to the terminal body and be exposed from the terminal body, and the terminal control method may specifically include the following steps:
step S510: and when the camera assembly is in a state of being moved out of the terminal body, monitoring the residual electric quantity of the mobile terminal.
For detailed description of step S510, please refer to step S110, which is not described herein again.
Step S520: and when the residual electric quantity is reduced to an electric quantity threshold value, acquiring all application programs currently operated by the mobile terminal.
In some embodiments, when the remaining power of the mobile terminal decreases to the power threshold, all applications currently running on the mobile terminal may be acquired. It can be understood that the application running on the mobile terminal may include an application running in a foreground of the mobile terminal, an application running in a background of the mobile terminal, an application running in a foreground and a background of the mobile terminal in a switching manner, and the like, and therefore, in this embodiment, acquiring all the applications currently running on the mobile terminal includes: the method comprises the steps of currently running an application program in the foreground of the mobile terminal, currently running an application program in the background of the mobile terminal and currently switching the running application programs in the foreground and the background of the mobile terminal.
Step S530: and acquiring the power consumption speeds of all the currently running application programs.
In this embodiment, after acquiring all currently running application programs, the mobile terminal may acquire power consumption speeds of all currently running application programs. As one mode, after acquiring all currently running application programs, the mobile terminal may acquire the power consumption speed of each application program in all application programs, and then add the power consumption speeds of each application program to acquire the power consumption speeds of all currently running application programs. The power consumption rate can be used to represent the power consumption of all the applications within a preset time period, for example, the power consumption per minute, the power consumption per hour, and the like.
Step S540: and controlling the camera assembly to be withdrawn into the terminal body at a preset time based on the power consumption speed.
In some embodiments, after acquiring the power consumption rates of all running applications, the mobile terminal may control the camera assembly to be retracted into the terminal body at a predetermined time based on the power consumption rates. In this embodiment, a corresponding relationship may be set between the power consumption speed and the preset time, where the faster the power consumption speed is, the earlier the corresponding time is, the slower the power consumption speed is, and the later the corresponding time is, that is, if the power consumption speed of all the applications run by the mobile terminal is faster, the camera assembly is controlled to be retracted into the terminal body earlier, and if the power consumption speed of all the applications run by the mobile terminal is slower, the camera assembly is controlled to be retracted into the terminal body later.
Referring to fig. 12, fig. 12 is a flowchart illustrating a step S540 of the terminal control method illustrated in fig. 11 according to the present application. As will be explained in detail with respect to the flow shown in fig. 12, the method may specifically include the following steps:
step S541: and judging whether the power consumption speed is greater than a preset power consumption speed.
In some embodiments, the mobile terminal may preset and store a preset power consumption speed, which is used as a basis for determining the power consumption speed of all applications running on the mobile terminal. Therefore, in this embodiment, after the power consumption speeds of all the applications run by the mobile terminal are obtained, the power consumption speeds of all the applications run by the mobile terminal may be compared with the preset power consumption speed to determine whether the power consumption speeds of all the applications run by the mobile terminal are greater than the preset power consumption speed.
Step S542: and when the power consumption speed is greater than the preset power consumption speed, controlling the camera assembly to be withdrawn into the terminal body at the first time.
Step S543: and when the power consumption speed is not greater than the preset power consumption speed, controlling the camera assembly to retract into the terminal body at a second time, wherein the first time is earlier than the second time.
In some embodiments, when the power consumption speed of all the applications running on the mobile terminal is greater than the preset power consumption speed, the camera assembly is controlled to be withdrawn into the terminal body at a first time, and when the power consumption speed of all the applications running on the mobile terminal is not greater than the preset power consumption speed, the camera assembly is controlled to be withdrawn into the terminal body at a second time, wherein the first time is earlier than the second time. That is, the faster the power consumption speed of all the applications running on the mobile terminal is, the earlier the camera assembly is retracted into the terminal body, which is not described herein again.
In another embodiment of the terminal control method provided by the present application, when the camera assembly is in a state of being moved out of the terminal body, the remaining power of the mobile terminal is monitored, when the remaining power is reduced to the power threshold, all application programs currently running on the mobile terminal are obtained, the power consumption speeds of all application programs currently running are obtained, and the camera assembly is controlled to be retracted into the terminal body in a predetermined time based on the power consumption speeds. Compared with the terminal control method shown in fig. 7, in this embodiment, the moving-out and retracting of the camera assembly are also controlled according to the power consumption speed of the application program currently running in the mobile terminal, so as to improve the accuracy of the control.
Referring to fig. 13, fig. 13 is a block diagram illustrating a terminal control device 200 according to an embodiment of the present disclosure. The terminal control device 200 is applied to the mobile terminal, and the mobile terminal includes a terminal body and a camera assembly, wherein the camera assembly is disposed in the terminal body, can move relative to the terminal body, and is exposed from the terminal body. As will be explained below with respect to the block diagram shown in fig. 13, the terminal control apparatus 200 includes: power monitoring module 210 and mobile control module 220, wherein:
and the electric quantity monitoring module 210 is used for monitoring the residual electric quantity of the mobile terminal when the camera assembly is in a state of being moved out of the terminal body.
And the mobile control module 220 is configured to control the camera assembly to retract into the terminal body when the remaining power is reduced to the power threshold. Further, the movement control module 220 includes: the first application program judgment submodule, the first mobile control submodule, the prompt information output submodule, the second mobile control submodule and the shift-out state holding submodule, wherein:
and the first application program judging submodule is used for judging whether the application program calling the camera assembly runs in the foreground of the mobile terminal or not when the residual electric quantity is reduced to the electric quantity threshold value.
And the first mobile control submodule is used for controlling the camera assembly to be withdrawn into the terminal body when an application program calling the camera assembly does not run in the foreground of the mobile terminal.
And the prompt information output submodule is used for outputting prompt information when an application program calling the camera assembly runs in the foreground of the mobile terminal, and the prompt information is used for prompting a user to select whether the camera assembly is retracted into the terminal body.
And the second mobile control submodule is used for controlling the camera assembly to be withdrawn into the terminal body when receiving instruction information for instructing to withdraw the camera assembly into the terminal body.
And the moving-out state holding submodule is used for holding the camera assembly in a state of moving out of the terminal body and closing the application program running in the background of the mobile terminal when receiving instruction information indicating that the camera assembly is not retracted into the terminal body.
Further, the movement control module 220 includes: an application classification obtaining submodule, an application classification judging submodule and a third mobile control submodule, wherein:
and the application classification obtaining submodule is used for obtaining the classification of the application program calling the camera assembly when the residual electric quantity is reduced to the electric quantity threshold value.
And the application classification judgment submodule is used for judging whether the classification to which the application program calling the camera assembly belongs meets the preset classification.
And the third mobile control submodule is used for controlling the camera assembly to be retracted into the terminal body when the classification to which the application program calling the camera assembly belongs meets the preset classification.
Further, the movement control module 220 includes: a second application program judgment submodule, a power consumption speed acquisition submodule and a fourth mobile control submodule, wherein:
and the second application program judgment submodule is used for acquiring all application programs currently operated by the mobile terminal when the residual electric quantity is reduced to the electric quantity threshold value.
And the power consumption speed acquisition submodule is used for acquiring the power consumption speeds of all the currently running application programs.
And the fourth movement control submodule is used for controlling the camera assembly to be retracted into the terminal body in a preset time based on the power consumption speed. Further, the fourth movement control sub-module includes: power consumption speed judging unit, first mobile control unit and second mobile control unit, wherein:
and the power consumption speed judging unit is used for judging whether the power consumption speed is greater than a preset power consumption speed.
And the first mobile control unit is used for controlling the camera assembly to be withdrawn into the terminal body at the first time when the power consumption speed is greater than the preset power consumption speed.
And the second mobile control unit is used for controlling the camera assembly to withdraw into the terminal body at a second time when the power consumption speed is not greater than the preset power consumption speed, wherein the first time is earlier than the second time.
Further, the electric quantity threshold is an electric quantity value that satisfies an automatic shutdown of the mobile terminal, and the terminal control device 200 further includes: a shutdown control module, wherein:
and the shutdown control module is used for controlling the mobile terminal to automatically shut down when the camera assembly is retracted into the terminal body.
Further, the terminal control device 200 further includes: a removal control module, wherein:
and the moving-out control module is used for controlling the camera assembly to move out of the terminal body when the mobile terminal is connected with the charging equipment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 14, a block diagram of a mobile terminal 100 according to an embodiment of the present disclosure is shown. The mobile terminal 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application program. The mobile terminal 100 in the present application may include one or more of the following components: the mobile terminal comprises a processor 110, a display screen 120, a terminal body 130, a camera assembly 140, a memory 150 and one or more application programs, wherein the display screen 120, the memory 150 and the camera assembly 140 are respectively connected with the processor 110, wherein the one or more application programs can be stored in the memory 150 and configured to be executed by the one or more processors 110, and the one or more programs are configured to execute the method as described in the foregoing method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 interfaces with various components throughout the mobile terminal 100 using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 150 and invoking data stored in the memory 150. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 150 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 150 may be used to store instructions, programs, code sets, or instruction sets. The memory 150 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The display screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the mobile terminal 100, which may be composed of graphics, text, icons, numbers, video, and any combination thereof.
Referring to fig. 15, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable medium (non-transitory-readable storage medium). The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
To sum up, the terminal control method and apparatus, the mobile terminal and the storage medium provided in the embodiments of the present application are applied to a mobile terminal, where the mobile terminal includes a terminal body and a camera assembly, and the camera assembly is disposed in the terminal body, can move relative to the terminal body, and is exposed from the terminal body. When the camera assembly is in the state of shifting out from the terminal body, the residual capacity of the mobile terminal is monitored, when the residual capacity is reduced to the capacity threshold value, the camera assembly is controlled to withdraw the terminal body, so that when the camera assembly is in the state of shifting out from the terminal body, the camera assembly is controlled to withdraw the terminal body according to the residual capacity of the mobile terminal, the camera assembly is withdrawn intelligently, and the camera assembly is protected from being damaged.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A terminal control method applied to a mobile terminal, the mobile terminal including a terminal body and a camera assembly, the camera assembly being disposed in the terminal body and being movable relative to the terminal body and exposed from the terminal body, the method comprising:
when the camera assembly is in a state of being moved out of the terminal body, monitoring the residual electric quantity of the mobile terminal;
when the monitored current residual power is less than the previous monitored residual power and the monitored current residual power is less than or equal to a power threshold, judging whether an application program calling the camera assembly runs on a foreground of the mobile terminal, wherein the power threshold is a power value meeting the automatic shutdown of the mobile terminal;
when an application program calling the camera assembly does not run in the foreground of the mobile terminal, controlling the camera assembly to be retracted into the terminal body;
when the mobile terminal is connected with the charging equipment, the camera assembly is controlled to move out of the terminal body, and an application scene calling the camera assembly before is reproduced;
when an application program calling the camera assembly runs on the foreground of the mobile terminal, outputting prompt information, wherein the prompt information is used for prompting a user to select whether the camera assembly is retracted into the terminal body;
when instruction information indicating that the camera assembly is retracted into the terminal body is received, controlling the camera assembly to retract into the terminal body;
when instruction information indicating that the camera assembly is not retracted into the terminal body is received, the camera assembly is kept in a state of being moved out of the terminal body, and an application program running in a background of the mobile terminal is closed.
2. The method according to claim 1, wherein the power threshold is a power value that satisfies an automatic shutdown of the mobile terminal, and further comprising, after controlling the camera assembly to be retracted into the terminal body when the remaining power decreases to the power threshold:
and when the camera assembly is retracted into the terminal body, controlling the mobile terminal to automatically shut down.
3. The method according to claim 1, wherein the controlling the camera assembly to retract into the terminal body when the remaining power decreases to the power threshold comprises:
when the residual electric quantity is reduced to the electric quantity threshold value, obtaining a classification to which an application program calling the camera assembly belongs;
judging whether the classification to which the application program calling the camera assembly belongs meets a preset classification;
and when the classification to which the application program calling the camera assembly belongs meets the preset classification, controlling the camera assembly to be retracted into the terminal body.
4. The method according to claim 1, wherein the controlling the camera assembly to retract into the terminal body when the remaining power decreases to the power threshold comprises:
when the residual electric quantity is reduced to the electric quantity threshold value, acquiring all application programs currently operated by the mobile terminal;
acquiring the power consumption speeds of all the currently running application programs;
and controlling the camera assembly to be withdrawn into the terminal body at a preset time based on the power consumption speed.
5. The method according to claim 4, wherein the controlling the camera assembly to be retracted into the terminal body at a preset time based on the power consumption speed comprises:
judging whether the power consumption speed is greater than a preset power consumption speed or not;
when the power consumption speed is greater than the preset power consumption speed, controlling the camera assembly to be withdrawn into the terminal body at the first time;
and when the power consumption speed is not greater than the preset power consumption speed, controlling the camera assembly to retract into the terminal body at a second time, wherein the first time is earlier than the second time.
6. A terminal control apparatus applied to a mobile terminal, the mobile terminal including a terminal body and a camera assembly, the camera assembly being disposed in the terminal body and being movable relative to the terminal body and exposed from the terminal body, the apparatus comprising:
the electric quantity monitoring module is used for monitoring the residual electric quantity of the mobile terminal when the camera assembly is in a state of being moved out of the terminal body;
the first application program judging submodule is used for judging whether an application program calling the camera assembly runs on a foreground of the mobile terminal or not when the monitored current remaining electric quantity is smaller than the monitored remaining electric quantity at the previous time and the monitored current remaining electric quantity is smaller than or equal to an electric quantity threshold value, wherein the electric quantity threshold value is an electric quantity value which meets the automatic shutdown of the mobile terminal;
the first mobile control submodule is used for controlling the camera assembly to be retracted into the terminal body when an application program calling the camera assembly does not run in the foreground of the mobile terminal;
the mobile terminal comprises a mobile terminal body, a mobile-out control module and a camera module, wherein the mobile terminal body is used for receiving a mobile terminal command from a user, and the mobile terminal body is used for calling the camera module;
the prompt information output submodule is used for outputting prompt information when an application program calling the camera assembly runs in the foreground of the mobile terminal, and the prompt information is used for prompting a user to select whether to withdraw the camera assembly into the terminal body;
the second mobile control submodule is used for controlling the camera assembly to be retracted into the terminal body when instruction information for instructing the camera assembly to be retracted into the terminal body is received;
and the moving-out state holding submodule is used for holding the camera assembly in a state of moving out of the terminal body and closing the application program running in the background of the mobile terminal when receiving instruction information indicating that the camera assembly is not retracted into the terminal body.
7. A mobile terminal comprising a terminal body and a camera assembly, the terminal body including one or more processors and a memory, the camera assembly and the memory coupled to the processors, the memory storing instructions that, when executed by the processors, the processors perform the method of any of claims 1-5.
8. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 5.
CN201910706066.5A 2019-07-25 2019-07-25 Terminal control method, device, mobile terminal and storage medium Active CN110417966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910706066.5A CN110417966B (en) 2019-07-25 2019-07-25 Terminal control method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910706066.5A CN110417966B (en) 2019-07-25 2019-07-25 Terminal control method, device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110417966A CN110417966A (en) 2019-11-05
CN110417966B true CN110417966B (en) 2021-10-19

Family

ID=68365101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910706066.5A Active CN110417966B (en) 2019-07-25 2019-07-25 Terminal control method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110417966B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087219A (en) * 2006-06-09 2007-12-12 中国科学院软件研究所 Wireless sensor network time synchronization method and device based on error statistics
CN106817540A (en) * 2016-12-30 2017-06-09 广东欧珀移动通信有限公司 A kind of camera control method and equipment
US10009520B2 (en) * 2015-05-07 2018-06-26 Ring Inc. Wireless audio/video recording and communication doorbells with integrated image sensor/button
CN108810284A (en) * 2018-07-12 2018-11-13 维沃移动通信有限公司 A kind of mode switching method and electronic equipment of camera
CN109005262A (en) * 2018-08-30 2018-12-14 维沃移动通信有限公司 A kind of camera control method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107305372B (en) * 2016-04-25 2020-06-19 岳秀兰 Electric automobile energy monitoring and supply network for remote monitoring of cloud computing network architecture
CN107451037A (en) * 2017-08-08 2017-12-08 广东小天才科技有限公司 A kind of remaining runtime reminding method and device for mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087219A (en) * 2006-06-09 2007-12-12 中国科学院软件研究所 Wireless sensor network time synchronization method and device based on error statistics
US10009520B2 (en) * 2015-05-07 2018-06-26 Ring Inc. Wireless audio/video recording and communication doorbells with integrated image sensor/button
CN106817540A (en) * 2016-12-30 2017-06-09 广东欧珀移动通信有限公司 A kind of camera control method and equipment
CN108810284A (en) * 2018-07-12 2018-11-13 维沃移动通信有限公司 A kind of mode switching method and electronic equipment of camera
CN109005262A (en) * 2018-08-30 2018-12-14 维沃移动通信有限公司 A kind of camera control method and terminal

Also Published As

Publication number Publication date
CN110417966A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN107797739B (en) Mobile terminal, display control method and device thereof, and computer-readable storage medium
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
CN110418000B (en) Terminal control method, device, mobile terminal and storage medium
CN107544810B (en) Method and device for controlling application program
EP4116807A1 (en) Multi-task operation method and apparatus, electronic device, and storage medium
US20220269379A1 (en) Display Method and Electronic Device
CN110262720B (en) Floating window control method, device, equipment and storage medium
CN109976633B (en) Interface interaction method and device, electronic equipment and storage medium
CN105005387A (en) Application event prompting method for smart watch and smart watch
CN108121493B (en) Display control method and related product
CN109947320B (en) Picture display method and device, electronic equipment and storage medium
WO2021179803A1 (en) Content sharing method and apparatus, electronic device and storage medium
CN111782427A (en) Content operation method and device and computer readable storage medium
CN111752460B (en) Screen control method and device, electronic equipment and computer readable storage medium
CN111813293B (en) Application program management method and electronic equipment
CN109144447A (en) Split screen window adjusting method, device, storage medium and electronic equipment
CN108549575B (en) Processing method and device for quitting split screen, storage medium and electronic equipment
CN110429678A (en) Mobile terminal method of supplying power to, system, storage medium and mobile terminal
CN110417966B (en) Terminal control method, device, mobile terminal and storage medium
CN111666023B (en) Interface display method and device, electronic equipment and readable storage medium
CN108920064A (en) Split screen window adjusting method, device, storage medium and electronic equipment
US20200167060A1 (en) Method, device, and computer program for displaying an icon
CN111831100B (en) Electronic device control method and device, storage medium and electronic device
CN117270722A (en) Position adjustment method for graphic element, electronic device and storage medium
CN114780193A (en) Toolbar display method, apparatus, electronic device and storage medium

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