CN105376413A - Screen rotation method, screen rotation device and mobile terminal - Google Patents

Screen rotation method, screen rotation device and mobile terminal Download PDF

Info

Publication number
CN105376413A
CN105376413A CN201510865773.0A CN201510865773A CN105376413A CN 105376413 A CN105376413 A CN 105376413A CN 201510865773 A CN201510865773 A CN 201510865773A CN 105376413 A CN105376413 A CN 105376413A
Authority
CN
China
Prior art keywords
data
described
rotation
screen
real time
Prior art date
Application number
CN201510865773.0A
Other languages
Chinese (zh)
Inventor
任忠杰
曾云
Original Assignee
努比亚技术有限公司
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 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Priority to CN201510865773.0A priority Critical patent/CN105376413A/en
Publication of CN105376413A publication Critical patent/CN105376413A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72522With means for supporting locally a plurality of applications to increase the functionality

Abstract

The invention discloses a screen rotation method, a screen rotation device and a mobile terminal. The device comprises an acquisition module and an execution module, wherein the acquisition module is used for acquiring real-time rotation angle data generated by rotation operation of a terminal by a current user; and the execution module is used for comparing the real-time rotation angle data with historical data stored in a preset database, and executes the screen rotation operation if the real-time rotation angle data are matched with the historical data. According to the invention, the problem that the reaction speed for mutual switch between a transverse screen and a vertical screen is slow when a picture is browsed by using the mobile terminal can be solved; the switch operation between the transverse screen and the vertical screen can be carried out according to user habits when the picture is browsed by using the mobile terminal; and thus, the efficiency and the flexibility for mutual switch between the transverse screen and the vertical screen are improved.

Description

Screen rotation method, device and mobile terminal

Technical field

The present invention relates to technical field of mobile terminals, particularly relate to a kind of screen rotation method, device and mobile terminal.

Background technology

Along with the development of mobile communication technology, the application program being applied to the mobile terminals such as mobile phone gets more and more, and function is also more and more perfect, and existing a large amount of mobile phone has all possessed the function using application program to carry out browsing pictures at present.

Wherein, whether the convenience of picture browsing has vital effect to the quality of user experience, and user, when browsing photo, can check from different angles, so horizontal screen shields with perpendicular the reaction speed mutually switched during browsing pictures, Consumer's Experience is had a great impact.

In the prior art, the overwhelming majority has the mobile phone of picture browsing function, and its horizontal screen carried transfers the effect of perpendicular screen to, and not only reaction speed is slow, and is difficult to hold to the anglec of rotation, causes bad Consumer's Experience.

Summary of the invention

Main purpose of the present invention is to propose a kind of screen rotation method, device and mobile terminal, be intended to realize to carry out horizontal/vertical screen handover operation according to user's use habit when using mobile terminal browsing pictures, improve horizontal screen and shield with perpendicular the efficiency and flexibility that mutually switch.

For achieving the above object, a kind of screen rotating device provided by the invention, comprising:

Acquisition module, carries out to terminal the real time rotation angle-data that rotating operation produces for gathering active user;

Executive Module, for described real time rotation angle-data and the historical data be stored in default database being compared, if described real time rotation angle-data and described historical data match, then performs screen rotation operation.

Alternatively, described device also comprises:

Judge module, for judging whether user uses screen rotation function first;

Logging modle, if use described screen rotation function first for user, then when terminal screen rotates, record many groups user carries out to terminal the pivoting angle data that rotating operation produces, one group of pivoting angle data is obtained by the algorithm computing preset, and as in described storage of history data P to described default database.

Alternatively, described real time rotation angle-data and described historical data include: the anglec of rotation in X, Y, Z tri-reference axis.

Alternatively, described Executive Module, also for the anglec of rotation in X, Y, Z tri-reference axis corresponding with described historical data for the anglec of rotation in tri-reference axis of X, Y, the Z in described real time rotation angle-data being compared respectively; If in the anglec of rotation in X, Y, Z in described real time rotation angle-data tri-reference axis, there are two or more anglecs of rotation to be greater than in described historical data the anglec of rotation in corresponding X, Y, Z tri-reference axis, then perform screen rotation operation.

In addition, for achieving the above object, the present invention also proposes a kind of screen rotation method, comprising:

Gather active user and the real time rotation angle-data that rotating operation produces is carried out to terminal;

Described real time rotation angle-data and the historical data be stored in default database are compared, if described real time rotation angle-data and described historical data match, then performs screen rotation operation.

Alternatively, described collection active user also comprises before carrying out the step of the real time rotation angle-data that rotating operation produces:

Judge whether user uses screen rotation function first;

If user uses described screen rotation function first, then when terminal screen rotates, record many groups user carries out to terminal the pivoting angle data that rotating operation produces, one group of pivoting angle data is obtained by the algorithm computing preset, and as in described storage of history data P to described default database.

Alternatively, described real time rotation angle-data and described historical data include: the anglec of rotation in X, Y, Z tri-reference axis.

Alternatively, described real time rotation angle-data and the historical data in the database preset are compared, if described real time rotation angle-data and described historical data match, then the step performing screen rotation operation comprises:

The anglec of rotation in X, Y, Z tri-reference axis corresponding with described historical data for the anglec of rotation in X, Y, Z in described real time rotation angle-data tri-reference axis is compared respectively;

If in the anglec of rotation in X, Y, Z in described real time rotation angle-data tri-reference axis, there are two or more anglecs of rotation to be greater than in described historical data the anglec of rotation in corresponding X, Y, Z tri-reference axis, then perform screen rotation operation.

In addition, for achieving the above object, the present invention also proposes a kind of mobile terminal, comprising: device as above.

Alternatively, described mobile terminal also comprises:

Gyroscope, for obtaining the anglec of rotation in described X, Y, Z tri-reference axis.

The invention discloses a kind of screen rotating device and method, by arranging acquisition module, for gathering active user, the real time rotation angle-data that rotating operation produces being carried out to terminal; Executive Module, for described real time rotation angle-data and the historical data be stored in default database are compared, if described real time rotation angle-data and described historical data match, then perform screen rotation operation, solve in prior art when using mobile terminal browsing pictures, horizontal screen shields the slow problem of the mutual reaction speed switched with perpendicular, achieve when using mobile terminal browsing pictures, horizontal/vertical screen handover operation can be carried out according to user's use habit, improve horizontal screen and shield with perpendicular the efficiency and flexibility that mutually switch.

Accompanying drawing explanation

Fig. 1 is the hardware configuration schematic diagram realizing each embodiment of the present invention optional mobile terminal;

Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;

Fig. 3 is the high-level schematic functional block diagram of screen rotating device first embodiment of the present invention and the second embodiment;

Fig. 4 be terminal of the present invention when being in vertical state, the schematic diagram of X, Y, Z tri-reference axis;

Fig. 5 is the high-level schematic functional block diagram of screen rotating device of the present invention 3rd embodiment;

Fig. 6 is the high-level schematic functional block diagram of mobile terminal first embodiment of the present invention;

Fig. 7 is the schematic flow sheet of screen rotation method first embodiment of the present invention and the second embodiment;

Fig. 8 is the schematic flow sheet of screen rotation method the 3rd embodiment of the present invention;

Described real time rotation angle-data and the historical data in the database preset compare in the embodiment of the present invention by Fig. 9, if described real time rotation angle-data and described historical data match, then perform a kind of schematic flow sheet of screen rotation operation.

The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.

Embodiment

Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.

The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.

Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the mobile terminal of such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc.

Fig. 1 is the hardware configuration schematic diagram realizing each embodiment of the present invention optional mobile terminal.

Mobile terminal 100 can comprise wireless communication unit 110, user input unit 130, sensing cell 140, output unit 150, memory 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, does not require to implement all assemblies illustrated.Can alternatively implement more or less 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 the radio communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise, mobile communication module 112, wireless Internet module 113.

Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.

Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.

A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.

Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell can comprise transducer, such as gyroscope etc., in order to detect mobile terminal X, Y, Z tri-reference axis pointed by direction, obtain the anglec of rotation in described X, Y, Z tri-reference axis, and then judge the perpendicular screen of the whether horizontal screen of mobile terminal.

Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).

In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.

Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151 etc.

Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.

Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input unit and output device.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display units (or other display unit), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.

Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.

Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (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 the memory function of execute store 160 network storage device with by network cooperates.

Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.

Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.

Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.

So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.

Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.

Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.

Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA), code division multiple access (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.

With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.

Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).

Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.

As shown in Figure 2, several global positioning system (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.

In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.Such as GPS tracking technique is coordinated to obtain the locating information wanted with satellite 300.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.

As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.

Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of apparatus of the present invention is proposed.

As shown in Figure 3, first embodiment of the invention proposes a kind of screen rotating device, comprising:

Acquisition module 400, carries out to terminal the real time rotation angle-data that rotating operation produces for gathering active user.

The executive agent of screen rotating device of the present invention can be the mobile terminals such as a kind of smart mobile phone, panel computer, and the present embodiment is illustrated with mobile phone, is certainly also not limited to the portable set that other can realize screen rotation.

Particularly, first, whether acquisition module 400 couples of users are in picture browsing state and detect.

Wherein, user carries out multiple thumbnail picture browsings or from multiple thumbnail pictures, selects a pictures to carry out single picture when browsing, and namely judges that user is in browsing pictures state; Otherwise, judge that user is in non-browsing pictures state.

Wherein, if mobile phone judges that user is in non-browsing pictures state, then do not perform screen rotation operation, preventing user from when using other application, screen rotation occurring, causing bad Consumer's Experience.

After successfully judging that user is in browsing pictures state, acquisition module 400 gathers active user and carries out the real time rotation angle-data that rotating operation produces.

Wherein, with reference to figure 4, user rotates the state of mobile phone, can embody, be provided with gyroscope in above-mentioned mobile phone with the form of the anglec of rotation of mobile phone, for obtaining the rotational angle data feedback of X, Y, Z axis to mobile phone, thus the rotary state of detection of handset.

Wherein, mobile phone is monitored in real time to gyroscope, collection active user carries out the real time rotation angle-data that rotating operation produces, above-mentioned real time rotation angle-data comprises the anglec of rotation in X, Y, Z tri-reference axis, when specific implementation, the real time rotation angle-data that collects can be set as (x0, y0, z0).

In addition, in the specific implementation, acquisition module 400 can also detect user be in viewing video, play games or other need the state of carrying out screen rotation time, the real time rotation angle-data collection that rotating operation produces is carried out to active user.

Executive Module 500, for described real time rotation angle-data and the historical data be stored in default database being compared, if described real time rotation angle-data and described historical data match, then performs screen rotation operation.

Particularly, first, after successful acquisition active user carries out the real time rotation angle-data that rotating operation produces, real time rotation angle-data and historical data compare by Executive Module 500.

Wherein, above-mentioned historical data refers to, detect user carry out rotating operation terminal screen is rotated time, mobile phone recording user carries out the pivoting angle data that rotating operation produces, namely record is carried out to the use habit of user, above-mentioned pivoting angle data comprises the anglec of rotation in X, Y, Z tri-reference axis, and described pivoting angle data is obtained by the algorithm computing preset.

During specific implementation, can in the following way:

First, by gyroscope obtain many group users carry out rotating operation terminal screen is rotated time, the pivoting angle data of the mobile phone X, Y, Z axis obtained, number of times mobile phone being obtained pivoting angle data is set to n, after then obtaining pivoting angle data n time, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) respectively ... (xn, yn, zn).

Then, by following algorithm:

x=(x1+x2+x3+…+xn)/n;

y=(y1+y2+y3+…+yn)/n;

z=(z1+z2+z3+…+zn)/n;

Carry out computing and draw one group of pivoting angle data (x, y, z).

Finally, using this pivoting angle data as historical data, be saved in default database.

Such as: the number of times that mobile phone obtains pivoting angle data is 5 times, after then obtaining pivoting angle data 5 times, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), (x4, y4 respectively,, z4), (x5, y5, z5), by following algorithm:

x=(x1+x2+x3+x4+x5)/5;

y=(y1+y2+y3+y4+y5)/5;

z=(z1+z2+z3+z4+z5)/5;

Carry out computing and draw one group of pivoting angle data (x, y, z), using this pivoting angle data as historical data, be saved in default database.

Wherein, the pivoting angle data (x0, y0, z0) that pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis is corresponding with in X, Y, Z tri-reference axis in historical data compares respectively, compares respectively by x and x0, y and y0, z and z0.

After completing and real time rotation angle-data and historical data being compared, if real time rotation angle-data and historical data match, then perform screen rotation operation; Otherwise, do not perform screen rotation operation.

Wherein, if in the pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis, two or more pivoting angle data are had to be greater than pivoting angle data (x0, y0, z0) corresponding in X, Y, Z tri-reference axis of historical data, then mobile phone performs screen rotation operation work, makes mobile phone screen switch to horizontal screen by erecting screen.

By such scheme, the invention provides a kind of device that can carry out screen rotation when browsing pictures according to user's use habit, when improve browsing pictures, horizontal screen shield the mutual efficiency that switches and flexibility with perpendicular.

Further, in order to horizontal screen when improving browsing pictures better shield the mutual efficiency that switches and flexibility with perpendicular, second embodiment of the invention proposes a kind of screen rotating device.

As a kind of execution mode, this device comprises:

Acquisition module 400, carries out to terminal the real time rotation angle-data that rotating operation produces for gathering active user.

Particularly, first, acquisition module 400 couples of users whether be in viewing video or other need the state of carrying out screen rotation to detect.

Wherein, if mobile phone judges that user is not in viewing video or other need to carry out the state of screen rotation, then do not perform screen rotation operation, preventing user from when using other application, screen rotation occurring, causing bad Consumer's Experience.

Successfully judging that user is in viewing video, plays games or after other need to carry out the state of screen rotation, acquisition module 400 gathers active user and carries out the real time rotation angle-data that rotating operation produces.

Wherein, with reference to figure 4, user rotates the state of mobile phone, can embody, be provided with gyroscope in above-mentioned mobile phone with the form of the anglec of rotation of mobile phone, for obtaining the rotational angle data feedback of X, Y, Z axis to mobile phone, thus the rotary state of detection of handset.

Wherein, mobile phone is monitored in real time to gyroscope, collection active user carries out the real time rotation angle-data that rotating operation produces, above-mentioned real time rotation angle-data comprises the anglec of rotation in X, Y, Z tri-reference axis, when specific implementation, the real time rotation angle-data that collects can be set as (x0, y0, z0).

Executive Module 500, for described real time rotation angle-data and the historical data be stored in default database being compared, if described real time rotation angle-data and described historical data match, then performs screen rotation operation.

Particularly, first, after successful acquisition active user carries out the real time rotation angle-data that rotating operation produces, real time rotation angle-data and historical data compare by Executive Module 500.

Wherein, above-mentioned historical data refers to, detect user carry out rotating operation terminal screen is rotated time, mobile phone recording user carries out the pivoting angle data that rotating operation produces, namely record is carried out to the use habit of user, above-mentioned pivoting angle data comprises the anglec of rotation in X, Y, Z tri-reference axis, and described pivoting angle data is obtained by the algorithm computing preset.

During specific implementation, can in the following way:

First, by gyroscope obtain many group users carry out rotating operation terminal screen is rotated time, the pivoting angle data of the mobile phone X, Y, Z axis obtained, number of times mobile phone being obtained pivoting angle data is set to n, after then obtaining pivoting angle data n time, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) respectively ... (xn, yn, zn).

Then, by following algorithm:

x=(x1+x2+x3+…+xn)/n;

y=(y1+y2+y3+…+yn)/n;

z=(z1+z2+z3+…+zn)/n;

Carry out computing and draw one group of pivoting angle data (x, y, z).

Finally, using this pivoting angle data as historical data, be saved in default database.

Such as: the number of times that mobile phone obtains pivoting angle data is 5 times, after then obtaining pivoting angle data 5 times, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), (x4, y4 respectively,, z4), (x5, y5, z5), by following algorithm:

x=(x1+x2+x3+x4+x5)/5;

y=(y1+y2+y3+y4+y5)/5;

z=(z1+z2+z3+z4+z5)/5;

Carry out computing and draw one group of pivoting angle data (x, y, z), using this pivoting angle data as historical data, be saved in default database.

Wherein, the pivoting angle data (x0, y0, z0) that pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis is corresponding with in X, Y, Z tri-reference axis in historical data compares respectively, compares respectively by x and x0, y and y0, z and z0.

After completing and real time rotation angle-data and historical data being compared, if real time rotation angle-data and historical data match, then perform screen rotation operation; Otherwise, do not perform screen rotation operation.

Wherein, if in the pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis, two or more pivoting angle data are had to be greater than pivoting angle data (x0, y0, z0) corresponding in X, Y, Z tri-reference axis of historical data, then mobile phone performs screen rotation operation work, can be make mobile phone screen switch to horizontal screen by erecting screen.

During specific implementation, can in the following way:

The first execution mode:

Setting is as pivoting angle data x > x0, y > y0, and mobile phone performs screen rotation operation.

The second execution mode:

Setting is as pivoting angle data x > x0, z > z0, and mobile phone performs screen rotation operation.

The third execution mode:

Setting is as pivoting angle data y > y0, z > z0, and mobile phone performs screen rotation operation.

4th kind of execution mode:

Setting is as pivoting angle data x > x0, y > y0, z > z0, and mobile phone performs screen rotation operation.

Wherein, specific code real time rotation angle-data and historical data being compared and performed screen rotation operation realizes as follows:

By such scheme, the invention provides a kind of device that can carry out screen rotation when browsing pictures according to user's use habit, when improve browsing pictures, horizontal screen shield the mutual efficiency that switches and flexibility with perpendicular.

As shown in Figure 5, third embodiment of the invention proposes a kind of screen rotating device, and on the basis of device as shown in Figure 3, this device also comprises:

Judge module 600, for judging whether user uses screen rotation function first.

Particularly, when user carries out rotating operation to mobile phone, whether judge module 600 couples of users use screen rotation function to judge first.

Wherein, if user is non-use screen rotation function first, then recording user does not carry out the pivoting angle data that rotating operation produces.

Logging modle 700, if use described screen rotation function first for user, then when terminal screen rotates, record many groups user carries out to terminal the pivoting angle data that rotating operation produces, one group of pivoting angle data is obtained by the algorithm computing preset, and as in described storage of history data P to described default database.

Particularly, determining after user uses described screen rotation function first, logging modle 700 is when terminal screen rotates, record many groups user carries out to terminal the pivoting angle data that rotating operation produces, one group of pivoting angle data is obtained by the algorithm computing preset, and as storage of history data P in the database preset.

Wherein, detect user carry out rotating operation terminal screen is rotated time, mobile phone recording user carries out the pivoting angle data that rotating operation produces, and namely carries out record to the use habit of user, and above-mentioned pivoting angle data comprises the anglec of rotation in X, Y, Z tri-reference axis.

During specific implementation, can in the following way:

First, by gyroscope obtain many group users carry out rotating operation terminal screen is rotated time, the pivoting angle data of the mobile phone X, Y, Z axis obtained, the number of times obtaining pivoting angle data is set to n, after then obtaining pivoting angle data n time, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) respectively ... (xn, yn, zn).

Then, by following algorithm:

x=(x1+x2+x3+…+xn)/n;

y=(y1+y2+y3+…+yn)/n;

z=(z1+z2+z3+…+zn)/n;

Carry out computing and draw one group of pivoting angle data (x, y, z).

Finally, using this pivoting angle data as historical data, be saved in default database.

Such as: the number of times that mobile phone obtains pivoting angle data is 5 times, after then obtaining pivoting angle data 5 times, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), (x4, y4 respectively,, z4), (x5, y5, z5), by following algorithm:

x=(x1+x2+x3+x4+x5)/5;

y=(y1+y2+y3+y4+y5)/5;

z=(z1+z2+z3+z4+z5)/5;

Carry out computing and draw one group of pivoting angle data (x, y, z), using this pivoting angle data as historical data, be saved in default database.

By such scheme, the invention provides a kind of device that can carry out screen rotation when browsing pictures according to user's use habit, when further increasing browsing pictures, horizontal screen shield the mutual efficiency that switches and flexibility with perpendicular.

Further, in order to horizontal screen when improving browsing pictures better shield the mutual efficiency that switches and flexibility with perpendicular, as a kind of execution mode, described Executive Module 500, also for the anglec of rotation in X, Y, Z tri-reference axis corresponding with described historical data for the anglec of rotation in tri-reference axis of X, Y, the Z in described real time rotation angle-data being compared respectively; If in the anglec of rotation in X, Y, Z in described real time rotation angle-data tri-reference axis, there are two or more anglecs of rotation to be greater than in described historical data the anglec of rotation in corresponding X, Y, Z tri-reference axis, then perform screen rotation operation.

Particularly, after successful acquisition active user carries out the real time rotation angle-data that rotating operation produces, the pivoting angle data (x0, y0, z0) that pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis is corresponding with in X, Y, Z tri-reference axis in historical data compares by mobile phone respectively, compares respectively by x and x0, y and y0, z and z0.

After completing and real time rotation angle-data and historical data being compared, if real time rotation angle-data and historical data match, then perform screen rotation operation; Otherwise, do not perform screen rotation operation.

Wherein, if in the pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis, two or more pivoting angle data are had to be greater than pivoting angle data (x0, y0, z0) corresponding in X, Y, Z tri-reference axis of historical data, then mobile phone performs screen rotation operation, makes terminal screen switch to horizontal screen by erecting screen.

During specific implementation, can in the following way:

The first execution mode:

Setting is as pivoting angle data x > x0, y > y0, and mobile phone performs screen rotation operation.

The second execution mode:

Setting is as pivoting angle data x > x0, z > z0, and mobile phone performs screen rotation operation.

The third execution mode:

Setting is as pivoting angle data y > y0, z > z0, and mobile phone performs screen rotation operation.

4th kind of execution mode:

Setting is as pivoting angle data x > x0, y > y0, z > z0, and mobile phone performs screen rotation operation.

Wherein, specific code real time rotation angle-data and historical data being compared and performed screen rotation operation realizes as follows:

By such scheme, the invention provides a kind of device that can carry out screen rotation when browsing pictures according to user's use habit, when further increasing browsing pictures, horizontal screen shield the mutual efficiency that switches and flexibility with perpendicular.

The present invention further provides a kind of mobile terminal.

As shown in Figure 6, the embodiment of the present invention proposes a kind of mobile terminal, comprises the device in above-described embodiment.

Particularly, said apparatus comprises acquisition module 400, Executive Module 500, judge module 600 and logging modle 700.

Wherein, acquisition module 400 carries out to terminal the real time rotation angle-data that rotating operation produces for gathering active user; Executive Module 500, for described real time rotation angle-data and the historical data be stored in default database being compared, if described real time rotation angle-data and described historical data match, then performs screen rotation operation; Judge module 600 is for judging whether user uses screen rotation function first; If logging modle 700 uses described screen rotation function first for user, then when terminal screen rotates, record many groups user carries out to terminal the pivoting angle data that rotating operation produces, one group of pivoting angle data is obtained by the algorithm computing preset, and as in described storage of history data P to described default database.

Wherein, above-mentioned Executive Module 500 is also for comparing the anglec of rotation in X, Y, Z tri-reference axis corresponding with described historical data for the anglec of rotation in tri-reference axis of X, Y, the Z in described real time rotation angle-data respectively; If in the anglec of rotation in X, Y, Z in described real time rotation angle-data tri-reference axis, two or more anglecs of rotation are had to be greater than in described historical data the anglec of rotation in corresponding X, Y, Z tri-reference axis, then performing screen rotation operation, making terminal screen switch to horizontal screen by erecting screen.

Further, described mobile terminal also comprises, and also comprises gyroscope A, and gyroscope A is for obtaining the anglec of rotation in X, Y, Z tri-reference axis.

By such scheme, the invention provides a kind of mobile terminal that can carry out screen rotation when browsing pictures according to user's use habit, when improve browsing pictures, horizontal screen shield the mutual efficiency that switches and flexibility with perpendicular.

The present invention further provides a kind of screen rotation method.

As shown in Figure 7, the first embodiment of a kind of screen rotation method of the present invention, implement based on the screen rotating device described in above-described embodiment, the method comprises:

Step S1, gathers active user and carries out to terminal the real time rotation angle-data that rotating operation produces.

The executive agent of screen rotation method of the present invention can be the mobile terminals such as a kind of smart mobile phone, panel computer, and the present embodiment is illustrated with mobile phone, is certainly also not limited to the portable set that other can realize screen rotation.

Particularly, first, whether mobile phone is in picture browsing state to user and detects.

Wherein, user carries out multiple thumbnail picture browsings or from multiple thumbnail pictures, selects a pictures to carry out single picture when browsing, and namely judges that user is in browsing pictures state; Otherwise, judge that user is in non-browsing pictures state.

Wherein, if mobile phone judges that user is in non-browsing pictures state, then do not perform screen rotation operation, preventing user from when using other application, screen rotation occurring, causing bad Consumer's Experience.

After successfully judging that user is in browsing pictures state, mobile phone collection active user carries out the real time rotation angle-data that rotating operation produces.

Wherein, with reference to figure 4, user rotates the state of mobile phone, can embody, be provided with gyroscope in above-mentioned mobile phone with the form of the anglec of rotation of mobile phone, for obtaining the rotational angle data feedback of X, Y, Z axis to mobile phone, thus the rotary state of detection of handset.

Wherein, mobile phone is monitored in real time to gyroscope, collection active user carries out the real time rotation angle-data that rotating operation produces, above-mentioned real time rotation angle-data comprises the anglec of rotation in X, Y, Z tri-reference axis, when specific implementation, the real time rotation angle-data that collects can be set as (x0, y0, z0).

In addition, in the specific implementation, mobile phone can also detect user be in viewing video, play games or other need the state of carrying out screen rotation time, gather active user and carry out the real time rotation angle-data that rotating operation produces.

Step S2, compares described real time rotation angle-data and the historical data be stored in default database, if described real time rotation angle-data and described historical data match, then performs screen rotation operation.

Particularly, first, after successful acquisition active user carries out the real time rotation angle-data that rotating operation produces, real time rotation angle-data and historical data compare by mobile phone.

Wherein, above-mentioned historical data refers to, detect user carry out rotating operation terminal screen is rotated time, mobile phone recording user carries out the pivoting angle data that rotating operation produces, namely record is carried out to the use habit of user, above-mentioned pivoting angle data comprises the anglec of rotation in X, Y, Z tri-reference axis, and described pivoting angle data is obtained by the algorithm computing preset.

During specific implementation, can in the following way:

First, by gyroscope obtain many group users carry out rotating operation terminal screen is rotated time, the pivoting angle data of the mobile phone X, Y, Z axis obtained, number of times mobile phone being obtained pivoting angle data is set to n, after then obtaining pivoting angle data n time, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) respectively ... (xn, yn, zn).

Then, by following algorithm:

x=(x1+x2+x3+…+xn)/n;

y=(y1+y2+y3+…+yn)/n;

z=(z1+z2+z3+…+zn)/n;

Carry out computing and draw one group of pivoting angle data (x, y, z).

Finally, using this pivoting angle data as historical data, be saved in default database.

Such as: the number of times that mobile phone obtains pivoting angle data is 5 times, after then obtaining pivoting angle data 5 times, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), (x4, y4 respectively,, z4), (x5, y5, z5), by following algorithm:

x=(x1+x2+x3+x4+x5)/5;

y=(y1+y2+y3+y4+y5)/5;

z=(z1+z2+z3+z4+z5)/5;

Carry out computing and draw one group of pivoting angle data (x, y, z), using this pivoting angle data as historical data, be saved in default database.

Wherein, the pivoting angle data (x0, y0, z0) that pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis is corresponding with in X, Y, Z tri-reference axis in historical data compares respectively, compares respectively by x and x0, y and y0, z and z0.

After completing and real time rotation angle-data and historical data being compared, if real time rotation angle-data and historical data match, then perform screen rotation operation; Otherwise, do not perform screen rotation operation.

Wherein, if in the pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis, two or more pivoting angle data are had to be greater than pivoting angle data (x0, y0, z0) corresponding in X, Y, Z tri-reference axis of historical data, then mobile phone performs screen rotation operation work, makes mobile phone screen switch to horizontal screen by erecting screen.

By such scheme, the invention provides a kind of method can carrying out screen rotation when browsing pictures according to user's use habit, when improve browsing pictures, horizontal screen shield the mutual efficiency that switches and flexibility with perpendicular.

Further, in order to horizontal screen when improving browsing pictures better shield the mutual efficiency that switches and flexibility with perpendicular, the present invention proposes a kind of second embodiment of screen rotation method, and the method comprises:

Step S1, gathers active user and carries out to terminal the real time rotation angle-data that rotating operation produces.

Particularly, first, mobile phone to user whether be in viewing video or other need the state of carrying out screen rotation to detect.

Wherein, if mobile phone judges that user is not in viewing video or other need to carry out the state of screen rotation, then do not perform screen rotation operation, preventing user from when using other application, screen rotation occurring, causing bad Consumer's Experience.

Successfully judging that user is in viewing video, plays games or after other need to carry out the state of screen rotation, mobile phone gathers active user and carries out the real time rotation angle-data that rotating operation produces.

Wherein, with reference to figure 4, user rotates the state of mobile phone, can embody with the form of the anglec of rotation of mobile phone, gyroscope is provided with in above-mentioned mobile phone, for the direction by detecting pointed by each reference axis, obtain the rotational angle data feedback of X, Y, Z axis to mobile phone, thus the rotary state of detection of handset.

Wherein, mobile phone is monitored in real time to gyroscope, by detecting the direction pointed by each reference axis of gyroscope, collection active user carries out the real time rotation angle-data that rotating operation produces, above-mentioned real time rotation angle-data comprises the anglec of rotation in X, Y, Z tri-reference axis, when specific implementation, the real time rotation angle-data that collects can be set as (x0, y0, z0).

Step S2, compares described real time rotation angle-data and the historical data be stored in default database, if described real time rotation angle-data and described historical data match, then performs screen rotation operation.

Particularly, first, after successful acquisition active user carries out the real time rotation angle-data that rotating operation produces, real time rotation angle-data and historical data compare by mobile phone.

Wherein, above-mentioned historical data refers to, detect user carry out rotating operation terminal screen is rotated time, mobile phone recording user carries out the pivoting angle data that rotating operation produces, namely record is carried out to the use habit of user, above-mentioned pivoting angle data comprises the anglec of rotation in X, Y, Z tri-reference axis, and described pivoting angle data is obtained by the algorithm computing preset.

During specific implementation, can in the following way:

First, by gyroscope obtain many group users carry out rotating operation terminal screen is rotated time, the pivoting angle data of the mobile phone X, Y, Z axis obtained, number of times mobile phone being obtained pivoting angle data is set to n, after then obtaining pivoting angle data n time, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) respectively ... (xn, yn, zn).

Then, by following algorithm:

x=(x1+x2+x3+…+xn)/n;

y=(y1+y2+y3+…+yn)/n;

z=(z1+z2+z3+…+zn)/n;

Carry out computing and draw one group of pivoting angle data (x, y, z).

Finally, using this pivoting angle data as historical data, be saved in default database.

Such as: the number of times that mobile phone obtains pivoting angle data is 5 times, after then obtaining pivoting angle data 5 times, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), (x4, y4 respectively,, z4), (x5, y5, z5), by following algorithm:

x=(x1+x2+x3+x4+x5)/5;

y=(y1+y2+y3+y4+y5)/5;

z=(z1+z2+z3+z4+z5)/5;

Carry out computing and draw one group of pivoting angle data (x, y, z), using this pivoting angle data as historical data, be saved in default database.

Wherein, the pivoting angle data (x0, y0, z0) that pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis is corresponding with in X, Y, Z tri-reference axis in historical data compares respectively, compares respectively by x and x0, y and y0, z and z0.

After completing and real time rotation angle-data and historical data being compared, if real time rotation angle-data and historical data match, then perform screen rotation operation; Otherwise, do not perform screen rotation operation.

Wherein, if in the pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis, two or more pivoting angle data are had to be greater than pivoting angle data (x0, y0, z0) corresponding in X, Y, Z tri-reference axis of historical data, then mobile phone performs screen rotation operation work, makes mobile phone screen switch to horizontal screen by erecting screen.

During specific implementation, can in the following way:

The first execution mode:

Setting is as pivoting angle data x > x0, y > y0, and mobile phone performs screen rotation operation.

The second execution mode:

Setting is as pivoting angle data x > x0, z > z0, and mobile phone performs screen rotation operation.

The third execution mode:

Setting is as pivoting angle data y > y0, z > z0, and mobile phone performs screen rotation operation.

4th kind of execution mode:

Setting is as pivoting angle data x > x0, y > y0, z > z0, and mobile phone performs screen rotation operation.

Wherein, specific code real time rotation angle-data and historical data being compared and performed screen rotation operation realizes as follows:

By such scheme, the invention provides a kind of method can carrying out screen rotation when browsing pictures according to user's use habit, when improve browsing pictures, horizontal screen shield the mutual efficiency that switches and flexibility with perpendicular.

As shown in Figure 8, the 3rd embodiment of a kind of screen rotation method of the present invention, before based on step S1 as shown in Figure 7, also comprises:

Step S3, judges whether user uses screen rotation function first.

Particularly, when user carries out rotating operation to mobile phone, whether mobile phone uses screen rotation function to judge to user first.

Wherein, if user is non-use screen rotation function first, then recording user does not carry out the pivoting angle data that rotating operation produces.

Step S4, if user uses described screen rotation function first, then when terminal screen rotates, record many groups user carries out to mobile phone the pivoting angle data that rotating operation produces, one group of pivoting angle data is obtained by the algorithm computing preset, and as in described storage of history data P to described default database.

Particularly, determining after user uses described screen rotation function first, mobile phone is when terminal screen rotates, record many groups user carries out to mobile phone the pivoting angle data that rotating operation produces, one group of pivoting angle data is obtained by the algorithm computing preset, and as storage of history data P in the database preset.

Wherein, detect user carry out rotating operation terminal screen is rotated time, mobile phone recording user carries out the pivoting angle data that rotating operation produces, and namely carries out record to the use habit of user, and above-mentioned pivoting angle data comprises the anglec of rotation in X, Y, Z tri-reference axis.

During specific implementation, can in the following way:

First, by gyroscope obtain many group users carry out rotating operation terminal screen is rotated time, the pivoting angle data of the mobile phone X, Y, Z axis obtained, number of times mobile phone being obtained pivoting angle data is set to n, after then obtaining pivoting angle data n time, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) respectively ... (xn, yn, zn).

Then, by following algorithm:

x=(x1+x2+x3+…+xn)/n;

y=(y1+y2+y3+…+yn)/n;

z=(z1+z2+z3+…+zn)/n;

Carry out computing and draw one group of pivoting angle data (x, y, z).

Finally, using this pivoting angle data as historical data, be saved in default database.

Such as: the number of times that mobile phone obtains pivoting angle data is 5 times, after then obtaining pivoting angle data 5 times, the data obtained are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), (x4, y4 respectively,, z4), (x5, y5, z5), by following algorithm:

x=(x1+x2+x3+x4+x5)/5;

y=(y1+y2+y3+y4+y5)/5;

z=(z1+z2+z3+z4+z5)/5;

Carry out computing and draw one group of pivoting angle data (x, y, z), using this pivoting angle data as historical data, be saved in default database.

By such scheme, the invention provides a kind of method can carrying out screen rotation when browsing pictures according to user's use habit, when further increasing browsing pictures, horizontal screen shield the mutual efficiency that switches and flexibility with perpendicular.

Further, in order to horizontal screen when improving browsing pictures better shield the mutual efficiency that switches and flexibility with perpendicular, described real time rotation angle-data and the historical data in the database preset compare in the specific embodiment of the invention by Fig. 9, if described real time rotation angle-data and described historical data match, then perform a kind of schematic flow sheet of the step of screen rotation operation.

As a kind of execution mode, above-mentioned steps S2 comprises:

Step S21, compares respectively by the anglec of rotation in X, Y, Z tri-reference axis corresponding with described historical data for the anglec of rotation in tri-reference axis of X, Y, the Z in described real time rotation angle-data.

Particularly, after successful acquisition active user carries out the real time rotation angle-data that rotating operation produces, the pivoting angle data (x0, y0, z0) that pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis is corresponding with in X, Y, Z tri-reference axis in historical data compares by mobile phone respectively, compares respectively by x and x0, y and y0, z and z0.

Step S22, if in the anglec of rotation in X, Y, Z in described real time rotation angle-data tri-reference axis, there are two or more anglecs of rotation to be greater than in described historical data the anglec of rotation in corresponding X, Y, Z tri-reference axis, then perform screen rotation operation.

Particularly, after completing and real time rotation angle-data and historical data being compared, if real time rotation angle-data and historical data match, then mobile phone performs screen rotation operation; Otherwise, do not perform screen rotation operation.

Wherein, if in the pivoting angle data (x, y, z) in X, Y, Z in real time rotation angle-data tri-reference axis, two or more pivoting angle data are had to be greater than pivoting angle data (x0, y0, z0) corresponding in X, Y, Z tri-reference axis of historical data, then mobile phone performs screen rotation operation, makes mobile phone screen switch to horizontal screen by erecting screen.

During specific implementation, can in the following way:

The first execution mode:

Setting is as pivoting angle data x > x0, y > y0, and mobile phone performs screen rotation operation.

The second execution mode:

Setting is as pivoting angle data x > x0, z > z0, and mobile phone performs screen rotation operation.

The third execution mode:

Setting is as pivoting angle data y > y0, z > z0, and mobile phone performs screen rotation operation.

4th kind of execution mode:

Setting is as pivoting angle data x > x0, y > y0, z > z0, and mobile phone performs screen rotation operation.

Wherein, specific code real time rotation angle-data and historical data being compared and performed screen rotation operation realizes as follows:

By such scheme, the invention provides a kind of method can carrying out screen rotation when browsing pictures according to user's use habit, when further increasing browsing pictures, horizontal screen shield the mutual efficiency that switches and flexibility with perpendicular.

It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is 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 can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.

These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a screen rotating device, is characterized in that, described device comprises:
Acquisition module, carries out to terminal the real time rotation angle-data that rotating operation produces for gathering active user;
Executive Module, for described real time rotation angle-data and the historical data be stored in default database being compared, if described real time rotation angle-data and described historical data match, then performs screen rotation operation.
2. device according to claim 1, is characterized in that, described device also comprises:
Judge module, for judging whether user uses screen rotation function first;
Logging modle, if use described screen rotation function first for user, then when terminal screen rotates, record many groups user carries out to terminal the pivoting angle data that rotating operation produces, one group of pivoting angle data is obtained by the algorithm computing preset, and as in described storage of history data P to described default database.
3. device according to claim 2, is characterized in that, described real time rotation angle-data and described historical data include: the anglec of rotation in X, Y, Z tri-reference axis.
4. device according to claim 3, is characterized in that,
Described Executive Module, also for the anglec of rotation in X, Y, Z tri-reference axis corresponding with described historical data for the anglec of rotation in tri-reference axis of X, Y, the Z in described real time rotation angle-data being compared respectively; If in the anglec of rotation in X, Y, Z in described real time rotation angle-data tri-reference axis, there are two or more anglecs of rotation to be greater than in described historical data the anglec of rotation in corresponding X, Y, Z tri-reference axis, then perform screen rotation operation.
5. a screen rotation method, is characterized in that, described method comprises:
Gather active user and the real time rotation angle-data that rotating operation produces is carried out to terminal;
Described real time rotation angle-data and the historical data be stored in default database are compared, if described real time rotation angle-data and described historical data match, then performs screen rotation operation.
6. method according to claim 5, is characterized in that, described collection active user also comprises before carrying out the step of the real time rotation angle-data that rotating operation produces:
Judge whether user uses screen rotation function first;
If user uses described screen rotation function first, then when terminal screen rotates, record many groups user carries out to terminal the pivoting angle data that rotating operation produces, one group of pivoting angle data is obtained by the algorithm computing preset, and as in described storage of history data P to described default database.
7. method according to claim 6, is characterized in that, described real time rotation angle-data and described historical data include: the anglec of rotation in X, Y, Z tri-reference axis.
8. method according to claim 7, it is characterized in that, described real time rotation angle-data and the historical data in the database preset are compared, if described real time rotation angle-data and described historical data match, then the step performing screen rotation operation comprises:
The anglec of rotation in X, Y, Z tri-reference axis corresponding with described historical data for the anglec of rotation in X, Y, Z in described real time rotation angle-data tri-reference axis is compared respectively;
If in the anglec of rotation in X, Y, Z in described real time rotation angle-data tri-reference axis, there are two or more anglecs of rotation to be greater than in described historical data the anglec of rotation in corresponding X, Y, Z tri-reference axis, then perform screen rotation operation.
9. a mobile terminal, is characterized in that, described mobile terminal comprises the device according to any one of Claims 1-4.
10. mobile terminal according to claim 9, is characterized in that, described mobile terminal also comprises:
Gyroscope, for obtaining the anglec of rotation in described X, Y, Z tri-reference axis.
CN201510865773.0A 2015-11-27 2015-11-27 Screen rotation method, screen rotation device and mobile terminal CN105376413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510865773.0A CN105376413A (en) 2015-11-27 2015-11-27 Screen rotation method, screen rotation device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510865773.0A CN105376413A (en) 2015-11-27 2015-11-27 Screen rotation method, screen rotation device and mobile terminal

Publications (1)

Publication Number Publication Date
CN105376413A true CN105376413A (en) 2016-03-02

Family

ID=55378202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510865773.0A CN105376413A (en) 2015-11-27 2015-11-27 Screen rotation method, screen rotation device and mobile terminal

Country Status (1)

Country Link
CN (1) CN105376413A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610771A (en) * 2016-12-12 2017-05-03 广州神马移动信息科技有限公司 Method and device for generating and adaptively rotating speech recognition interface
CN107094200A (en) * 2016-12-14 2017-08-25 口碑控股有限公司 A kind of method and device of view adjustment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375689A (en) * 2011-09-23 2012-03-14 上海量明科技发展有限公司 Method and system for operating touch screen
CN103472993A (en) * 2013-09-02 2013-12-25 小米科技有限责任公司 Rotation displaying method, device and terminal equipment
CN103677589A (en) * 2013-12-30 2014-03-26 腾讯科技(深圳)有限公司 Terminal screen picture rotation control method and device
CN104468874A (en) * 2013-09-16 2015-03-25 中国电信股份有限公司 Method for switching one-handed operation mode and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375689A (en) * 2011-09-23 2012-03-14 上海量明科技发展有限公司 Method and system for operating touch screen
CN103472993A (en) * 2013-09-02 2013-12-25 小米科技有限责任公司 Rotation displaying method, device and terminal equipment
CN104468874A (en) * 2013-09-16 2015-03-25 中国电信股份有限公司 Method for switching one-handed operation mode and mobile terminal
CN103677589A (en) * 2013-12-30 2014-03-26 腾讯科技(深圳)有限公司 Terminal screen picture rotation control method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610771A (en) * 2016-12-12 2017-05-03 广州神马移动信息科技有限公司 Method and device for generating and adaptively rotating speech recognition interface
CN107094200A (en) * 2016-12-14 2017-08-25 口碑控股有限公司 A kind of method and device of view adjustment

Similar Documents

Publication Publication Date Title
CN104902463A (en) Mobile terminal, multi-card management method for virtual card terminal thereof, and server
CN104915141A (en) Method and device for previewing object information
CN104834462A (en) Unlocking method for terminal equipment and terminal equipment
WO2017143847A1 (en) Associated application multi-screen display device and method, and terminal
CN105101173A (en) Multi-data-channel-based data loading apparatus and method
CN105159533A (en) Mobile terminal and automatic verification code input method thereof
CN104991819A (en) Terminal application switching method and apparatus
CN104902477A (en) Authentication terminal, wireless router, wireless router connection method and wireless router connection system
CN104965639A (en) Corner mark management method and apparatus for application icon
CN104714874A (en) Method for intelligently optimizing internal storage of mobile terminal and mobile terminal
CN104750420A (en) Screen capturing method and device
CN104951206A (en) Icon hiding method and device
CN104660912A (en) Photographing method and photographing device
CN104850259A (en) Combination operation method, combination operation apparatus, touch screen operating method and electronic device
CN104866223A (en) Touch operation method and apparatus
CN105101052A (en) Method, system and mobile terminal for transferring SIM card
CN105094643A (en) Page display control method and device
CN104731453A (en) Method and device for adjusting colors of terminal icon texts
CN104808912A (en) Input interface adjusting method and device
CN105117123A (en) Device and method for displaying hidden object
CN104768198A (en) Mobile terminal and intelligent switching method and device for terminal network of mobile terminal
CN104731512B (en) The method, apparatus and terminal that picture is shared
CN104869230A (en) Mobile terminal control method and apparatus
CN104935575A (en) Login method, and authentication method and device
CN105046131A (en) Fingerprint identification apparatus and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination