CN103809863A - Method and system for adjusting screen display mode in process of application of intelligent terminal - Google Patents

Method and system for adjusting screen display mode in process of application of intelligent terminal Download PDF

Info

Publication number
CN103809863A
CN103809863A CN201210439885.6A CN201210439885A CN103809863A CN 103809863 A CN103809863 A CN 103809863A CN 201210439885 A CN201210439885 A CN 201210439885A CN 103809863 A CN103809863 A CN 103809863A
Authority
CN
China
Prior art keywords
mode
intelligent terminal
user
screen display
character string
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
CN201210439885.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.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication 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 Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201210439885.6A priority Critical patent/CN103809863A/en
Publication of CN103809863A publication Critical patent/CN103809863A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and system for adjusting the screen display mode in the process of application of an intelligent terminal. The method comprises the steps that the modes of a user for grasping the intelligent terminal in the process of the recent N times of application starting are recorded in a record file through a character string, wherein the mode of the user for grasping the intelligent terminal in the process of each time of application starting is recorded in the corresponding bit of the character string, and the N is a preset positive integer value; the record file is read, and statistics is carried out on the modes of the user for grasping the intelligent terminal in the process of application starting; whether the mode with the statistics number larger than N/M exists in the statistics result or not is judged, if yes, screen display of the intelligent terminal is carried out according to the mode, and if not, screen display is carried out according to the default display mode of the intelligent terminal, wherein the M represents the number of types of the user for grasping the intelligent terminal. The method and system for adjusting the screen display mode in the process of application of the intelligent terminal can solve the problem that when the user uses an application, the display modes of the intelligent terminal are frequently switched.

Description

In a kind of intelligent terminal application, adjust the method and system of screen display mode
Technical field
The present invention relates to the communications field, particularly in a kind of intelligent terminal application, adjust the method and system of screen display mode.
Background technology
Intelligent terminal display mode generally includes horizontal screen mode and perpendicular screen mode.Usually, the display mode of intelligent terminal is designed to perpendicular screen mode, i.e. normal UI(User Interface, user interface) display mode is that horizontal length is less than vertical length.But user is using some when application uncomfortable perpendicular screen mode to show, during such as video playback, user's general custom is in the mode of widescreen, and horizontal length is greater than vertical length.
In prior art, use gravity sensing technology to carry out the adjustment of screen display mode.Gravity sensing technology can make intelligent terminal screen be rotated according to user's grasp mode.When user is during by intelligent terminal horizontal positioned, automatically switch into horizontal screen mode by gravity sensing technology screen, the vertical length of display screen is less than the mode of horizontal length; In the time that user vertically places intelligent terminal, automatically switch into perpendicular screen mode by gravity sensing technology screen, the horizontal length of display screen is less than the mode of vertical length.User, by horizontal intelligent terminal while watching video, gravity sensing automatically switches into horizontal screen mode, facilitates user to watch video playback.
But application is adjusted horizontal screen mode or perpendicular screen mode automatically according to gravity sensing, is rotated according to user's grasp mode; Can make the demonstration of application affected by the sensitivity of gravity sensing, and fail complete level or while vertically using intelligent terminal as user, can cause using while applying user, horizontal screen display is shown and is erected the frequent switching that screen display is shown.
Summary of the invention
The invention provides the method and system of adjusting screen display mode in the application of a kind of intelligent terminal, with solve in the time that user uses application, the problem of the frequent switching of the display mode of intelligent terminal.
The invention discloses a kind of adjust screen display mode in intelligent terminal application method, described method comprises:
In log file, while adopting character string to be recorded in nearest N application start, user grasps the mode of intelligent terminal, and when each of described character string records once described application start, user grasps the mode of intelligent terminal, and N is default positive integer value;
Read log file, the mode that during to described application start, user grasps intelligent terminal is added up;
Judge in statistics and whether exist statistics number to be greater than the mode of N/M, if existed, to carry out the screen display of intelligent terminal by which; Otherwise, carry out screen display by the acquiescence display mode of intelligent terminal;
Wherein, M is the species number that user grasps the mode of intelligent terminal.
Preferably, the mode that when described employing character string is recorded in nearest N application start, user grasps intelligent terminal specifically comprises:
In the time that the mode sum of record exceedes the default maximum length of character string, character reach in character string is made to first character shiftout character string, last character soars, and the result that records of the last time is inserted to last character.
Preferably, described method also comprises:
In the time that user closes automatic adjustment display mode function, carry out screen display by the acquiescence display mode of intelligent terminal; And the mode of user when the application start being grasped to intelligent terminal does not keep a record.
Preferably, described method also comprises:
In the time that user selects removing to record, will in log file, delete by record.
Preferably, the value of described N is to be more than or equal to 10 integer.
The invention also discloses the system of adjusting screen display mode in a kind of intelligent terminal application, described system comprises:
Grasp mode logging modle, be used at log file, while adopting character string to be recorded in nearest N application start, user grasps the mode of intelligent terminal, and when each of described character string records once described application start, user grasps the mode of intelligent terminal, wherein, N is default positive integer value;
Grasp mode statistical module, for reading log file, the mode that during to described application start, user grasps intelligent terminal is added up;
Display mode determination module, for judging that whether statistics exists statistics number to be greater than the mode of N/M, if existed, carries out the screen display of intelligent terminal by which; Otherwise, carry out screen display by the acquiescence display mode of intelligent terminal;
Wherein, M is the species number that user grasps the mode of intelligent terminal.
Preferably, grasp mode logging modle specifically for: when the mode sum of record is while exceeding the default maximum length of character string, character reach in character string is made to first character shiftout character string, and last character soars, and the result that records of the last time is inserted to last character.
Preferably, described system also comprises:
Functional switch module, when close automatic adjustment display mode function as user, carries out screen display by the acquiescence display mode of intelligent terminal; And the mode of indicating described grasp mode logging modle to grasp intelligent terminal to user when the application start does not keep a record.
Preferably, described system also comprises: record purge module, and while record for selecting as user to remove, indicate described grasp mode logging modle that record in log file is deleted.
Preferably, the value of described N is to be more than or equal to 10 integer.
The invention has the beneficial effects as follows: user grasps the mode of intelligent terminal when being recorded in application start, read log file, the mode that during to described application start, user grasps intelligent terminal is added up, determine that according to statistics, in the time that user uses described application, intelligent terminal carries out the mode of screen display; Can in the time that each user uses application, guarantee screen display mode stable of intelligent terminal, avoid due to the impact of gravity sensing sensitivity in the time that user uses application the frequent switching of the display mode of intelligent terminal; And user, without showing adjustment by changing intelligent terminal grasp mode for different application, can adjust to for different application the display mode of this application automatically.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of adjusting the method for screen display mode during the intelligent terminal of the embodiment of the present invention is applied.
Fig. 2 is the process flow diagram of adjusting the method embodiment of screen display mode during the intelligent terminal of the embodiment of the present invention is applied.
Fig. 3 is the structural drawing of adjusting the system of screen display mode during the intelligent terminal of the embodiment of the present invention is applied.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Referring to Fig. 1, in the intelligent terminal application for embodiment provided by the invention, adjust the process flow diagram of the method for screen display mode.
Step S100, in log file, while adopting character string to be recorded in nearest N application start, user grasps the mode of intelligent terminal, and when each of described character string records an application start, user grasps the mode of intelligent terminal.Wherein, N is default positive integer value.
Can know that user grasps the mode of intelligent terminal by multiple prior art, the gyroscope of for example applying in intelligent terminal just can know that user grasps the mode of intelligent terminal.The value of N can, for to be more than or equal to 10 integer, particularly adopt N to equal 10, and the mode that both can make the user of statistics grasp intelligent terminal embodies user habit, can avoid again unnecessary unnecessary statistics, saves the storage space of record.
In the time that the mode sum of record exceedes the default maximum length of character string, character reach in character string is made to first character shiftout character string, last character soars, and the result that records of the last time is inserted to last character.Wherein, default maximum length is N.
Step S200, reads log file, and the mode that during to application start, user grasps intelligent terminal is added up.
Whether step S300, judge in statistics and exist statistics number to be greater than the mode of N/M, if existed, to perform step S400, otherwise, execution step S500.
Step S400, carries out the screen display of intelligent terminal by which.
Step S500, carries out screen display by the acquiescence display mode of intelligent terminal.
N is the number higher limit of the mode of adding up.M is the species number that user grasps the mode of intelligent terminal, is generally two kinds, i.e. horizontal screen mode and perpendicular screen mode.The present embodiment can guarantee screen display mode stable of intelligent terminal in the time that each user uses application, avoids due to the impact of gravity sensing sensitivity in the time that user uses application the frequent switching of the display mode of intelligent terminal.In the present embodiment, carry out the screen display of intelligent terminal by the more mode of accounting example in statistics, can carry out according to user's use habit the screen display of intelligent terminal.
The present embodiment mode that user grasps intelligent terminal during to nearest application start is added up, can guarantee the up-to-date behavior of statistics corresponding to user, in the time that the user of user habit change or use intelligent terminal changes, new custom to user or new user add up in time, and then determine in the time that user uses this application according to statistics, intelligent terminal carries out the mode of screen display, to adapt to user's new custom or new user.
In addition, adopt character string to carry out record, make recording mode convenient and easy, and convenient the various modes that user grasps intelligent terminal when the application start are added up.
Embodiment bis-
In embodiment bis-, except following feature, other features and other embodiment are same or similar, omit and describe at this.
Described method also comprises: in the time that user closes automatic adjustment display mode function, carry out screen display by the acquiescence display mode of intelligent terminal, and the mode that user when the application start grasps intelligent terminal is not kept a record.
Described method also comprises: in the time that user selects removing to record, will in log file, delete by record.
By automatic adjustment display mode function the off option and record purge option are set, increase user can be handling for automatic adjustment display mode function, the present invention operated more flexible.
Embodiment tri-
Referring to Fig. 2, in the intelligent terminal application for the present embodiment, adjust the process flow diagram of the method embodiment of screen display mode.
Step S201, confirms application start.
Step S202, whether judgement is automatically adjusted display mode function and is opened, and if so, performs step S203, otherwise, execution step S207.
In the present embodiment, in application, automatically adjust display mode function and be defaulted as unlatching.
Step S203, while being recorded in application start, user grasps the mode of intelligent terminal.
In the present embodiment, using the longest is that the character string userFrequent of 10 carries out record, and form is as follows: String userFrequent=" 1001111011 ".The mode that user grasps intelligent terminal is horizontal screen and erects two kinds of screens, uses 1 to represent horizontal screen, uses 0 representative to erect screen.
In the time that the figure place of userFrequent is greater than 10, by character reach in userFrequent, to moving to left, from left to right use successively a rear character to upgrade present bit character, then add up-to-date record at rightmost, guarantee only to record the user in the time of application start of nearest 10 times and grasp the mode of intelligent terminal.
In the present embodiment, record be implemented as follows described in.
Be configured to the class at local save data, for example: android.content.SharedPreferences class.Such saves the data in an xml file, and file leaves under specified path catalogue.
For example construct again another one, for generating or revise the class that needs the data of preserving: android.content.SharedPreferences.Editor.
As described below by class save data.
The object that creates or obtain a class for save data having existed, for example, obtain object sharedPreferences by object acquisition function getSharedPreferences ().
Create data edition device, create the object for the class of Update Table, for example: create data edition device editor by editor's function edit () of object sharedPreferences.
The data that the transmission of usage data editing machine need to be preserved, function the putString () save data that setups string of for example usage data editing machine, in this function, first parameter is the variable for save data, for example " userFrequent "; Second parameter is data to be preserved, for example " 11011 ".
Usage data editing machine save data, for example: function the commit () save data that uses editing machine.
Finally, generate xml file, for example, the following xml file of generation, wherein, storage data " 11011 " in variable " userFrequent ".
Figure BDA00002362319700061
Step S204, reads log file, and the mode that during to this application start, user grasps intelligent terminal is added up.
From relevant xml file, search the variable for save data, for example userFrequent, wherein, the figure place of this character string represents the number of times that ever recorded arrives.1 number and 0 number in statistics userFrequent.
In the present embodiment, read described in being implemented as follows of record.
The object that obtains a class for save data having existed, for example, obtain object sharedPreferences by object acquisition function getSharedPreferences ().
By the character string function that obtains of object, for example getString (), obtains data, and in this function, first parameter is the variable of storage data, and second parameter is default value, if do not deposit described variable in preference, will return to this default value.
Step S205, judges the mode that whether exists statistics number to be greater than 5 in statistics, if existed, performs step S206, otherwise, execution step S207.
Step S206, is greater than 5 mode and carries out the screen display of intelligent terminal by statistics number.
Step S207, carries out screen display by the acquiescence display mode of intelligent terminal.
If 1 or 0 number is greater than 5 in statistics, carry out intelligent terminal screen display according to the mode of its representative.When userFrequent is empty, or the number of 1 number and 0 is all less than or equal at 5 o'clock, adopts the acquiescence display mode of intelligent terminal to carry out screen display.
In this enforcement, arrange: automatically adjust display mode function choosing-item, in the time that this option is closed, carry out screen display by the acquiescence display mode of intelligent terminal, and the mode that user when the application start grasps intelligent terminal is not kept a record.In addition, also can close or 1 number and 0 number are all less than or equal at 5 o'clock at this option, adopt gravity sensing in prior art to carry out the adjustment of screen display mode.
In this enforcement, arrange: record purge option, in the time that this option is selected, userFrequent is set to null.
Referring to Fig. 3, in the intelligent terminal application for the embodiment of the present invention, adjust the structural drawing of the system of screen display mode.Described system comprises: grasp mode logging modle 100, grasp mode statistical module 200 and display mode determination module 300.
Grasp mode logging modle 100, at log file, while adopting character string to be recorded in nearest N application start, user grasps the mode of intelligent terminal, and when each of described character string records an application start, user grasps the mode of intelligent terminal.Wherein, N is default positive integer value.
Wherein, grasp mode logging modle 100 specifically for: when the mode sum of record is while exceeding the default maximum length of character string, character reach in character string is made to first character shiftout character string, and last character soars, and the result that records of the last time is inserted to last character.
Grasp mode statistical module 200, for reading log file, the mode that during to application start, user grasps intelligent terminal is added up.
Display mode determination module 300, for judging whether statistics exists statistics number to be greater than the mode of N/M, if existed, carries out the screen display of intelligent terminal by which, otherwise, carry out screen display by the acquiescence display mode of intelligent terminal;
Wherein, M is the species number that user grasps the mode of intelligent terminal.
Wherein, the value of N can, for to be more than or equal to 10 integer, particularly adopt N to equal 10, and the mode that both can make the user of statistics grasp intelligent terminal embodies user habit, can avoid again unnecessary unnecessary statistics, saves the storage space of record.
Further described system also comprises: functional switch module, when close automatic adjustment display mode function as user, carry out screen display by the acquiescence display mode of intelligent terminal; And the mode that indication grasp mode logging modle 100 is grasped intelligent terminal to user when the application start does not keep a record.
Described system also comprises: record purge module, while record for selecting as user to remove, indication grasp mode logging modle 100 is deleted record in log file.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a method of adjusting screen display mode in intelligent terminal application, is characterized in that, described method comprises:
In log file, while adopting character string to be recorded in nearest N application start, user grasps the mode of intelligent terminal, and when each of described character string records once described application start, user grasps the mode of intelligent terminal, and N is default positive integer value;
Read log file, the mode that during to described application start, user grasps intelligent terminal is added up;
Judge in statistics and whether exist statistics number to be greater than the mode of N/M, if existed, to carry out the screen display of intelligent terminal by which; Otherwise, carry out screen display by the acquiescence display mode of intelligent terminal;
Wherein, M is the species number that user grasps the mode of intelligent terminal.
2. method according to claim 1, is characterized in that,
The mode that when described employing character string is recorded in nearest N application start, user grasps intelligent terminal specifically comprises:
In the time that the mode sum of record exceedes the default maximum length of character string, character reach in character string is made to first character shiftout character string, last character soars, and the result that records of the last time is inserted to last character.
3. method according to claim 1, is characterized in that,
Described method also comprises:
In the time that user closes automatic adjustment display mode function, carry out screen display by the acquiescence display mode of intelligent terminal; And the mode of user when the application start being grasped to intelligent terminal does not keep a record.
4. method according to claim 1, is characterized in that,
Described method also comprises:
In the time that user selects removing to record, will in log file, delete by record.
5. method according to claim 1, is characterized in that,
The value of described N is to be more than or equal to 10 integer.
6. a system of adjusting screen display mode in intelligent terminal application, is characterized in that, described system comprises:
Grasp mode logging modle, be used at log file, while adopting character string to be recorded in nearest N application start, user grasps the mode of intelligent terminal, and when each of described character string records once described application start, user grasps the mode of intelligent terminal, wherein, N is default positive integer value;
Grasp mode statistical module, for reading log file, the mode that during to described application start, user grasps intelligent terminal is added up;
Display mode determination module, for judging that whether statistics exists statistics number to be greater than the mode of N/M, if existed, carries out the screen display of intelligent terminal by which; Otherwise, carry out screen display by the acquiescence display mode of intelligent terminal;
Wherein, M is the species number that user grasps the mode of intelligent terminal.
7. system according to claim 6, is characterized in that,
Grasp mode logging modle specifically for: when the mode sum of record is while exceeding the default maximum length of character string, character reach in character string is made to first character shiftout character string, last character soars, and the result that records of the last time is inserted to last character.
8. system according to claim 6, is characterized in that, described system also comprises:
Functional switch module, when close automatic adjustment display mode function as user, carries out screen display by the acquiescence display mode of intelligent terminal; And the mode of indicating described grasp mode logging modle to grasp intelligent terminal to user when the application start does not keep a record.
9. system according to claim 6, is characterized in that,
Described system also comprises: record purge module, and while record for selecting as user to remove, indicate described grasp mode logging modle that record in log file is deleted.
10. system according to claim 6, is characterized in that,
The value of described N is to be more than or equal to 10 integer.
CN201210439885.6A 2012-11-06 2012-11-06 Method and system for adjusting screen display mode in process of application of intelligent terminal Pending CN103809863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210439885.6A CN103809863A (en) 2012-11-06 2012-11-06 Method and system for adjusting screen display mode in process of application of intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210439885.6A CN103809863A (en) 2012-11-06 2012-11-06 Method and system for adjusting screen display mode in process of application of intelligent terminal

Publications (1)

Publication Number Publication Date
CN103809863A true CN103809863A (en) 2014-05-21

Family

ID=50706724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210439885.6A Pending CN103809863A (en) 2012-11-06 2012-11-06 Method and system for adjusting screen display mode in process of application of intelligent terminal

Country Status (1)

Country Link
CN (1) CN103809863A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955590A (en) * 2016-06-24 2016-09-21 广东欧珀移动通信有限公司 Method and apparatus for controlling rotation of screen and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955590A (en) * 2016-06-24 2016-09-21 广东欧珀移动通信有限公司 Method and apparatus for controlling rotation of screen and mobile terminal
CN105955590B (en) * 2016-06-24 2019-03-01 Oppo广东移动通信有限公司 A kind of method, device and mobile terminal controlling screen rotation

Similar Documents

Publication Publication Date Title
CN102135992B (en) Terminal application program classifying method and terminal
CN102308272B (en) Method and device for automatic display of applications on home screen
KR101255390B1 (en) Device specific content indexing for optimized device operation
US20140013336A1 (en) Method for prompting recently used application programs in wireless communication device
KR20100115818A (en) Dynamic formulas for spreadsheet cells
JP6118418B2 (en) Electronic book document processing method, terminal, electronic device, program, and recording medium
CN102215286B (en) Sound and time recording system of embedded multi-channel phone
CN101646139A (en) Method and device for downloading mobile terminal resource
CN105183464B (en) Information display method and device and electronic equipment
CN101996030A (en) Mobile device and common text inserting method thereof
WO2007001615A3 (en) Retrieving graphics from slow retrieval storage devices
CN101980126A (en) Method for arranging and displaying functional icons and electronic terminal
CN104765792B (en) A kind of method, apparatus and system of dimension data storage
CN103809863A (en) Method and system for adjusting screen display mode in process of application of intelligent terminal
JP2006331063A (en) Operation menu change device
CN103369722B (en) Mobile terminal control method and mobile terminal control apparatus
CN105763608B (en) A kind of message treatment method and device for cloud storage system
CN106354791A (en) Browser webpage window processing method and device
US7376397B2 (en) Key setting methods
TW200627150A (en) Storage medium storing multimedia data for providing moving image reproduction function and programming function, and apparatus and method for reproducing moving image
CN102088449A (en) Playing method and device of network video file
CN103634939B (en) Mobile terminal and NFC (Near Field Communication) multifunction management method and system
CN103559074B (en) A kind of analogue communication plug-in unit and method of work thereof
CN104679399B (en) The method and electronic equipment of a kind of information processing
CN103279453B (en) Document handling method and device

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

Application publication date: 20140521

RJ01 Rejection of invention patent application after publication