The display processing method and device of application program
Technical field
The present invention relates to the communications fields, in particular to the display processing method and device of a kind of application program.
Background technology
With the fast development of electronic technology, the mobile terminals such as mobile phone, pad are more and more universal, and configuration is also higher and higher.
Display screen is the major part that people obtain the information such as word, image, video, and a high definition of arranging in pairs or groups, large-sized display screen
Also become the mainstream of mobile terminal instantly.Material, technique of display screen etc. constantly promote main purpose and are just to be able to make
Image is more clear, color is more bright-coloured to improve display effect, brings outstanding visual experience to user, and screen
Display effect also become consumer select electronic product a major criterion.
Existing most of mobile devices all have image processing techniques, to the color of image, brightness, acutance, comparison
Degree etc. has done corresponding reinforcement or processing, and the display effect of screen is made to be greatly improved.Meanwhile the existing movement in part
A variety of image display patterns have been preset in equipment, and user can be facilitated according to the needs of oneself manually select and apply.
Such as static schema or enhancement mode can be selected in browsing pictures, the color in image is enhanced, contrast and sharp
Degree is also corresponding to be improved, and the display effect of image thus greatly improved;And select dynamic mode when watching film or video
Or cinema's pattern, the processing to image detail is reduced at this time, to adapt to the display property of dynamic image, improves the perception of user
And experience.In addition there are the selections of bright-coloured pattern, natural mode etc., and user is facilitated to select different displays according to the hobby of oneself
Effect.
However the adjustment of display pattern is required for user manually to be adjusted according to the application scenarios of oneself or hobby, example
Such as:As shown in Figure 1, terminal needs first to predict the display parameters under different scenes, then switches to and be somebody's turn to do according to the display parameters
The corresponding application scenarios of display parameters, finally open the application program for belonging to the application scenarios again.It so just can not be according to user
Current application scenarios automatically match and switch.Which results in the cumbersome and inconvenient of operation, if switching applied field
Forget that adjusting display pattern just cannot get the required display effect of user after scape, to user perception and use body
It tests and affects.
For the above problem in the related technology, currently no effective solution has been proposed.
Invention content
For in the related technology, there is no the solution for effectively automatically switching application scenarios according to the current application scenarios of user
The technical problems such as scheme, the present invention provides a kind of display processing method of application program and devices, at least to solve above-mentioned ask
Topic.
According to an aspect of the invention, there is provided a kind of display processing method of application program, including:Detection is currently answered
With the application scenarios of program;According to the application scenarios, display parameters corresponding with the application scenarios are set;According to described aobvious
Show that parameter is shown.
Preferably, before display parameters corresponding with the application scenarios being set according to the application scenarios, including:To end
Application program on end is classified according to preset rules, wherein different classes of application program corresponds to different applied fields
Scape.
Preferably, the preset rules include following one:Requirement according to the application program to display effect carries out
Classification;Classify according to the custom rule of user.
Preferably, classify according to preset rules to the application program in terminal, including:To having been installed in the terminal
Application program traversed;Classify to the application program after traversal according to the preset rules;In the application program
Installation process in, classify to the application program according to the preset rules.
Preferably, the display parameters include at least one of:It is color saturation, the contrast of color, brightness, sharp
Degree, backlight adjustment parameter.
Preferably, the application scenarios of current application program are detected, including:Detect the application program that is currently running by
First application program is switched to the second application program;According to the application scenarios, display ginseng corresponding with the application scenarios is set
Before number, including:The application scenarios are switched to described second by the first application scenarios belonging to first application program
The second application scenarios belonging to application program.
According to another aspect of the present invention, a kind of display processing unit of application program is provided, including:Detect mould
Block, the application scenarios for detecting current application program;Setup module, for according to application scenarios setting and the application
The corresponding display parameters of scene;Display module, for being shown according to the display parameters.
Preferably, above-mentioned apparatus includes:Sort module, for dividing according to preset rules the application program in terminal
Class, wherein different classes of application program corresponds to different application scenarios.
Preferably, the setup module, for be arranged include at least one of display parameters:Color saturation, color
Contrast, brightness, acutance, the backlight adjustment parameter of coloured silk.
Preferably, the detection module, for detecting that the application program being currently running is cut by the first application program
Change to the second application program;Described device further includes:Handover module is used for the application scenarios by first application program
The first affiliated application scenarios switch to the second application scenarios belonging to second application program.
Through the invention, the skill for display parameters being set according to application scenarios corresponding with the application program and being shown
Art means solve the solution that there is no effectively automatically switch application scenarios according to the current application scenarios of user in the related technology
The certainly technical problems such as scheme, to which the user experience is improved.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram according to the tradition display setting handoff procedure of the relevant technologies;
Fig. 2 is the flow chart according to the display processing method of the application program of the embodiment of the present invention;
Fig. 3 is the structure diagram according to the display processing unit of the application program of the embodiment of the present invention;
Fig. 4 is another structure diagram according to the display processing unit of the application program of the embodiment of the present invention;
Fig. 5 is the structural schematic diagram according to the display system of the application program of the preferred embodiment of the present invention.
Specific implementation mode
Come that the present invention will be described in detail below with reference to attached drawing and in conjunction with the embodiments.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
Effectively automatically switch the solution of application scenarios according to the current application scenarios of user in view of there is no, in turn
The technical problems such as user experience are influenced, with reference to embodiments and its preferred embodiment provides correspondingly that solution is specifically such as
Under:
Fig. 2 is the flow chart according to the display processing method of the application program of the embodiment of the present invention.As shown in Fig. 2, the party
Method includes:
Step S202 detects the application scenarios of current application program;The meaning of " current " can include but is not limited to herein
Following one process:Operational process after the start-up course of application program, application program launching.
Step S204, according to above application scene setting display parameters corresponding with the application scenarios;
Step S206 is shown according to above-mentioned display parameters.
It should be noted that the execution sequence between above-mentioned steps S202- steps S206 is not limited to said sequence, such as
Step S202 and step S204 can be interchanged.
By above-mentioned processing step, due to when carrying out application program switching, can by the application scenarios of application program from
The dynamic application scenarios switched to corresponding to destination application, also, different application scenarios correspond to different display parameters,
It is thereby achieved that different application is arranged automatically different display effects, user experience effect is improved.
Before carrying out display parameters setting, the correspondence for first knowing application program and application scenarios is needed, in this reality
It applies in example, can classify according to preset rules to the application program in terminal, wherein inhomogeneity before step S204
Other application program corresponds to different application scenarios.Certainly, which can run i.e. each in each display
It carries out being required to classify when the application scenarios corresponding to above application program, can also make the classification after advance classification
For configuration information, direct configurating terminal.
In the present embodiment, the hobby that the determination of above-mentioned preset rules can be based on display effect and user, specifically
Ground, requirement that can be according to application program to display effect are classified, and can also be divided according to the custom rule of user
Class.
Above-mentioned assorting process can be realized through but not limited to following manner:The first realization method, to having pacified in terminal
The application program of dress is traversed;Classify to the application program after traversal according to above-mentioned preset rules;Second of realization side
Formula classifies to the application program according to above-mentioned preset rules in the installation process of application program.
In the present embodiment, above-mentioned display parameters include but not limited at least one of:Pair of color saturation, color
Than degree, brightness, acutance, backlight adjustment parameter.
Above-mentioned steps S202 can show as following implemented form:Detect the application program being currently running by first
Application program is switched to the second application program;Correspondingly, may include following processing procedure before above-mentioned steps S204:It will be described
Application scenarios are switched to the second application belonging to the second application program by the first application scenarios belonging to first application program
Scene.Wherein, the first application scenarios are different with the corresponding display parameters of the second application scenarios.
It, can be random only with above-mentioned second application scenarios or according to preferential when opening multiple second application programs at the same time
Grade selects one of them second application program to be shown, alternatively, showing multiple second applications simultaneously at random or according to priority
Program, specifically:When the second application program is multiple, according to the priority of multiple second application programs by highest priority
Second application program switches to the second application scenarios;Alternatively, at least two second in multiple second application programs are applied journey
Sequence switches to the second application scenarios simultaneously.
A kind of display processing unit of application program is additionally provided in the present embodiment, and the device is for realizing above-mentioned implementation
Example and preferred embodiment, carried out explanation repeats no more, below to involved in the device to module illustrate.
As used below, the combination of the software and/or hardware of predetermined function may be implemented in term " module ".Although following embodiment
Described device preferably realized with software, but the realization of the combination of hardware or software and hardware be also may be simultaneously
It is contemplated.Fig. 3 is the structure diagram according to the display processing unit of the application program of the embodiment of the present invention.As shown in figure 3, should
Device includes:
Detection module 30 is connected to setup module 32, the application scenarios for detecting current application program;
Setup module 32 is connected to display module 34, for according to above application scene setting and above application scene pair
The display parameters answered;
Display module 34, for being shown according to display parameters.
The function of being realized by above-mentioned modules equally may be implemented different application to be arranged automatically different show
Show effect, improves user experience effect.
In the present embodiment, as shown in figure 4, above-mentioned apparatus can also include:Sort module 36, for answering in terminal
Classified according to preset rules with program, wherein different classes of application program corresponds to different application scenarios.The classification
Module 34 can also be that terminal configures above-mentioned classification information.
In a preferred embodiment of the present embodiment, above-mentioned setup module 32 be additionally operable to setting include it is following at least it
One display parameters:Color saturation, the contrast of color, brightness, acutance, backlight adjustment parameter.
Above-mentioned detection module 30 is additionally operable to detect that the application program being currently running is switched to by the first application program
Second application program;Correspondingly, as shown in figure 4, above-mentioned apparatus can also include:Handover module 38 is additionally operable to above application
Scene switches to the second application scenarios belonging to the second application program by the first application scenarios belonging to the first application program, this
Display parameters can be arranged according to the second application scenarios in sample, above-mentioned setup module 32.
Above-described embodiment in order to better understand is described in detail below in conjunction with preferred embodiment.Preferred embodiment below
Main design idea is that terminal adaptively switches display according to the application scenarios of different display properties and is arranged or according to user
Custom rule is arranged, to adapt to current scene display property obtain best display effect or obtain user need it is aobvious
Show effect.
Embodiment 1
The present embodiment provides a kind of methods switching display effect according to different scenes, to judge current application program institute
The scene and display property at place switch over the display setting of display module, and this approach includes the following steps:
(A)Mounted application program in mobile terminal is detected, application program is planted according to different display properties
The classification of liking carry out application program of the user according to oneself is also supported in the division of class;
(B)Optimal display parameters corresponding to different scenes are configured and are changed to adapt to different display properties or expire
The subjective of sufficient user requires;
(C)Whether the unlatching and switching of detection application program, the foreground application that detection occupies display module are sent out in real time
Raw switching, judges whether the application program after switching belongs to the application of the Same Scene of identical display characteristic;
(D)If the transformation of occurrence scene, the corresponding display parameters of new scene are searched from parameter storing/searching device;
(E)Parameter is read from parameter storing/searching device and is written in the control unit of display module, display mould is made
Block is shown according to optimal setting.
The present embodiment also provides a kind of display system of application program, for realizing the above method.As shown in figure 5, this is
System includes:Application program sort module 50, application scenarios classification chart module 52, application scenarios parameter setting module 54, applied field
Scape parameter setting table module 56, application scenarios parameter memory module 58 are searched using real-time detection module 60, application scenarios parameter
Module 62, application scenarios parameter setting module 64, display module 66.
Application program sort module 50, it is above-mentioned for the application program installed in mobile terminal to be detected and classified
The foundation of classification is the display property of application program, in addition can also like classifying to application program according to user.Tool
Body process is as follows:
The application program installed in mobile terminal is scanned, the application program scanned is carried out according to display property
The division of type, such as the more demanding picture browsing scene of display effect, the higher video playing scene of requirement of real-time, need
Want larger acutance and more demanding the take pictures scene and User Defined scene etc. of the reading scene of brightness, color reducibility.
Common the application list under different classifications is prestored in application program sort module, when installing new application, application
Class of procedures module detect first new opplication whether belong in list some classification, if new opplication not in table listings,
Then application program sort module opens user interactive dialog box, so that user voluntarily selects the classification of newly installation application program, and
Update tabulation.Such as there are Meitu Xiu Xiu, fast figure browsing, Galaxy, Photoslide etc., Yong Huan in picture browsing class
When filling Galaxy softwares, software is divided into picture browsing class by application program sort module automatically according to the classification information to prestore;
And video playback class has audio-visual, RockPlayer of storm video, QQ etc., when user newly installs VitalPlayer players, prestores
There is no the classification of this software, sort module to prompt user to manually select new installation procedure when installation is complete for program in classification information
Classification, and update classification information so as to from now on again install when reduce repetitive operation.
Application scenarios classification chart 52, the classification for storing application scenarios.
Application scenarios parameter setting module 54, the module are carried according to the preset corresponding optimized parameter of difference of scene
The setting and modification of parameter are carried out for user interface.Such as in picture browsing scene to color saturation carry out promoted make to show
Show the bright-colored lively of picture, to brightness, acutance and contrast promoted makes that display picture is clear, bright, details shows
Perfection, the backlight of display module, which is adjusted, makes it reduce power consumption while with preferable display effect;Video playing field
Scape is of less demanding to the display of single image, and the saturation degree and contrast to color, which promoted, ensures necessary information in picture
It has been shown that, adjusting backlight luminance improve electric energy;It reads scene and improves brightness and acutance;Scene of taking pictures improves the reduction degree of color
Deng.Parameter setting process supports the self-defined setting of parameter, saturation degree, brightness, acutance, contrast, backlight adjusting etc. different
Parameter all can be liked being adjusted according to user.The arrange parameter of display module includes and is not limited to saturation degree, brightness, sharp
Degree, contrast, backlight adjustment parameter etc..
Application scenarios parameter setting table module 56, the arrange parameter for storing application scenarios display module, including saturation
Spend adjustment parameter, brightness regulation parameter, contrast adjustment parameter, acutance adjustment parameter and backlight illumination adjustment parameter etc..
Application scenarios parameter memory module 58, for preserving the optimized parameter for meeting corresponding display under application scenarios and requiring,
It is used to preserve the matching relationship of the corresponding optimal display parameters of scene of different display properties.
It is above-mentioned for being detected in real time to the unlatching of foreground application and switching using real-time detection module 60
The purpose of detection process is to detect whether current time has the unlatching for the foreground application for meeting different display properties in real time
Or switching:Judge whether front and back scene is identical after detecting the unlatching or switching of application program, if scene is different, shows requirement
Difference need to carry out the switching of display setting.For example, typical, in Android operation system, each application program has it
The activity components of itself, Android manage activity, an activity by way of a kind of activity stacks
Example state determine its position in stack, in foreground activity always on the top of stack, an activity exists
Change in location in stack reflects its conversion in different conditions.Therefore, the activity at detection activity stack tops end can
To detect the switching of foreground application.When user, which opens Galaxy softwares, checks picture, the real-time detection module inspection of program
The switching of foreground application is measured, and judges foreground program for picture browsing class application;And mobile terminal is opened
When VitalPlayer players watch video, film, the real-time detection module of program detects that foreground application is switched to video
Play class method.
Application scenarios parameter searching module 62 can find out the optimal display parameters of corresponding scene from the module.
Application scenarios parameter setting module 64, to carry out the setting of different parameters to display module, i.e., to preset
The adjustment and modification of optimal being customized of display parameters with different scenes, and modified parameter read-in application scenarios are joined
Number searching module 62, while parameter storing/searching module is neutralized into the display parameters that scene matches instantly, display module is written
Control unit, so that display module is shown according to optimal setting.
According to application real-time detection module 60 detection as a result, extracting corresponding fields from application scenarios parameter searching module 62
The arrange parameter of scape, and by the control unit of parameter read-in display module, it is made to be shown according to the setting of setting.Work as inspection
When measuring foreground program and being switched to picture browsing class method, retrieve that meet still image aobvious from parameter storing/searching device
Show the arrange parameter of feature, which has larger promotion, image to show saturation degree, brightness, acutance, contrast etc.
It is bright, clear, bright in luster it is lively, there is preferable details expressive force, to adapt to when current image browses scene to display
The requirement of device.And when detecting that foreground application is switched to video playing class method, from parameter storing/searching device
It retrieves and meets the arrange parameter that dynamic image plays feature, which meets the display property of dynamic menu switching, to every width
The display quality requirement of image is browsed less than static images, color to picture and contrast require to show than details it is high, i.e., pair
The saturation degree and contrast of image color slightly enhance, acutance promotes amplitude reduction, while the backlight illumination amplitude of accommodation increases,
It does not influence to save display module power consumption while viewing effect and experience.
The control unit of display module is written in display module 66, so that display module is carried out display according to optimal setting and is used for
The display of picture
In conclusion above example implements following advantageous effects:The technical solution carried using above-described embodiment so that
The display module of terminal disclosure satisfy that different display properties, adapt to different scenes in real time, to make display module always
It keeps optimal display effect and meets user demand.
In another embodiment, a kind of software is additionally provided, the software is for executing above-described embodiment and preferred reality
Apply the technical solution described in mode.
In another embodiment, a kind of storage medium is additionally provided, above-mentioned software is stored in the storage medium, it should
Storage medium includes but not limited to:CD, floppy disk, hard disk, scratch pad memory etc..
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be with different from shown in sequence execution herein
The step of going out or describing, either they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
It these are only the preferred embodiment of the present invention, be not intended to restrict the invention, for those skilled in the art
For member, the invention may be variously modified and varied.Any modification made by all within the spirits and principles of the present invention,
Equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.