CN106125898A - The method and device of screen rotation - Google Patents

The method and device of screen rotation Download PDF

Info

Publication number
CN106125898A
CN106125898A CN201610514395.6A CN201610514395A CN106125898A CN 106125898 A CN106125898 A CN 106125898A CN 201610514395 A CN201610514395 A CN 201610514395A CN 106125898 A CN106125898 A CN 106125898A
Authority
CN
China
Prior art keywords
gravity sensor
screen
described gravity
white list
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610514395.6A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610514395.6A priority Critical patent/CN106125898A/en
Publication of CN106125898A publication Critical patent/CN106125898A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

A kind of method that the embodiment of the invention discloses screen rotation, includes: detecting whether to open the automatic rotation function of screen;If the automatic rotation function of screen is opened, it is judged that whether the application program being currently running is in white list;All application programs not supporting transverse screen to show are comprised in described white list;If the application program being currently running is in described white list, close gravity sensor.The embodiment of the present invention also provides for the device of a kind of screen rotation simultaneously.

Description

The method and device of screen rotation
Technical field
The present invention relates to field of terminal technology, particularly relate to the method and device of a kind of screen rotation.
Background technology
Gravity sensor is had, it is possible to use gravity sensor detects three-dimensional change, meter on the most a lot of mobile phones Calculating the current gravity direction of mobile phone, the picture controlling mobile phone screen is transverse screen or perpendicular screen, but, people use custom and the appearance of mobile phone Gesture is all not quite similar, and somebody's custom is seated use, and somebody's custom stands use, and somebody likes recumbency use, and the company also having walks All playing mobile phone.
Therefore, under the application scenarios of various complexity, gravity sensor can calculate Mobile phone screen according to detecting result The picture display direction of curtain, and rotates mobile phone screen, even if but picture shown by some application is at mobile phone body Also will not appear as transverse screen when transverse screen, now, gravity sensor can ceaselessly report coordinate data, causes power consumption to increase.
Summary of the invention
In view of this, embodiment of the present invention expectation provides the method and device of a kind of screen rotation, to answer according to different Enable by scene or close gravity sensor, thus saving electricity.
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
A kind of device of screen rotation, described device includes:
Detection module, for detecting whether open the automatic rotation function of screen;
Judge module, if opening for the automatic rotation function of screen, it is judged that whether the application program being currently running exists In white list;All application programs not supporting transverse screen to show are comprised in described white list;
For described judge module, processing module, if judging that the application program being currently running, in described white list, is closed Gravity sensor.
Device as above, wherein, described judge module is additionally operable to:
Judge whether described gravity sensor enables;
Described processing module is additionally operable to: if described judge module judges that described gravity sensor enables, then close described Gravity sensor.
Device as above, wherein, if the automatic rotation function that described detection module detects screen is not switched on, described Judge module is additionally operable to: judge whether described gravity sensor enables;
Described processing module is additionally operable to: if described judge module judges that described gravity sensor enables, then close described Gravity sensor.
Device as above, wherein, described judge module is additionally operable to: if the application program being currently running not described in vain In list, it is judged that whether described gravity sensor enables;
Described processing module is additionally operable to: if described judge module judges that described gravity sensor enables, obtains number of coordinates According to and upload.
Device as above, wherein, described processing module is additionally operable to: if described judge module judges described gravity sensitive Device is not enabled on, then enable described gravity sensor, and obtain described coordinate data and upload.
A kind of method of screen rotation, described method includes:
Detect whether to open the automatic rotation function of screen;
If the automatic rotation function of screen is opened, it is judged that whether the application program being currently running is in white list;Described All application programs not supporting transverse screen to show are comprised in white list;
If the application program being currently running is in described white list, close gravity sensor.
Method as above, wherein, after judging that the application program being currently running is in described white list, described side Method also includes:
Judge whether described gravity sensor enables;
If described gravity sensor enables, then close described gravity sensor.
Method as above, wherein, if detecting, the automatic rotation function of screen is not switched on, it is judged that described gravity sensitive Whether device enables;
If described gravity sensor enables, then close described gravity sensor.
Method as above, wherein, if the application program being currently running is not in described white list, it is judged that described gravity Whether sensor enables;
If described gravity sensor enables, obtain coordinate data and upload.
Method as above, wherein, if described gravity sensor is not enabled on, then enables described gravity sensor, and obtains Take described coordinate data and upload.
The method and device of the screen rotation that the embodiment of the present invention is provided, by detecting whether to open the automatic rotary of screen Rotating function;If the automatic rotation function of screen is opened, it is judged that whether the application program being currently running is in white list;Described in vain All application programs not supporting transverse screen to show are comprised in list;If the application program being currently running is in described white list, close Close gravity sensor.So, can enable according to different application scenarios or close gravity sensor, thus save electricity.
Accompanying drawing explanation
Fig. 1 is the hardware architecture diagram of the optional mobile terminal realizing each embodiment of the present invention;
The communication system architecture schematic diagram that the mobile terminal that Fig. 2 provides for the embodiment of the present invention is operable to;
The structural representation of the device of the screen rotation that Fig. 3 provides for the embodiment of the present invention;
The flow chart of the method for the screen rotation that Fig. 4 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe wholely.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing 1.In follow-up description, make With being used for the suffix representing such as " module ", " parts " or " unit " of the element explanation only for the beneficially present invention, its Body does not has specific meaning.Therefore, " module " can mixedly use with " parts ".
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA), panel computer (PAD), portable The mobile terminal of formula multimedia player (PMP), guider etc. and fixing of such as numeral TV, desk computer etc. Terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for mobile mesh Element outside, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, audio/video (A/V) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assembly, it should be understood that be not required for implementing all groups illustrated Part, can alternatively implement more or less of assembly, will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows mobile terminal 100 and wireless communication system Or the radio communication between network.Such as, wireless communication unit can include broadcast reception module 111, mobile communication module 112, at least one in wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcasting management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be to generate and send Broadcast singal and/or the server of broadcast related information or the broadcast singal generated before receiving and/or broadcast related information And send it to the server of terminal.Broadcast singal can include that TV broadcast singal, radio signals, data are broadcasted Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, and such as, it can be with the electronics of DMB (DMB) Program guide (EPG), the form of electronic service guidebooks (ESG) etc. of digital video broadcast-handheld (DVB-H) and exist.Broadcast Receiver module 111 can be broadcasted by using various types of broadcast systems to receive signal.Especially, broadcast reception module 111 Can be by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video wide Broadcast-hand-held (DVB-H), the Radio Data System of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcast reception module 111 may be constructed such that and is adapted to provide for extensively Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcast reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memorizer 160 (or other type of storage medium).
Mobile communication module 112 sends radio signals to base station (such as, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can include that voice leads to Words signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant Tooth TM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee TM etc..
Positional information module 115 is the module of positional information for checking or obtain mobile terminal.Positional information module The typical case of 115 is GPS (global positioning system).According to current technology, GPS module 115 calculates from three or more The range information of satellite and correct time information and for the Information application triangulation calculated, thus according to longitude, The three-dimensional current location information of latitude and highly accurately calculating.Currently, for calculating the method use three of position and temporal information Satellite and by using the position and the error of temporal information that an other satellite correction calculates.Additionally, GPS module 115 can calculate velocity information by Continuous plus current location information in real time.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121 He Mike 122, the camera 121 static images to being obtained by image capture apparatus in Video Capture pattern or image capture mode Or the view data of video processes.Picture frame after process may be displayed on display unit 151.Process through camera 121 After picture frame can be stored in memorizer 160 (or other storage medium) or via wireless communication unit 110 carry out send out Send, two or more cameras 121 can be provided according to the structure of mobile terminal.Mike 122 can be in telephone calling model, note Record pattern, speech recognition mode etc. operational mode receives sound (voice data) via mike 122, and can be by this The acoustic processing of sample is voice data.Audio frequency (voice) data after process can be converted in the case of telephone calling model The form output of mobile communication base station can be sent to via mobile communication module 112.Mike 122 can be implemented various types of Noise eliminate (or suppression) algorithm with the noise eliminating (or suppression) and producing during receiving and send audio signal or Interference.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user's input Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (such as, detection due to touched and cause resistance, pressure, the sensitive component of change of electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal Orientation, the acceleration or deceleration of mobile terminal 100 of 100 move and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense This sliding-type phone opens or cuts out.It addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 can include that proximity transducer 141 will combine below This is described by touch screen.
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 100, the interface that can pass through.Such as, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, for connect have the port of device of identification module, audio frequency input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is for verifying that user uses each of mobile terminal 100 Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..It addition, the device (hereinafter referred to as " identifying device ") with identification module can be to take the form of smart card, therefore, know Other device can be connected with mobile terminal 100 via port or other attachment means.Interface unit 170 may be used for receive from The input (such as, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements or may be used between mobile terminal and external device (ED) transmit data.
It addition, when mobile terminal 100 is connected with external base, interface unit 170 can serve as allowing electricity by it Power provides the path of mobile terminal 100 from base or can serve as allowing from the various command signals of base input by it It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from various command signals or the electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner Go out signal (such as, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, it is in electricity when mobile terminal 100 During words call mode, display unit 151 can show and call or other (such as, text messaging, multimedia file that communicate Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern Or during image capture mode, display unit 151 can show image and/or the image of reception of capture, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another with formed touch screen time, display unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least A kind of.Some in these display may be constructed such that transparence is watched from outside with permission user, and this is properly termed as transparent Display, typical transparent display can for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 100 can include two or more display units (or other display device), such as, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal receive pattern, call mode, logging mode, Time under the isotype such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or at memorizer 160 The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide with mobile The audio frequency output (such as, call signal receives sound, message sink sound etc.) that the specific function that terminal 100 performs is relevant. Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 100.Typical event is permissible Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video exports, alarm unit 153 can provide output with the generation of notification event in a different manner.Such as, alarm unit 153 can be with the form of vibration Output is provided, when receiving calling, message or some other entrance communication (Incoming Communication), alarm list Unit 153 can provide sense of touch output (such as, vibration) to notify to user.By providing such sense of touch to export, even if When the mobile phone of user is in the pocket of user, user also is able to identify the generation of various event.Alarm unit 153 The output of the generation of notification event can also be provided via display unit 151 or dio Output Modules 152.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can The data (such as, telephone directory, message, still image, video etc.) that maybe will export have been exported temporarily to store.And And, memorizer 160 can with storage about when touch be applied to touch screen time the vibration of various modes of output and audio signal Data.
Memorizer 160 can include that the storage medium of at least one type, described storage medium include flash memory, hard disk, many Media card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access store Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 100 can be connected execution memorizer with by network The network storage device cooperation of the storage function of 160.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice call, data Control that communication, video calling etc. are relevant and process.It addition, controller 180 can include for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or it is so structured that with control Device 180 separates.Controller 180 can perform pattern recognition process, with the handwriting input that will perform on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Suitable electric power needed for part and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implementing for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. Software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any suitable programming language Implementing, software code can be stored in memorizer 160 and be performed by controller 180.
So far, mobile terminal is described according to its function.Below, for the sake of brevity, will describe such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 100 may be constructed such that utilize via frame or packet transmission data all if any Line and wireless communication system and satellite-based communication system operate.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, communication system use Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face relates to cdma communication system, but such teaching is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 100, multiple base station (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to and the BSC275 formation interface that can be couple to base station 270 via back haul link. Back haul link can construct according to any one in some known interfaces, and described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC275.
Each BS270 can service one or more subregion (or region), by multidirectional antenna or the sky of sensing specific direction Each subregion that line covers is radially away from BS270.Or, each subregion can be by for two or more of diversity reception Antenna covers.Each BS270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal operated by broadcsting transmitter (BT) 295 100.Broadcast reception module 111 is arranged on mobile terminal 100 and sentences the broadcast that reception is sent by BT295 as shown in Figure 1 Signal.In fig. 2 it is shown that several global positioning systems (GPS) satellite 300.Satellite 300 helps to position multiple mobile terminals At least one in 100.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtain useful Location information.GPS module 115 is generally configured to coordinate with satellite 300 to obtain the location letter wanted as shown in Figure 1 Breath.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other of position of mobile terminal can be followed the tracks of Technology.It addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.Certain base station 270 receive each instead Processed in specific BS270 to link signal.The data obtained are forwarded to the BSC275 being correlated with.BSC provides call Resource distribution and the mobile management function of the coordination of soft switching process included between BS270.The number that BSC275 also will receive According to being routed to MSC280, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, MSC280 Yu BSC275 forms interface, and BSC275 correspondingly controls BS270 to be believed by forward link Number it is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
In the various embodiments of the invention, by when detecting that mobile phone gravity direction changes, it is judged that be currently running should Whether being in the white list pre-set by program, if being in described white list, then closing gravity sensor, it is to avoid gravity Sensor reports coordinate data always, such that it is able to save electricity.
The structural representation of the device of the screen rotation that Fig. 3 provides for the embodiment of the present invention.As it is shown on figure 3, the present embodiment The device of the screen rotation provided may be provided in intelligent terminal, concrete, and the device that the present embodiment provides may include that Detection module 31, judge module 32 and processing module 33.
Wherein, detection module 31, for detecting whether open the automatic rotation function of screen;
Judge module 32, if the automatic rotation function for screen is opened, it is judged that whether the application program being currently running In white list;All application programs not supporting transverse screen to show are comprised in described white list;
Processing module 33, if for described judge module 32 judge the application program that is currently running in described white list, Close gravity sensor.
In actual application, when described judge module 32 judges that the application program being currently running is in described white list, Described judge module 32 is additionally operable to judge whether described gravity sensor enables;If described judge module 32 judges that described gravity passes Sensor enables, and the most described processing module 33 closes described gravity sensor, thus avoids described gravity sensor to report always Coordinate data, expends terminal power.
It should be noted that all application programs not supporting transverse screen to show comprised in described white list, can be should The most do not support that by program transverse screen shows, it is also possible to that manually adds by user that the most uncomfortable transverse screen shows should By program, this is not specifically limited by the present embodiment.
Further, if the automatic rotation function that described detection module 31 detects screen is not switched on, described judge module 32 judge whether described gravity sensor enables;Accordingly, described processing module 33 is additionally operable to: if described judge module 32 judges Described gravity sensor enables, then close described gravity sensor.
If it is understood that the application program that described judge module 32 judgement is currently running is not in described white list, Then determine whether whether described gravity sensor enables;If described judge module 32 judges that described gravity sensor enables, The most described processing module 33 obtains coordinate data and uploads.
If the application program that the judgement of described judge module 32 is currently running is not in described white list, and described judge module 32 judge that described gravity sensor is not enabled on, then enable described gravity sensor, and obtain described coordinate data and upload.
It is to say, in the present embodiment, if user has opened the screen automatic rotation function of intelligent terminal, detecting During Gravity changer, it is judged that whether the just application program at front stage operation is in described white list, if being in described white list, Then determine whether whether described gravity sensor enables, if described gravity sensor enables, then close described gravity sensor, If described gravity sensor is not enabled on, then it is left intact.
If when Gravity changer being detected, it is judged that in just the application program at front stage operation is not at described white list, Then determine whether whether described gravity sensor enables, if described gravity sensor enables, then obtain current coordinate data And upload, if described gravity sensor is not enabled on, then enable described gravity sensor, obtain current coordinate data and upload.
If when Gravity changer being detected, detect that user is not switched on the screen automatic rotation function of intelligent terminal, now Also whether described gravity sensor is enabled and judges, if the most described gravity sensor is not enabled on, be then left intact, If now gravity sensor enables, then close described gravity sensor.
The device of the screen rotation that the present embodiment provides, can enable according to different application scenarios or close gravity sensitive Device, thus save electricity.
In actual applications, detection module 31, judge module 32 and processing module 33 all can be by the dresses being positioned at screen rotation Central processing unit (Central Processing Unit, CPU) in putting, microprocessor (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field programmable gate array (Field Programmable Gate Array, FPGA) etc. realize.
The flow chart of the method for the screen rotation that Fig. 4 provides for the embodiment of the present invention.As shown in Figure 4, the present embodiment provides Screen rotation method specifically can by be configured with screen rotation device terminal unit perform, concrete, the present embodiment The method provided includes:
Step 401, detect whether to open the automatic rotation function of screen.
If it should be noted that detect that the automatic rotation function of screen is not switched on, need also exist for judging that described gravity passes Whether sensor enables;If described gravity sensor enables, then close described gravity sensor.
If the automatic rotation function of step 402 screen is opened, it is judged that whether the application program being currently running is at white list In;All application programs not supporting transverse screen to show are comprised in described white list.
It should be noted that all application programs not supporting transverse screen to show comprised in described white list, can be should The most do not support that by program transverse screen shows, it is also possible to that manually adds by user that the most uncomfortable transverse screen shows should By program, this is not specifically limited by the present embodiment.
If the application program that step 403 is currently running is in described white list, close gravity sensor.
In this step, after judging that the application program being currently running is in described white list, it is judged that described gravity sensitive Whether device enables;If described gravity sensor enables, then close described gravity sensor.
In actual application, if the application program being currently running is not in described white list, it is judged that described gravity sensor is No enable;If described gravity sensor enables, obtain coordinate data and upload;If described gravity sensor is not enabled on, then make The described gravity sensor of energy, and obtain described coordinate data and upload.
It is to say, in the present embodiment, if user has opened the screen automatic rotation function of intelligent terminal, detecting During Gravity changer, it is judged that whether the just application program at front stage operation is in described white list, if being in described white list, Then determine whether whether described gravity sensor enables, if described gravity sensor enables, then close described gravity sensor, If described gravity sensor is not enabled on, then it is left intact.
If when Gravity changer being detected, it is judged that in just the application program at front stage operation is not at described white list, Then determine whether whether described gravity sensor enables, if described gravity sensor enables, then obtain current coordinate data And upload, if described gravity sensor is not enabled on, then enable described gravity sensor, obtain current coordinate data and upload.
If when Gravity changer being detected, detect that user is not switched on the screen automatic rotation function of intelligent terminal, now Also whether described gravity sensor is enabled and judges, if the most described gravity sensor is not enabled on, be then left intact, If now gravity sensor enables, then close described gravity sensor.
The method of the screen rotation that the present embodiment provides, can enable according to different application scenarios or close gravity sensitive Device, thus save electricity.
It should be noted that in this article, term " includes ", " comprising " or its any other variant are intended to non-row Comprising of his property, so that include that the process of a series of key element, method, article or device not only include those key elements, and And also include other key elements being not expressly set out, or also include intrinsic for this process, method, article or device Key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this The process of key element, method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-described embodiment side Method can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of in the case of The former is more preferably embodiment.Based on such understanding, prior art is done by technical scheme the most in other words The part going out contribution can embody with the form of software product, and this computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, take Business device, air-conditioner, or the network equipment etc.) perform the method described by each embodiment of the present invention.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every utilize this Equivalent structure or equivalence flow process that bright description and accompanying drawing content are made convert, or are directly or indirectly used in other relevant skills Art field, is the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. the device of a screen rotation, it is characterised in that described device includes:
Detection module, for detecting whether open the automatic rotation function of screen;
Judge module, if the automatic rotation function for screen is opened, it is judged that whether the application program being currently running is in white name In single;All application programs not supporting transverse screen to show are comprised in described white list;
For described judge module, processing module, if judging that the application program being currently running, in described white list, closes gravity Sensor.
Device the most according to claim 1, it is characterised in that described judge module is additionally operable to:
Judge whether described gravity sensor enables;
Described processing module is additionally operable to: if described judge module judges that described gravity sensor enables, then close described gravity Sensor.
Device the most according to claim 1, it is characterised in that if described detection module detects the automatic rotational work of screen Can be not switched on, described judge module is additionally operable to: judge whether described gravity sensor enables;
Described processing module is additionally operable to: if described judge module judges that described gravity sensor enables, then close described gravity Sensor.
Device the most according to claim 1, it is characterised in that described judge module is additionally operable to: if the application being currently running Program is not in described white list, it is judged that whether described gravity sensor enables;
Described processing module is additionally operable to: if described judge module judges that described gravity sensor enables, obtains coordinate data also Upload.
Device the most according to claim 4, it is characterised in that described processing module is additionally operable to: if described judge module is sentenced Disconnected described gravity sensor is not enabled on, then enable described gravity sensor, and obtain described coordinate data and upload.
6. the method for a screen rotation, it is characterised in that described method includes:
Detect whether to open the automatic rotation function of screen;
If the automatic rotation function of screen is opened, it is judged that whether the application program being currently running is in white list;Described white name All application programs not supporting transverse screen to show are comprised in list;
If the application program being currently running is in described white list, close gravity sensor.
Method the most according to claim 6, it is characterised in that judging that the application program being currently running is at described white list After Nei, described method also includes:
Judge whether described gravity sensor enables;
If described gravity sensor enables, then close described gravity sensor.
Method the most according to claim 6, it is characterised in that the automatic rotation function of screen is not switched on if detecting, sentences Whether disconnected described gravity sensor enables;
If described gravity sensor enables, then close described gravity sensor.
Method the most according to claim 6, it is characterised in that if the application program being currently running is not at described white list In, it is judged that whether described gravity sensor enables;
If described gravity sensor enables, obtain coordinate data and upload.
Method the most according to claim 9, it is characterised in that if described gravity sensor is not enabled on, then enable described heavy Force transducer, and obtain described coordinate data and upload.
CN201610514395.6A 2016-06-30 2016-06-30 The method and device of screen rotation Pending CN106125898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610514395.6A CN106125898A (en) 2016-06-30 2016-06-30 The method and device of screen rotation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610514395.6A CN106125898A (en) 2016-06-30 2016-06-30 The method and device of screen rotation

Publications (1)

Publication Number Publication Date
CN106125898A true CN106125898A (en) 2016-11-16

Family

ID=57469051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610514395.6A Pending CN106125898A (en) 2016-06-30 2016-06-30 The method and device of screen rotation

Country Status (1)

Country Link
CN (1) CN106125898A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107300973A (en) * 2017-06-21 2017-10-27 深圳传音通讯有限公司 screen rotation control method, system and device
CN107610624A (en) * 2017-08-23 2018-01-19 深圳易普森科技股份有限公司 The automatic transverse screen control method of Displaylink drive-types and system
CN108600855A (en) * 2018-04-16 2018-09-28 北京酷我科技有限公司 A kind of implementation method of portrait video
CN113220385A (en) * 2021-03-31 2021-08-06 荣耀终端有限公司 Automatic setting method for horizontal and vertical screens of mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120254646A1 (en) * 2011-03-28 2012-10-04 Hon Hai Precision Industry Co., Ltd. Portable electronic device and method for controlling screen protection function of the portable electronic device
CN103929541A (en) * 2014-04-28 2014-07-16 深圳市中兴移动通信有限公司 Method and device for controlling acceleration sensor and mobile terminal
CN105260004A (en) * 2015-09-22 2016-01-20 广东欧珀移动通信有限公司 Screen rotating method and system for android system terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120254646A1 (en) * 2011-03-28 2012-10-04 Hon Hai Precision Industry Co., Ltd. Portable electronic device and method for controlling screen protection function of the portable electronic device
CN103929541A (en) * 2014-04-28 2014-07-16 深圳市中兴移动通信有限公司 Method and device for controlling acceleration sensor and mobile terminal
CN105260004A (en) * 2015-09-22 2016-01-20 广东欧珀移动通信有限公司 Screen rotating method and system for android system terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107300973A (en) * 2017-06-21 2017-10-27 深圳传音通讯有限公司 screen rotation control method, system and device
CN107610624A (en) * 2017-08-23 2018-01-19 深圳易普森科技股份有限公司 The automatic transverse screen control method of Displaylink drive-types and system
CN108600855A (en) * 2018-04-16 2018-09-28 北京酷我科技有限公司 A kind of implementation method of portrait video
CN113220385A (en) * 2021-03-31 2021-08-06 荣耀终端有限公司 Automatic setting method for horizontal and vertical screens of mobile terminal

Similar Documents

Publication Publication Date Title
CN106231087A (en) A kind of method and apparatus of positive and negative dual-screen display device false-touch prevention
CN106131322A (en) Dual-screen mobile terminal plays the method and device of sound
CN106067960A (en) A kind of mobile terminal processing video data and method
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN106168879A (en) A kind of method that double-sided screen is mutual and terminal
CN106254628A (en) A kind of mobile terminal and multi-display method
CN106097284A (en) The processing method of a kind of night scene image and mobile terminal
CN106101455A (en) Page jump management method, device and terminal
CN105975052A (en) Screen switching method and device
CN106993084A (en) The method, device and mobile terminal that a kind of control information is shown
CN106791155A (en) A kind of volume adjustment device, volume adjusting method and mobile terminal
CN106125898A (en) The method and device of screen rotation
CN107071161A (en) The aggregation display method and mobile terminal of icon in a kind of status bar
CN106792607A (en) Mobile terminal and the method for reducing mobile terminal power consumption
CN106791149A (en) A kind of method of mobile terminal and control screen
CN106161790A (en) A kind of mobile terminal and control method thereof
CN106484534A (en) Control method for the mobile terminal of displaying and control device
CN106227454B (en) A kind of touch trajectory detection system and method
CN106897010A (en) Touch screen terminal and control method
CN107025158A (en) A kind of slide method of testing, device and terminal
CN106131318A (en) A kind of incoming information hidden method and device
CN106686211A (en) Processing method and terminal for sound playing in split screen mode
CN105975180A (en) Interface switching method and terminal device
CN106713645B (en) A kind of method and mobile terminal of the broadcasting of control loudspeaker
CN106303080B (en) A kind of method and apparatus prompting new information on a display screen

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161116