Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of shortcut update method and devices.The technical solution is as follows:
On the one hand, a kind of shortcut update method is provided, which comprises
After detecting that shortcut updates the clicking operation of icon, display shortcut updates the page, the quick sideIt includes the operation object that can all add shortcut on the page that formula, which updates,;
Operation is updated according at least one shortcut that the page detects is updated in the shortcut, is determined to be updatedAt least one operation object of shortcut;
It obtains at least one described operation object and shows the specified display position on the page in shortcut;
After detecting the confirmation operation that shortcut updates, it is based on the specified display position, updates described at least oneThe shortcut of a operation object.
Optionally, before at least one operation object of determination shortcut to be updated, the method also includes:
Each operation object on the page is updated for the shortcut, and one choosing chosen for user is setSelect frame;
The basis updates at least one shortcut for detecting of the page in the shortcut and updates operation, determine toUpdate at least one operation object of shortcut, comprising:
When detecting after choosing operation of any one choice box, the corresponding operation object of any one described choice box is determinedFor the operation object of shortcut to be added;
It, will the corresponding operation object of any one described choice box after operation is chosen in the cancellation for detecting any one choice boxIt is determined as the operation object of shortcut to be deleted.
Optionally, described to be based on the specified display position, update the shortcut of at least one operation object, packetIt includes:
For any one operation object, if any one described operation object is the operation object of shortcut to be added,Then the shortcut of any one operation object is shown in the specified display position;Or,
For any one operation object, if any one described operation object is the operation object of shortcut to be deleted,The shortcut for being then displayed on any one operation object at the specified display position is deleted.
Optionally, at least one operation object described in the acquisition shows the specified display position on the page in shortcutIt sets, comprising:
The operation object of shortcut to be added for one, the target where determining the operation object show the page,The target shows that the page is that already present screen shortcut shows that the page or newly created screen shortcut show the page;
A two-dimensional array is created, the columns of the two-dimensional array can longitudinally be placed quick with the target display pageMode number is identical, and line number is identical as the shortcut number that the target shows that the page can laterally be placed;
Already present shortcut on the page is shown according to the target, initializes the two-dimensional array;
According to the two-dimensional array of initialization, the shortcut for calculating the operation object is shown on the page in the targetSpecified display position.
Optionally, described that already present shortcut on the page is shown according to the target, the two-dimensional array is initialized,Include:
It obtains already present shortcut and shows the first location information on the page in the target;
According to the first location information, the two-dimensional array is initialized;
Correspondingly, the two-dimensional array according to initialization calculates the shortcut of the operation object in the targetShow the specified display position on the page, comprising:
According to preset order, successively judge element value in the two-dimensional array in any position whether with preset value phaseDeng;
If the element value in any position is equal with the preset value, the second confidence of any position is obtainedBreath;
Determine that the shortcut of the operation object is shown on the page in the target according to the second location informationSpecified display position.
On the other hand, a kind of shortcut updating device is provided, described device includes:
Page display module is updated, for after detecting that shortcut updates the clicking operation of icon, showing quick sideFormula updates the page, and it includes the operation object that can all add shortcut on the page that the shortcut, which updates,;
Operation object determining module, for updating at least one quick side that the page detects according in the shortcutFormula updates operation, determines at least one operation object of shortcut to be updated;
Display position obtains module, shows the finger on the page in shortcut for obtaining at least one described operation objectDetermine display position;
Shortcut update module, for being shown based on described specify after detecting the confirmation operation that shortcut updatesShow position, updates the shortcut of at least one operation object.
Optionally, described device further include:
Selcetion.removelistener module, each operation object for being updated on the page for the shortcut is arranged one canThe choice box chosen for user;
The operation object determining module will be described any for when detecting after choosing operation of any one choice boxThe corresponding operation object of a choice box is determined as the operation object of shortcut to be added;When detecting taking for any one choice boxDisappear after choosing operation, the corresponding operation object of any one described choice box is determined as to the operation object of shortcut to be deleted.
Optionally, the shortcut update module is used for for any one operation object, if any one described operationObject is the operation object of shortcut to be added, then shows the shortcut of any one operation object described specifiedDisplay position;Or, for any one operation object, if any one described operation object is the operation pair of shortcut to be deletedAs the shortcut for being then displayed on any one operation object at the specified display position is deleted.
Optionally, the display position obtains module, comprising:
It shows page determination unit, for the operation object of shortcut to be added for one, determines the operation pairAs the target at place shows that the page, the target display page are that already present screen shortcut shows the page or newly createdOne screen shortcut shows the page;
Array creating unit, for creating a two-dimensional array, the columns of the two-dimensional array and the target show pageThe shortcut number that face can longitudinally place is identical, and line number and the target show the shortcut number that the page can laterally be placedIt is identical;
Array initialization unit, for showing already present shortcut on the page according to the target, described in initializationTwo-dimensional array;
Display position computing unit calculates the shortcut of the operation object for the two-dimensional array according to initializationThe specified display position on the page is shown in the target.
Optionally, the array initialization unit shows the page in the target for obtaining already present shortcutOn first location information;According to the first location information, the two-dimensional array is initialized;
Correspondingly, the display position computing unit is appointed in the two-dimensional array for successively judging according to preset orderWhether the element value on one position is equal with preset value;If the element value in any position is equal with the preset value, obtainTake the second location information of any position;Determine that the shortcut of the operation object exists according to the second location informationThe target shows the specified display position on the page.
Technical solution provided in an embodiment of the present invention has the benefit that
After detecting the clicking operation that shortcut updates icon, display includes that can all add the operation of shortcutThe shortcut of object updates the page, updates behaviour according at least one shortcut that the page detects is updated in shortcutMake, determines at least one operation object of shortcut to be updated;Later, it is aobvious in shortcut to obtain at least one operation objectShow the specified display position on the page, after detecting the confirmation operation that shortcut updates, is updated based on specified display positionThe shortcut of at least one operation object both includes the operation pair for having added shortcut in the page since shortcut updatesAs further including the operation object for being not added with shortcut, so updating the page in shortcut both can batch delete operation objectShortcut, the shortcut of operation object can also be added in batches, without in different page execution, more convenient and intelligenceEnergy.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present inventionFormula is described in further detail.
Fig. 1 is a kind of flow chart of shortcut update method provided in an embodiment of the present invention.Referring to Fig. 1, the present invention is realApplying the method flow that example provides includes:
101, after detecting that shortcut updates the clicking operation of icon, display shortcut updates the page.
Wherein, it includes the operation object that can all add shortcut on the page that shortcut, which updates,.That is, shortcut is moreIt include having added the operation object of shortcut and being not added with the operation object of shortcut in new page.Wherein, operation objectMay include apply, contact person, one of file or folder or a variety of, for example operation object is application and contact person, this hairBright embodiment is to the type of operation object without specifically limiting.
102, at least one shortcut update operation that the page detects is updated according in shortcut, determined to be updatedAt least one operation object of shortcut.
103, it obtains at least one operation object and shows the specified display position on the page in shortcut.
104, after detecting the confirmation operation that shortcut updates, based on specified display position, at least one behaviour is updatedMake the shortcut of object.
The method that the embodiment of the present disclosure provides, after detecting the clicking operation that shortcut updates icon, display includesThe shortcut that the operation object of shortcut can all be added updates the page, updates what the page detected according in shortcutAt least one shortcut updates operation, determines at least one operation object of shortcut to be updated;Later, at least one is obtainedA operation object shows the specified display position on the page in shortcut, in the confirmation operation for detecting that shortcut updatesAfterwards, the shortcut that at least one operation object is updated based on specified display position had both been wrapped since shortcut updates in the pageThe operation object for having added shortcut is included, further includes the operation object for being not added with shortcut, so being updated in shortcutThe page both can batch delete operation object shortcut, the shortcut of operation object can also be added in batches, without in differenceThe page execute, it is more convenient and intelligent.
Optionally it is determined that before at least one operation object of shortcut to be updated, this method further include:
Each operation object on the page is updated for shortcut, and one choice box chosen for user is set;
Operation is updated according at least one shortcut that the page detects is updated in shortcut, is determined to be updated quickAt least one operation object of mode, comprising:
When detecting after choosing operation of any one choice box, by the corresponding operation object of any one choice box be determined as toAdd the operation object of shortcut;
After operation is chosen in the cancellation for detecting any one choice box, the corresponding operation object of any one choice box is determinedFor the operation object of shortcut to be deleted.
Optionally, based on specified display position, the shortcut of at least one operation object is updated, comprising:
It, will if any one operation object is the operation object of shortcut to be added for any one operation objectThe shortcut of any one operation object is shown in specified display position;Or,
It, will if any one operation object is the operation object of shortcut to be deleted for any one operation objectThe shortcut for being shown in any one operation object at specified display position is deleted.
Optionally, it obtains at least one operation object and shows the specified display position on the page in shortcut, comprising:
The operation object of shortcut to be added for one, the target where determining operation object show the page, targetShow that the page is that already present screen shortcut shows that the page or newly created screen shortcut show the page;
A two-dimensional array is created, the columns and target of two-dimensional array show the shortcut number that the page can longitudinally be placedIdentical, line number is identical as the shortcut number that target shows that the page can laterally be placed;
Already present shortcut on the page is shown according to target, initializes two-dimensional array;
According to the two-dimensional array of initialization, the shortcut of calculating operation object shows the specified display on the page in targetPosition.
Optionally, already present shortcut on the page is shown according to target, initializes two-dimensional array, comprising:
It obtains already present shortcut and shows the first location information on the page in target;
According to first location information, two-dimensional array is initialized;
Correspondingly, according to the two-dimensional array of initialization, the shortcut of calculating operation object is shown on the page in targetSpecified display position, comprising:
According to preset order, successively judge whether the element value in two-dimensional array in any position is equal with preset value;
If the element value in any position is equal with preset value, the second location information of any position is obtained;
Determine that the shortcut of operation object shows the specified display position on the page in target according to second location information.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longerIt repeats one by one.
Fig. 2 is a kind of flow chart of shortcut update method provided in an embodiment of the present invention.Referring to fig. 2, the present invention is realApplying the method flow that example provides includes:
201, after detecting that shortcut updates the clicking operation of icon, display shortcut updates the page.
Wherein, it includes the operation object that can all add shortcut on the page that shortcut, which updates,.I.e. referring to Fig. 3, fastlyIt includes having added the operation object (operation object that choice box is checked) of shortcut and being not added with that prompt mode, which updates on the page,The operation object (operation object that choice box is not checked) of shortcut.Further, since the operation pair of shortcut can be addedAs numerous, it is understood that there may be the case where current page that shortcut updates the page can not show all operationss object.At this point, under passing throughPage operation or left and right page slide are drawn, that is, may make that other operation objects are shown on a terminal screen.In addition, behaviourAs object may include apply, contact person, one of file or folder or a variety of, for example operation object includes application and connectionPeople, the embodiment of the present invention is to the type of operation object without specifically limiting.Wherein, shortcut update icon can be shaped like Fig. 4In " plus sige " icon shown in (a) figure.It is associated that the shortcut updates icon and shortcut the update page, when detecting thisAfter shortcut updates the clicking operation of icon, the page is jumped, and shortcut refresh page is shown on terminal displayFace.
It should be noted that the operation object that can all add shortcut for the ease of knowing terminal, the present invention is realIt applies example and provides API (Application Programming Interface, using journey for obtaining all operationss objectSequence programming interface), the API is called you can learn that all operation objects of shortcut can be added in terminal, so that fastMode, which updates the page, can show all operationss object that can add shortcut.
202, at least one shortcut update operation that the page detects is updated according in shortcut, determined to be updatedAt least one operation object of shortcut.
Referring to Fig. 3, shortcut update the page in each operation object position be provided with one forThe choice box that family is chosen.Wherein, choice box can be placed in the left, right, either above or below of operation object position,The embodiment of the present invention is to this without specifically limiting.It is any after not choosing the choice box of state when the user clicks, the selectionFrame is shown (such as in Fig. 3 operation object 1 to the corresponding choice box of operation object 12) just to choose state;When the user clicksIt is any after choose the choice box of state, the choice box just shown with normal condition (such as in Fig. 3 operation object 13 toThe corresponding choice box of operation object 21).So updating the clicking operation that the page detects at least one choice box in shortcutAfterwards, the update operation of at least one shortcut is just confirmly detected.Wherein, updating operation includes but is not limited to that fast mode is addedOperation and shortcut delete operation.
In embodiments of the present invention, at least one shortcut update that the page detects is being updated according in shortcutOperation, when determining at least one operation object of shortcut to be updated, may be implemented in the following manner:
First way, when detecting after choosing operation of any one choice box, by the corresponding operation of any one choice boxObject is determined as the operation object of shortcut to be added.
For first way, after any one is clicked in the choice box for not choosing state, the choice box is to chooseStatus display.Due to not including the quick side of operation object corresponding with the choice box on the page of shortcut display at this timeFormula, so the operation object to be determined as to the operation object of shortcut to be added.
It lifts for a simple case, the choice box of operation object 13 and operation object 14 is not checked in Fig. 3, if eventuallyEnd detect user to the clicking operation of the choice box of operation object 13 and operation object 14, then operation object 13 and operation object14 choice box is shown with choosing state shown in (a) figure in Fig. 4.If the confirmation of subsequent detection to addition shortcut is graspedMake, then the shortcut of operation object 13 and operation object 14 appears in shortcut shown in (b) figure in Fig. 4 and shows the pageIn.
The second way, after operation is chosen in the cancellation for detecting any one choice box, any one choice box is correspondingOperation object is determined as the operation object of shortcut to be deleted.
For the second way, after the choice box that any one is in state of choosing is clicked, then the choice box is not to hookStatus display is selected, due to having included the quick side of operation object corresponding with the choice box on the page of shortcut display at this timeFormula, so the operation object to be determined as to the operation object of shortcut to be deleted.
It lifts for a simple case, the operation object 8 of (a) figure and the choice box of operation object 14 are checked in Fig. 4,If terminal detects user to the clicking operation of the choice box of operation object 8 and operation object 14, operation object 8 and operation pairAs 14 choice box is shown with not choosing state shown in (a) figure in Fig. 5.If subsequent detection to delete shortcut reallyRecognize operation, then shows the shortcut of delete operation object 8 and operation object 14 on the page in shortcut, it is quick after deletionMode shows the page as shown in (b) figure in Fig. 5.
Below for adding shortcut, illustrate the step of calculating specified display position for shortcut to be added,Step 203 as described below is to step 205.
203, the operation object of shortcut to be added for one, the target where determining the operation object show pageFace.
Wherein, target shows that the page is that already present screen shortcut shows the page or newly created screen shortcutShow the page.If target shows that the page is that already present screen shortcut shows the page, which shows fast on the pagePrompt mode number is not up to preset number;If target shows that the page is that newly-established screen shortcut shows the page, the meshShortcut number on the mark display page is 0.In embodiments of the present invention, preset number refers to 16, i.e. a screen shortcutThe display page can place 16 shortcuts, and terminal may be present multi-screen shortcut and show the page.It can by sliding terminal screenIt shows in the shortcut of different screens and switches between the page.
The operation object of shortcut to be added for one, the target where determining the operation object show the pageWhen, it can determine whether the shortcut of current all screens to show on the page and whether pile shortcut.If it is, newly establishing a screenShortcut shows the page, which is shown that the page is determined as target and shows the page.If it is not, thenBy it is existing and do not pile shortcut shortcut show the page be determined as target show the page.
204, a two-dimensional array is created, already present shortcut on the page is shown according to target, initializes two-dimemsional numberGroup.
In embodiments of the present invention, after the target where the operation object for determining shortcut to be added shows the page,In order to determine that the operation object shows the specific location on the page in target, the embodiment of the invention provides a kind of 2-D dataThe position calculation of chart-pattern.Firstly, one two-dimensional array of creation.Wherein, the columns of two-dimensional array and target show the pageThe shortcut number that longitudinal direction can place is identical, and line number is identical as the shortcut number that target shows that the page can laterally be placed.Since target shows that the page can at most place 16 shortcuts in embodiments of the present invention, 4 are laterally at most placed, longitudinal direction is mostIt is place 4 more, so the size of two-dimensional array is 4*4.
Each element can value 0 or 1 in two-dimensional array;Wherein, 0 indicate that shortcut shows the corresponding position on the page notOccupied, 1 indicates that shortcut shows that the corresponding position on the page is occupied.Referring to Fig. 6, the quick side of the embodiment of the present inventionFormula shows that 16 positions that shortcut can be placed in the page correspond to a coordinate value.To show the upper left corner of screen as coordinateOrigin, then shortcut shows that the coordinate of 4 positions of the first row in the page is respectively (0,0) (0,1) (0,2) (0,3), the second rowThe coordinate of 4 positions is respectively (1,0) (1,1) (1,2) (1,3), and the coordinate of 4 positions of the third line is respectively (0,0) (0,1)(0,2) (0,3), the coordinate of 4 positions of fourth line are respectively (4,0) (4,1) (4,2) (4,3).
So first element of the first row and position (0,0) are corresponding in two-dimensional array, if placed on position (0,0) fastPrompt mode, then the value of first element of the first row becomes 1 from 0.Second element of the first row and position (0,1) are corresponding, if positionIt sets and placed shortcut on (0,1), then the value of second element of the first row becomes 1 from 0.The first row third element withPosition (0,2) is corresponding, if placed shortcut on position (0,2), then the value of the first row third element becomes 1 from 0.The 4th element of the first row and position (0,3) are corresponding, if placed shortcut on position (0,3), then the first row the 4thThe value of element becomes 1 from 0, and so on.
When target shows that the page is that already present screen shortcut shows the page, shown on the page according to targetWhen existing shortcut initialization two-dimensional array, it may be implemented in the following manner:
It obtains already present shortcut and shows the first location information on the page in the target;According to described firstConfidence breath, initializes the two-dimensional array.
It for example, then will be in two-dimensional array if the first location information of an existing shortcut is (0,2) forThe first row third element is initialized as 1 by 0.
205, according to the two-dimensional array of initialization, the shortcut of calculating operation object shows specified on the page in targetDisplay position.
Due to showing that the first location information of the existing shortcut on the page is initialized two dimension according to targetArray, in order to according to the two-dimensional array of initialization, the shortcut of calculating operation object shows the finger on the page in targetDetermine display position, specific implementation is as follows:
The first step, according to preset order, successively judge element value in two-dimensional array in any position whether with preset valueIt is equal.
Wherein, preset order refers to sequence line by line from left to right in embodiments of the present invention.That is, from two-dimensional arrayFirst element of the first row starts, from left to right, until the 4th element of the first row;Then, it is opened from first element of the second rowBegin, from left to right, until the 4th element of the second row, and so on.Wherein, preset value refers to 0 in embodiments of the present invention.
If the element value in second step, any position is equal with preset value, the second confidence of any position is obtainedBreath.
If the element value on a certain position is 0, illustrate that target corresponding with the element shows the corresponding positions on the pageIt sets and does not place shortcut, obtain the second location information of any position.Existing quick side on the page is shown with targetThe first location information of formula is for (0,0), (1,1) and (2,1), then the two-dimensional array after initialization isNamely current goal shows first position of the first row on the page, second position of the second position of row second and the third lineIt is placed with shortcut.When searching the placement location of operation object of shortcut to be added, from the two dimension after initializationThe first row first row of array starts to be searched, since the value of second element of the first row is 0, so second location information is justFor the first row secondary series.
Third step determines that the shortcut of the operation object shows specifying on the page in target according to second location informationDisplay position.
Since two-dimensional array and target show that the page is corresponding, thus in learning two-dimensional array any position secondAfter confidence breath, it according to corresponding relationship between the two, can determine that the operation object of shortcut to be added shows page in targetSpecified display position on face.Continue by taking above-mentioned example as an example, then due to target show the page on second location information pairThe position answered is (0,1) namely second position of the first row, so target is shown that second position of the first row determines on the pageTo specify display position.
Example shown in above-mentioned steps 205 can pass through following Implementation of pseudocode.
[0,0,0,0
0,0,0,0
0,0,0,0
0,0,0,0];
Using or contacts list B=new List
206, after detecting the confirmation operation that shortcut updates, based on specified display position, at least one behaviour is addedMake the shortcut of object.
In embodiments of the present invention, when at least one operation object be shortcut to be added operation object when, then byIn having determined that specified display position, so directly the shortcut of at least one operation object can be shown in specified displayAt position.
In addition, when at least one operation object is the operation object of shortcut to be deleted, then due to having determined thatSpecified display position, so at least one shortcut that can be directly displayed at specified display position is deleted.
Method provided in an embodiment of the present invention, after detecting the clicking operation that shortcut updates icon, display includesThe shortcut that the operation object of shortcut can all be added updates the page, updates what the page detected according in shortcutAt least one shortcut updates operation, determines at least one operation object of shortcut to be updated;Later, at least one is obtainedA operation object shows the specified display position on the page in shortcut, in the confirmation operation for detecting that shortcut updatesAfterwards, the shortcut that at least one operation object is updated based on specified display position had both been wrapped since shortcut updates in the pageThe operation object for having added shortcut is included, further includes the operation object for being not added with shortcut, so by choice boxOperation is chosen, the shortcut of page batch delete operation object can be updated in shortcut, or add operation object in batchesShortcut to add operation and delete operation without executing in the different pages, and can execute in batches shortcut updateOperation, therefore this kind of mode is more convenient and intelligent.
Fig. 7 is a kind of shortcut updating device provided in an embodiment of the present invention.Referring to Fig. 7, which includes: refresh pageFace display module 701, operation object determining module 702, display position obtain module 703, shortcut update module 704.
Wherein, it updates page display module 701 to connect with operation object determining module 702, detects quick side for working asAfter formula updates the clicking operation of icon, display shortcut updates the page, and it includes that can all add on the page that shortcut, which updates,The operation object of shortcut;Operation object determining module 702 obtains module 703 with display position and connect, for according to fastPrompt mode updates at least one shortcut that the page detects and updates operation, determines at least one behaviour of shortcut to be updatedMake object;Display position obtains module 703 and connect with shortcut update module 704, for obtaining at least one operation objectThe specified display position on the page is shown in shortcut;Shortcut update module 704, for detecting shortcut moreAfter new confirmation operation, based on specified display position, the shortcut of at least one operation object is updated.
Optionally, the device further include:
Selcetion.removelistener module, for for shortcut update the page on each operation object be arranged one forThe choice box that family is chosen;
Operation object determining module, for when detecting after choosing operation of any one choice box, by any one choice boxCorresponding operation object is determined as the operation object of shortcut to be added;When behaviour is chosen in the cancellation for detecting any one choice boxAfter work, the corresponding operation object of any one choice box is determined as to the operation object of shortcut to be deleted.
Optionally, shortcut update module, for for any one operation object, if any one operation object be toThe operation object for adding shortcut, then show the shortcut of any one operation object in specified display position;Or, forAny one operation object is displayed on specified aobvious if any one operation object is the operation object of shortcut to be deletedShow that the shortcut of any one operation object at position is deleted.
Optionally, display position obtains module, comprising:
Show that page determination unit determines operation object institute for the operation object of shortcut to be added for oneTarget show the page, target show the page be already present screen shortcut show the page or a newly created screen it is quickMode shows the page;
Array creating unit, for creating a two-dimensional array, the columns and target of two-dimensional array show that the page longitudinally may be usedThe shortcut number of placement is identical, and line number is identical as the shortcut number that target shows that the page can laterally be placed;
Array initialization unit initializes two-dimensional array for showing already present shortcut on the page according to target;
Display position computing unit, for the two-dimensional array according to initialization, the shortcut of calculating operation object is in meshSpecified display position on the mark display page.
Optionally, array initialization unit shows first on the page in target for obtaining already present shortcutLocation information;According to first location information, two-dimensional array is initialized;
Correspondingly, display position computing unit, for successively judging in two-dimensional array in any position according to preset orderElement value it is whether equal with preset value;If the element value in any position is equal with preset value, any position is obtainedSecond location information;Determine that the shortcut of operation object shows the specified display on the page in target according to second location informationPosition.
In conclusion device provided in an embodiment of the present invention, after detecting the clicking operation that shortcut updates icon,Display includes that the shortcut for the operation object that can all add shortcut updates the page, updates the page according in shortcutAt least one shortcut detected updates operation, determines at least one operation object of shortcut to be updated;Later, it obtainsIt takes at least one operation object to show the specified display position on the page in shortcut, is detecting shortcut update reallyAfter recognizing operation, the shortcut of at least one operation object is updated based on specified display position, since shortcut updates the pageIn both include having added the operation object of shortcut, further include the operation object for being not added with shortcut, so in quick sideFormula update the page both can batch delete operation object shortcut, the shortcut of operation object can also be added in batches, be not necessarily toIt is executed in the different pages, it is more convenient and intelligent.
It should be understood that shortcut updating device provided by the above embodiment is when updating shortcut, only more thanThe division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by differenceFunctional module complete, i.e., the internal structure of device is divided into different functional modules, with complete it is described above whole orPerson's partial function.In addition, shortcut updating device provided by the above embodiment belongs to shortcut update method embodimentSame design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Fig. 8 is a kind of terminal provided in an embodiment of the present invention, which can be used for executing provides in above-described embodimentShortcut update method.Referring to Fig. 8, which includes:
RF (Radio Frequency, radio frequency) circuit 110 includes one or more computer-readable storage mediumMemory 120, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, the WiFi (Wireless of matterFidelity, Wireless Fidelity) module 170, include one or more than one the processor 180 and power supply of processing core190 equal components.It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 8Including perhaps combining certain components or different component layouts than illustrating more or fewer components.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base stationAfter downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent toBase station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, usesFamily identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplexDevice etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.Wireless communication, which can be used, appoints(Global System of Mobile communication, the whole world are moved for one communication standard or agreement, including but not limited to GSMDynamic communication system), GPRS (General Packet Radio Service, general packet radio service), CDMA (CodeDivision Multiple Access, CDMA), WCDMA (Wideband Code Division MultipleAccess, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (ShortMessaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operationSoftware program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journeySequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one functionSuch as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 800According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrapInclude nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and functionControl related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touchingSensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are usedFamily on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive tableOperation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is usedThe touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touchTouch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wavesRealize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically,Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 800 that are supplied to userVarious graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystalShow device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on it or nearbyAfter touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the type of touch eventCorresponding visual output is provided on display panel 141.Although in fig. 8, touch sensitive surface 131 and display panel 141 are conductsTwo independent components output and input function to realize, but in some embodiments it is possible to by touch sensitive surface 131 and displayPanel 141 is integrated and realizes and outputs and inputs function.
Terminal 800 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensingsDevice.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environmentThe light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 800 is moved in one's earPanel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generallyThree axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratioSuch as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);ExtremelyIn other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 800 can also configure, hereinIt repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 800.AudioElectric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack,To provide the communication of peripheral hardware earphone Yu terminal 800.
WiFi belongs to short range wireless transmission technology, and terminal 800 can help user's transceiver electronics by WiFi module 170Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.
Processor 180 is the control centre of terminal 800, utilizes each portion of various interfaces and connection whole mobile phonePoint, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120Interior data execute the various functions and processing data of terminal 800, to carry out integral monitoring to mobile phone.Optionally, processor180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor,Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothingLine communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 800 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricityManagement system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management systemThe functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply eventHinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 800 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this realityIt applies in example, the display unit of terminal is touch-screen display, and terminal further includes having memory and one or more than oneProgram, perhaps more than one program is stored in memory and is configured to by one or more than one processing for one of themDevice execution states one or more than one program includes the instruction for performing the following operation:
After detecting that shortcut updates the clicking operation of icon, display shortcut updates the page, and shortcut is moreIt include the operation object that can all add shortcut in new page;
Operation is updated according at least one shortcut that the page detects is updated in shortcut, is determined to be updated quickAt least one operation object of mode;
It obtains at least one operation object and shows the specified display position on the page in shortcut;
After detecting the confirmation operation that shortcut updates, based on specified display position, at least one operation pair is updatedThe shortcut of elephant.
Optionally it is determined that before at least one operation object of shortcut to be updated, this method further include:
Each operation object on the page is updated for shortcut, and one choice box chosen for user is set;
Operation is updated according at least one shortcut that the page detects is updated in shortcut, is determined to be updated quickAt least one operation object of mode, comprising:
When detecting after choosing operation of any one choice box, by the corresponding operation object of any one choice box be determined as toAdd the operation object of shortcut;
After operation is chosen in the cancellation for detecting any one choice box, the corresponding operation object of any one choice box is determinedFor the operation object of shortcut to be deleted.
Optionally, based on specified display position, the shortcut of at least one operation object is updated, comprising:
It, will if any one operation object is the operation object of shortcut to be added for any one operation objectThe shortcut of any one operation object is shown in specified display position;Or,
It, will if any one operation object is the operation object of shortcut to be deleted for any one operation objectThe shortcut for being shown in any one operation object at specified display position is deleted.
Optionally, it obtains at least one operation object and shows the specified display position on the page in shortcut, comprising:
The operation object of shortcut to be added for one, the target where determining operation object show the page, targetShow that the page is that already present screen shortcut shows that the page or newly created screen shortcut show the page;
A two-dimensional array is created, the columns and target of two-dimensional array show the shortcut number that the page can longitudinally be placedIdentical, line number is identical as the shortcut number that target shows that the page can laterally be placed;
Already present shortcut on the page is shown according to target, initializes two-dimensional array;
According to the two-dimensional array of initialization, the shortcut of calculating operation object shows the specified display on the page in targetPosition.
Optionally, already present shortcut on the page is shown according to target, initializes two-dimensional array, comprising:
It obtains already present shortcut and shows the first location information on the page in target;
According to first location information, two-dimensional array is initialized;
Correspondingly, according to the two-dimensional array of initialization, the shortcut of calculating operation object is shown on the page in targetSpecified display position, comprising:
According to preset order, successively judge whether the element value in two-dimensional array in any position is equal with preset value;
If the element value in any position is equal with preset value, the second location information of any position is obtained;
Determine that the shortcut of operation object shows the specified display position on the page in target according to second location information.
Terminal provided in an embodiment of the present invention, after detecting the clicking operation that shortcut updates icon, display includesThe shortcut that the operation object of shortcut can all be added updates the page, updates what the page detected according in shortcutAt least one shortcut updates operation, determines at least one operation object of shortcut to be updated;Later, at least one is obtainedA operation object shows the specified display position on the page in shortcut, in the confirmation operation for detecting that shortcut updatesAfterwards, the shortcut that at least one operation object is updated based on specified display position had both been wrapped since shortcut updates in the pageThe operation object for having added shortcut is included, further includes the operation object for being not added with shortcut, so being updated in shortcutThe page both can batch delete operation object shortcut, the shortcut of operation object can also be added in batches, without in differenceThe page execute, it is more convenient and intelligent.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardwareIt completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readableIn storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention andWithin principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.