CN109901900A - Desktop data handover control method, terminal and computer readable storage medium - Google Patents

Desktop data handover control method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109901900A
CN109901900A CN201910082100.6A CN201910082100A CN109901900A CN 109901900 A CN109901900 A CN 109901900A CN 201910082100 A CN201910082100 A CN 201910082100A CN 109901900 A CN109901900 A CN 109901900A
Authority
CN
China
Prior art keywords
transferred
resolution
icon
conversion
terminal
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
CN201910082100.6A
Other languages
Chinese (zh)
Inventor
陈雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910082100.6A priority Critical patent/CN109901900A/en
Publication of CN109901900A publication Critical patent/CN109901900A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of desktop data handover control method, terminal and computer readable storage mediums, when carrying out desktop data transfer, the first icon arrangement array and the first resolution information in desktop data to be transferred are obtained, and obtains the second icon arrangement array and second resolution information that terminal current desktop to be transferred to is supported;Second icon arrangement array is converted to consistent with the first icon arrangement array, and obtains the conversion of resolution parameter that first resolution information is converted to second resolution information;Then each icon in desktop data to be transferred is carried out according to the conversion of resolution parameter of acquisition being transferred to terminal to be transferred to after conversion of resolution processing;The invention also discloses a kind of terminal and computer readable storage mediums, by implementing above scheme, guarantee to be transferred to the desktop data wait be transferred in terminal and keep consistent with the arrangement before being transferred to, and guarantee that the resolution ratio supported with terminal to be transferred to is adapted, avoids icon entanglement after transfer.

Description

Desktop data handover control method, terminal and computer readable storage medium
Technical field
The present invention relates to terminal control field, more specifically to a kind of desktop data handover control method, terminal and Computer readable storage medium.
Background technique
With the fast development of mobile communication, the function of mobile terminal product is not simply as communication tool, more Be as people amusement tool.Currently, people can use mobile terminal either in which type of place, or Reading or game, or chat.In life and work, with the diversification of people's demand, installs, runs at the terminal Application program type and quantity it is also increasingly various, the data that people store at the terminal are also more and more.Therefore in order to anti- Only loss of data and new terminal is quickly arranged when terminal renews terminal in order to be promoted, data backup and data shift function Application is given birth to.Wherein, the backup of desktop data and shift function are also the more frequent function that user uses.Terminal User can be backed up by desktop data or shift function, and desktop data is directly transferred on new terminal.
It wherein, include the icon of all nonsystematic applications in desktop data, these icons are usually according to certain arrangement Specification, such as multiply 4 displays with 4,4 multiply 5 arrays, and 5 multiply the arrangement such as 6 arrays;And these desktop datas are (alternatively referred to as old from source terminal Terminal) in when being backed up, or further include the screen resolution of old terminal when being migrated, in desktop data.Passed through Data backup restoration or Data Migration function, when desktop data is transferred on new terminal, often will appear because new terminal with Cause diversified in specifications that screen resolution between old terminal is inconsistent or icon is arranged, causes desktop data to be transferred on new terminal Later, entanglement occurs for icon, causes the satisfaction of user experience poor.
Summary of the invention
The technical problem to be solved in the present invention is that: desktop data is transferred to by data backup or shift function at present When on new terminal, because the screen resolution between new, old terminal is inconsistent or icon arrangement cause diversified in specifications causes to be transferred to newly The problem of entanglement occurs for the icon in terminal.For the technical problem, provide a kind of desktop data handover control method, terminal and Computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of desktop data handover control method, the desktop data turns Moving control method includes:
The first icon arrangement array and the first resolution information in desktop data to be transferred are obtained, and is obtained wait be transferred to The the second icon arrangement array and second resolution information that terminal current desktop is supported;
Second icon arrangement array is converted to consistent with first icon arrangement array, and obtains described first Resolution information is converted to the conversion of resolution parameter of the second resolution information;
Each icon in the desktop data to be transferred is carried out at conversion of resolution according to the conversion of resolution parameter The terminal to be transferred to is transferred to after reason.
Optionally, described that second icon arrangement array is converted to array is consistent wraps with first icon arrangement It includes:
The ratio n of the line number N2 of the second icon arrangement array and the line number N1 of the first icon arrangement array are obtained, and Obtain the ratio m of the columns M2 of the second icon arrangement array and the columns M1 of the first icon arrangement array;And take the n and The smallest one is used as array conversion value k in m;
The length l and width w of icon on terminal current desktop to be transferred to are obtained, and using the l*k as the figure after conversion Length is marked, using w*k as the width after conversion;
The length L and width W for obtaining icon rest area on terminal current desktop to be transferred to, the value of L/l*k is rounded downwards Line number of the obtained value as the icon arrangement array after conversion, after the value that the value of W/w*k is rounded downwards is as conversion Icon arrangement array columns.
Optionally, the first resolution information includes first between first longitudinal direction resolution ratio and the first lateral resolution Ratio Wp1:Hp1;
The second resolution information includes the second ratio between second longitudinal direction resolution ratio and the second lateral resolution Wp2:Hp2.
Optionally, described that each icon in the desktop data to be transferred is divided according to the conversion of resolution parameter The terminal to be transferred to is transferred to after resolution conversion process includes:
After icon in the desktop data to be transferred is carried out conversion of resolution processing, by the length of icon
It is adjusted to l*k, width adjustment is transferred to the terminal to be transferred to after being w*k.
Optionally, the conversion of resolution for obtaining the first resolution information and being converted to the second resolution information Parameter includes:
Using the Wp2/Wp1 as longitudinal resolution conversion parameter, the Hp2/Hp1 is converted as lateral resolution and is joined Number.
Optionally, it is described by second icon arrangement array be converted to first icon arrangement array it is consistent it Before, further includes: judge whether the second icon arrangement array conversion and first icon arrangement array are consistent.
Optionally, the conversion of resolution for obtaining the first resolution information and being converted to the second resolution information Before parameter, further includes: judge whether the first resolution information and the second resolution information are consistent.
Optionally, resolution ratio is carried out to each icon in the desktop data to be transferred according to the conversion of resolution parameter It is transferred to after conversion process described when being transferred to terminal, further includes:
According to the conversion of resolution parameter to the text of application name associated by each icon in the desktop data to be transferred After word carries out conversion of resolution processing, the terminal to be transferred to is transferred to associated icon.
Further, the present invention also provides a kind of terminal, the terminal includes that processor, memory and communication are total Line;
The communication bus is for realizing the communication connection between the processor and the memory;
The processor is for executing one or more program stored in memory, to realize desktop as described above The step of data transfer control method.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize The step of desktop data handover control method as described above.
Beneficial effect
The present invention provides a kind of desktop data handover control method, terminal and computer readable storage medium, is carrying out table When face data shifts, the first icon arrangement array and the first resolution information in desktop data to be transferred are obtained, and obtain The the second icon arrangement array and second resolution information that terminal current desktop to be transferred to is supported;By the second icon arrangement battle array Column are converted to consistent with the first icon arrangement array, and obtain the resolution that first resolution information is converted to second resolution information Rate conversion parameter;Then resolution ratio is carried out to each icon in desktop data to be transferred according to the conversion of resolution parameter of acquisition to turn It changes processing and is transferred to terminal to be transferred to later, thus before guaranteeing that being transferred to the desktop data wait be transferred in terminal keeps and be transferred to Arrangement it is consistent, and guarantee that the resolution ratio of icon after being transferred to is adapted with the resolution ratio that terminal to be transferred to is supported, in turn It avoids being transferred to the icon wait be transferred in terminal and entanglement occurs, promote the satisfaction of user experience.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the terminal desktop data transfer control method flow diagram that first embodiment of the invention provides;
Fig. 4 is converted to for the array that the second icon is arranged that first embodiment of the invention provides and the first icon arrangement array Consistent flow diagram;
Fig. 5 is the terminal desktop data transfer control method flow diagram that second embodiment of the invention provides;
Fig. 6 is the terminal structure schematic diagram that third embodiment of the invention provides;
Fig. 7 is the terminal desktop data transfer control method flow diagram that second embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Ass istant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer, and the terminal in the present invention can be obtained using flexible screen Various flexible terminals.
It will be illustrated by taking flexible mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that Other than being used in particular for the element of mobile purpose, the construction of embodiment according to the present invention can also apply to fixed type Flexible terminal.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined, and mobile terminal can be according to the bending property of itself to each component The change that position, material and function are adapted to.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, various flexible screens and non-flexible screen (namely ordinary screen), such as organic light emission two can be used Pole pipe (Organic Light-Emitting Diode, OLED), active matrix organic light-emitting diode (Active-matrix Organic light emitting diode, AMOLED) etc. forms configure display panel 1061.An end in the present embodiment The display panel that can have is held, may also set up multiple display panels, such as each display panel of front and back, as The first display screen and second display screen of terminal.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include flexible touch surface Plate 1071 and other input equipments 1072.Flexible touch panel 1071, also referred to as flexible touch screen are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch surface Operation on plate 1071 or near touch panel 1071), and corresponding attachment device is driven according to preset formula.Touching Controlling panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects user's Touch orientation, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch detection Touch information is received on device, and is converted into contact coordinate, then gives processor 110, and can be received processor 110 and be sent Order and executed.Furthermore, it is possible to be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically Ground, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, switch key Deng), trace ball, mouse, one of operating stick etc. or a variety of, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.It should be understood that Be, the mobile terminal 100 in the present embodiment can for using flexible screen be worth can arbitrarily be bent or according to ad hoc fashion it is curved Terminal.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
Desktop data handover control method provided in this embodiment, when carrying out desktop data transfer, can by new terminal ( Terminal i.e. to be transferred to) on the second icon arrangement array be converted to in old terminal the first icon arrangement array it is consistent, obtain First resolution information in old terminal is converted into the conversion of resolution parameter with the second resolution information of new terminal;Then Each icon in desktop data to be transferred shift after conversion of resolution processing according to the conversion of resolution parameter of acquisition To new terminal, to guarantee that the desktop data being transferred on new terminal is consistent with the arrangement before being transferred to, and guarantee after being transferred to The resolution ratio of icon be adapted with the resolution ratio that terminal to be transferred to is supported, therefore can avoid the icon being transferred to and entanglement occur.
In order to make it easy to understand, the present embodiment is that example is done furtherly below with reference to a kind of desktop data handover control method It is bright, it is shown in Figure 3, comprising:
S301: the first icon arrangement array and the first resolution information in desktop data to be transferred are obtained, and is obtained The the second icon arrangement array and second resolution information that terminal current desktop to be transferred to is supported.
It should be understood that the terminal that is transferred in the present embodiment can be the hand for supporting desktop data to show with screen Machine, tablet computer, laptop, palm PC, PDA, portable media player, Intelligent bracelet, smartwatch etc. are mobile Class intelligent terminal is also possible to the fixed class intelligent terminals such as number TV, desktop computer, vehicle-mounted computer.
Desktop data to be transferred can be the desktop data of backup in the present embodiment, be also possible to desktop number to be migrated According to.It include arrangement specification namely first icon arrangement of the icon in old terminal in desktop data to be transferred in the present embodiment Array further includes the resolution information namely first resolution information of the screen of old terminal.It should be understood that the present embodiment The number of icon included by middle desktop data can be according to the specifically used determination of terminal user.The first icon is arranged in the present embodiment Cloth array may be to be arranged by terminal user according to the use habit of oneself, can also be the arrangement specification supported by old terminal and sets It sets.Such as can be 3 and multiply 3 arrays, 4 multiply 4 displays, 4 multiply 5 arrays, and 5 multiply 6 arrays etc..First resolution information can be set by terminal Standby screen determines, such as the ratio that can be between longitudinal resolution and lateral resolution is 4:3,16:9,18:9,32:9,16: 10,21:9 etc..
It should be understood that the second icon arrangement array that terminal current desktop to be transferred to is supported in the present embodiment can also Can be arranged by terminal user according to the use habit of oneself, can also be the arrangement specification setting supported by terminal to be transferred to 's.Such as be also possible to 3 and multiply 3 arrays, 4 multiply 4 displays, 4 multiply 5 arrays, and 5 multiply any one in 6 arrays etc..Second resolution letter Breath can be determined by the screen of terminal to be transferred to, such as the ratio being also possible between longitudinal resolution and lateral resolution is 4:3, Any one in 16:9,18:9,32:9,16:10,21:9 etc..
S302: the second icon arrangement array being converted to consistent with the first icon arrangement array, and obtains first resolution Information is converted to the conversion of resolution parameter of second resolution information.
In the present embodiment, the second icon arrangement array is converted to and the first icon arrangement consistent conversion regime of array It can be with flexible setting.For example, in a kind of example by the second icon arrangement array be converted to the first icon arrangement array it is consistent Mode is shown in Figure 4, comprising:
S401: obtaining the ratio n of the line number N2 of the second icon arrangement array and the line number N1 of the first icon arrangement array, and Obtain the ratio m of the columns M2 of the second icon arrangement array and the columns M1 of the first icon arrangement array;And it takes minimum in n and m One be used as array conversion value k.
S402: the length l and width w of icon on terminal current desktop to be transferred to are obtained, and using l*k as the figure after conversion Length is marked, using w*k as the width after conversion.
S403: obtaining the length L and width W of icon rest area on terminal current desktop to be transferred to, and the value of L/l*k is downward Be rounded the line number of obtained value as the icon arrangement array after conversion, the value that the value of W/w*k is rounded downwards as turn The columns of icon arrangement array after changing.
In order to make it easy to understand, being illustrated below with reference to several specific icon arrangement array manners.
In a kind of example, it is assumed that the first icon arrangement array multiplies 5 arrays for 4 namely N1 is equal to 4, M1 and is equal to 5;Second Icon arrangement array multiplies 4 arrays for 4 namely N2 is equal to 4, M2 and is equal to 4.The value that the value of N2/N1 is 1, M2/M1 is 0.8, by 0.8 As array conversion value k.Then obtain the length l and width w of icon on terminal current desktop to be transferred to, and using l*0.8 as Icon length after conversion at this time then contracts to the size of icon to be transferred using w*0.8 as the width after conversion It is small.Then the length L and width W for obtaining icon rest area on terminal current desktop to be transferred to, the value of L/l*0.8 is rounded downwards Line number of the obtained value as the icon arrangement array after conversion, namely it is equal to N1, the value of W/w*0.8 is rounded downwards and is obtained It is worth the columns as the icon arrangement array after conversion, namely is equal to M1.
In another example of the present embodiment, it is assumed that the first icon arrangement array multiplies 4 arrays for 4 namely N1 is equal to 4, M1 is equal to 4;Second icon arrangement array multiplies 6 arrays for 5 namely N2 is equal to 5, M2 and is equal to 6.The value of N2/N1 is 1.25, M2/M1 Value be 1.5, by 1.25 be used as array conversion value k.Then the length l and width of icon on terminal current desktop to be transferred to are obtained W, and using l*1.25 as the icon length after conversion, using w*1.25 as the width after conversion, at this time then to figure to be transferred Target size is exaggerated.Then the length L and width W for obtaining icon rest area on terminal current desktop to be transferred to, by L/ Line number of the value that the value of l*1.25 is rounded downwards as the icon arrangement array after conversion, namely it is equal to N1, by W/w* Columns of the value that 1.25 value is rounded downwards as the icon arrangement array after conversion, namely it is equal to M1.
In addition, can also directly acquire icon on terminal current desktop to be transferred in another example of the present embodiment and place Then length L/N1 is obtained turn later length wait be transferred to icon on terminal current desktop by the length L and width W in area, will Width W/M1 obtains turn later width wait be transferred to icon on terminal current desktop, can also realize in this way and the second icon is arranged Array is converted to consistent with the first icon arrangement array.
It can with the first icon arrangement consistent mode of array as it can be seen that being converted to the second icon arrangement array in the present embodiment With flexible choice.The conversion of resolution parameter that first resolution information is converted to second resolution information is obtained in the present embodiment It can flexibly determine.For example, in a kind of example, first resolution information include first longitudinal direction resolution ratio and the first lateral resolution it Between the first ratio Wp1:Hp1;Second resolution information includes between second longitudinal direction resolution ratio and the second lateral resolution Two ratio Wp2:Hp2.
Optionally, the conversion of resolution parameter packet that the first resolution information is converted to second resolution information is obtained It includes: using Wp2/Wp1 as longitudinal resolution conversion parameter, using Hp2/Hp1 as lateral resolution conversion parameter.
S303: conversion of resolution is carried out to each icon in desktop data to be transferred according to the conversion of resolution parameter of acquisition Terminal to be transferred to is transferred to after processing.
In this example, each icon in desktop data to be transferred is differentiated according to the conversion of resolution parameter of acquisition Rate conversion process includes: by the longitudinal resolution of each icon in desktop data to be transferred multiplied by longitudinal resolution conversion parameter, By the lateral resolution of each icon in desktop data to be transferred multiplied by lateral resolution conversion parameter.
In the present embodiment, each icon in desktop data to be transferred is divided according to the conversion of resolution parameter of acquisition Terminal to be transferred to is transferred in addition to including: by the longitudinal resolution of each icon in desktop data to be transferred after resolution conversion process Rate is multiplied by longitudinal resolution conversion parameter, by the lateral resolution of each icon in desktop data to be transferred multiplied by lateral resolution Before conversion parameter, it may also include that
It is l*k by the length adjustment of icon after icon in desktop data to be transferred is carried out conversion of resolution processing, Width adjustment is transferred to terminal to be transferred to after being w*k.
Optionally, in a kind of example of the present embodiment, in order to promote transfer efficiency and data migration efficiency, resource is promoted Utilization rate, by the second icon arrangement array be converted to the first icon arrangement array it is consistent before, may also include that judgement second Whether icon arrangement array conversion and the first icon arrangement array are consistent, first without converting if consistent.If inconsistent It is converted again.
Optionally, it in a kind of example of the present embodiment, in order to further enhance transfer efficiency and data migration efficiency, mentions Source utilization rate of increasing salary can also before obtaining the conversion of resolution parameter that first resolution information is converted to second resolution information Include: to judge whether first resolution information is consistent with second resolution information, the first resolution can be no longer obtained if always Rate information is converted to the conversion of resolution parameter of second resolution information, if inconsistent obtain again.
In addition, in the present embodiment, in order to further ensure the harmony after desktop data transfer, being turned according to resolution ratio It changes parameter and each icon in desktop data to be transferred be transferred to when being transferred to terminal after conversion of resolution processing, may be used also Include:
Application name text associated by each icon in desktop data to be transferred is divided according to conversion of resolution parameter After resolution conversion process, terminal to be transferred to is transferred to associated icon.It certainly, according to demand, can yet be by each figure The length and width of the associated application name text of mark are respectively multiplied by terminal to be transferred to is transferred to after array conversion value k, to protect It demonstrate,proves consistent with the size of corresponding icon and resolution ratio.To further promote the satisfaction of user experience.
As it can be seen that desktop data handover control method provided in this embodiment can to transfer front and back icon arrangement array with And resolution ratio carries out harmony processing, is kept and the arrangement before being transferred to guaranteeing to be transferred to the desktop data wait be transferred in terminal Unanimously, and guarantee that the resolution ratio of the icon after being transferred to is adapted with the resolution ratio that terminal to be transferred to is supported, and then avoid turning It moves to the icon wait be transferred in terminal and entanglement occurs, also can guarantee the indeformable distortion of picture, promote the satisfaction of user experience.
Second embodiment
In order to make it easy to understand, the present embodiment is using intelligent terminal as mobile phone, and it is example that the system of terminal, which is android system, It is illustrated.But it is to be understood that terminal in the present embodiment can also for tablet computer, laptop, palm PC, The intelligent terminals such as PDA, portable media player, Intelligent bracelet, smartwatch, number TV, desktop computer, vehicle-mounted computer. And the system of terminal operating can run iOS, windows phone, Symbian, BlackBerry OS, web in the present embodiment The operating systems such as os, windows mobile.
In the present embodiment, desktop starter launcher includes the icon of all nonsystematic applications in mobile phone, these Icon is usually according to certain arrangement specification, such as 4 multiply 4,4 and multiply 5,5 and multiply 6 etc., and arrangement specification is different between different mobile phones, and And difference mobile phone screen resolution ratio is also different, all decides the size and arrangement of application icon.In the present embodiment, mobile phone desktop The essential information of all applications of the database purchase of starter launcher and icon, length and width including icon and point Resolution, the application name text size of icon may also include the information of desktop current icon arrangement specification, mobile phone screen height, figure Mark the length and width etc. of placement region.These information all can be called easily from corresponding interface and be obtained.Carrying out data backup When, directly corresponding data can be called to be backed up from desktop starter launcher.It can also be direct in Data Migration It is obtained in real time by corresponding calling interface.
On that basi of the above embodiments, with the mistake of terminal to be transferred to (in the present embodiment for new cell-phone) below the present embodiment Cheng Jinhang is illustrated.It carries out data in a manner of through data backup restoration in the present embodiment and is transferred to be said for example It is bright.It is shown in Figure 5, comprising:
S501: from the first icon arrangement array and first resolution obtained in Backup Data in desktop data to be transferred Information.
S502: the second icon arrangement array and second resolution information that its current desktop of new cell-phone is supported are obtained.
S503: obtaining the ratio n of the line number N2 of the second icon arrangement array and the line number N1 of the first icon arrangement array, and Obtain the ratio m of the columns M2 of the second icon arrangement array and the columns M1 of the first icon arrangement array;And it takes minimum in n and m One be used as array conversion value k.
S504: the length l and width w of icon on terminal current desktop to be transferred to are obtained, and using l*k as the figure after conversion Length is marked, using w*k as the width after conversion.
S505: obtaining the length L and width W of icon rest area on terminal current desktop to be transferred to, and the value of L/l*k is downward Be rounded the line number of obtained value as the icon arrangement array after conversion, the value that the value of W/w*k is rounded downwards as turn The columns of icon arrangement array after changing.
S506: Wp2/Wp1 is obtained as longitudinal resolution conversion parameter, Hp2/Hp1 is obtained and converts as lateral resolution Parameter.
S507: by the longitudinal resolution of each icon in desktop data to be transferred multiplied by longitudinal resolution conversion parameter Wp2/ Wp1, by the lateral resolution of each icon in desktop data to be transferred multiplied by lateral resolution conversion parameter Hp2/Hp1.
S508: being l*k by the length adjustment of icon, and width adjustment is transferred to new cell-phone after being w*k.
Data in mobile phone migration can be solved or by Backup and Restore to old by desktop data handover control method shown in fig. 5 When mobile phone, often it will appear because screen resolution is inconsistent or icon arrangement cause diversified in specifications, caused icon entanglement are asked Topic.
3rd embodiment
A kind of terminal is present embodiments provided, which can be used as terminal to be transferred to, namely as new terminal.Referring to Fig. 6 Shown, the terminal in the present embodiment further includes processor 601, memory 602 and communication bus 603;
Communication bus 603 is for realizing the communication connection between processor 601 and memory 602;
Processor 601 is for executing one or more program stored in memory 602, to realize as above each embodiment Shown in terminal desktop data transfer control method the step of.
The present embodiment additionally provides a kind of computer readable storage medium, which can be applied to respectively In kind electric terminal, it is stored with one or more program, which can be handled by one or more Device executes, the step of to realize as above terminal desktop data transfer control method shown in each embodiment.
In order to make it easy to understand, migrating desktop data from old mobile phone to new cell-phone with the non-mobile phone of terminal below the present embodiment It is illustrated for exemplary control process, it is shown in Figure 7, comprising:
S701: from obtained in the desktop starter of old mobile phone in desktop data to be transferred the first icon arrangement array and First resolution information.
In the present embodiment, which can directly obtain desktop to be transferred for new cell-phone from the desktop starter of old mobile phone Data can also obtain desktop data to be transferred by intermediate Data Migration equipment from the desktop starter of old mobile phone.
S702: the second icon arrangement array and second resolution information that current desktop is supported in new cell-phone are obtained.
S703: when the second icon arranges array and inconsistent the first icon arrangement array, the second icon arrangement battle array is obtained The line number N2 of column and the first icon arrangement array line number N1 ratio n, and obtain the second icon arrangement array columns M2 with The ratio m of the columns M1 of first icon arrangement array;And take the smallest conduct array conversion value k in n and m.
S704: the length l and width w of icon on terminal current desktop to be transferred to are obtained, and using l*k as the figure after conversion Length is marked, using w*k as the width after conversion.
S705: obtaining the length L and width W of icon rest area on terminal current desktop to be transferred to, and the value of L/l*k is downward Be rounded the line number of obtained value as the icon arrangement array after conversion, the value that the value of W/w*k is rounded downwards as turn The columns of icon arrangement array after changing.
S706: when second resolution information and first resolution information are inconsistent, Wp2/Wp1 is obtained as longitudinal resolution Rate conversion parameter obtains Hp2/Hp1 as lateral resolution conversion parameter.
S707: by the longitudinal resolution of each icon in desktop data to be transferred multiplied by longitudinal resolution conversion parameter Wp2/ Wp1, by the lateral resolution of each icon in desktop data to be transferred multiplied by lateral resolution conversion parameter Hp2/Hp1.
S708: being l*k by the length adjustment of icon, and width adjustment is transferred to new cell-phone after being w*k.
As it can be seen that the desktop data handover control method provided through this embodiment can be obtained when carrying out desktop data transfer The first icon arrangement array and the first resolution information in desktop data to be transferred are taken, and obtains the current table of terminal to be transferred to The the second icon arrangement array and second resolution information that face is supported;And the second icon arrangement array is converted to and first Icon arrangement array is consistent, while obtaining the conversion of resolution parameter that first resolution information is converted to second resolution information; Then after according to the conversion of resolution parameter of acquisition to each icon progress conversion of resolution processing in desktop data to be transferred It is transferred to terminal to be transferred to, to guarantee that being transferred to the desktop data wait be transferred in terminal keeps and the arrangement one before being transferred to It causes, and guarantees that the resolution ratio supported with terminal to be transferred to is adapted, avoid icon entanglement after transfer, promote expiring for user experience Meaning degree.
It should be noted that, in this document, term " includes ", " comprising " or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of desktop data handover control method, which is characterized in that the desktop data handover control method includes:
The first icon arrangement array and the first resolution information in desktop data to be transferred are obtained, and obtains terminal to be transferred to The the second icon arrangement array and second resolution information that current desktop is supported;
By second icon arrangement array be converted to first icon arrangement array it is consistent, and obtain it is described first differentiate Rate information is converted to the conversion of resolution parameter of the second resolution information;
Conversion of resolution is carried out to each icon in the desktop data to be transferred according to the conversion of resolution parameter and handles it After be transferred to the terminal to be transferred to.
2. desktop data handover control method as described in claim 1, which is characterized in that described that second icon is arranged Array is converted to that array is consistent includes: with first icon arrangement
The ratio n of the line number N2 of the second icon arrangement array and the line number N1 of the first icon arrangement array are obtained, and is obtained The ratio m of the columns M1 of the columns M2 and the first icon arrangement array of the second icon arrangement array;And it takes in the n and m The smallest one is used as array conversion value k;
The length l and width w of icon on terminal current desktop to be transferred to are obtained, and the l*k is long as the icon after conversion Degree, using w*k as the width after conversion;
The length L and width W for obtaining icon rest area on terminal current desktop to be transferred to, the value of L/l*k is rounded downwards and is obtained Value as conversion after icon arrangement array line number, the value that the value of W/w*k is rounded downwards as convert after figure The columns of mark arrangement array.
3. desktop data handover control method as described in claim 1, which is characterized in that the first resolution information includes The first ratio Wp1:Hp1 between first longitudinal direction resolution ratio and the first lateral resolution;
The second resolution information includes the second ratio Wp2 between second longitudinal direction resolution ratio and the second lateral resolution: Hp2。
4. desktop data handover control method as claimed in claim 2, which is characterized in that described according to the conversion of resolution Parameter carries out each icon in the desktop data to be transferred to be transferred to the terminal to be transferred to after conversion of resolution processing Include:
It is l*k by the length adjustment of icon after icon in the desktop data to be transferred is carried out conversion of resolution processing, Width adjustment is transferred to the terminal to be transferred to after being w*k.
5. desktop data handover control method as claimed in claim 3, which is characterized in that described to obtain the first resolution The conversion of resolution parameter that information is converted to the second resolution information includes:
Using the Wp2/Wp1 as longitudinal resolution conversion parameter, using the Hp2/Hp1 as lateral resolution conversion parameter.
6. desktop data handover control method as described in any one in claim 1-5, which is characterized in that described by described second Icon arrangement array be converted to it is consistent with first icon arrangement array before, further includes: judge that second icon is arranged Whether array conversion and first icon arrangement array are consistent.
7. desktop data handover control method as described in any one in claim 1-5, which is characterized in that described to obtain described the One resolution information is converted to before the conversion of resolution parameter of the second resolution information, further includes: judges described first Whether resolution information and the second resolution information are consistent.
8. desktop data handover control method as described in any one in claim 1-5, which is characterized in that according to the resolution ratio Conversion parameter be transferred to after conversion of resolution is handled to each icon in the desktop data to be transferred described wait be transferred to When terminal, further includes:
According to the conversion of resolution parameter to application name text associated by each icon in the desktop data to be transferred into After the processing of row conversion of resolution, the terminal to be transferred to is transferred to associated icon.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the communication connection between the processor and the memory;
The processor is for executing one or more program stored in memory, to realize as claim 1-8 is any The step of desktop data handover control method described in item.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize that claim 1-8 such as appoints The step of desktop data handover control method described in one.
CN201910082100.6A 2019-01-28 2019-01-28 Desktop data handover control method, terminal and computer readable storage medium Pending CN109901900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910082100.6A CN109901900A (en) 2019-01-28 2019-01-28 Desktop data handover control method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910082100.6A CN109901900A (en) 2019-01-28 2019-01-28 Desktop data handover control method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109901900A true CN109901900A (en) 2019-06-18

Family

ID=66944326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910082100.6A Pending CN109901900A (en) 2019-01-28 2019-01-28 Desktop data handover control method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109901900A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103180809A (en) * 2012-07-31 2013-06-26 华为终端有限公司 Screen-interface display method and terminal
CN104169854A (en) * 2014-01-07 2014-11-26 华为终端有限公司 An icon arranging method and a terminal
CN104765605A (en) * 2015-03-19 2015-07-08 广东欧珀移动通信有限公司 Display method of desktop icon and mobile terminal
CN105302540A (en) * 2015-05-25 2016-02-03 维沃移动通信有限公司 Automatic collating method for desktop application icons of mobile terminal and mobile terminal thereof
CN106155477A (en) * 2016-06-24 2016-11-23 北京奇虎科技有限公司 The method of adjustment of screen-icon size, device and terminal
CN107566502A (en) * 2017-09-14 2018-01-09 奇酷互联网络科技(深圳)有限公司 Recover method, equipment, mobile terminal and the computer-readable storage medium of desktop

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103180809A (en) * 2012-07-31 2013-06-26 华为终端有限公司 Screen-interface display method and terminal
CN104169854A (en) * 2014-01-07 2014-11-26 华为终端有限公司 An icon arranging method and a terminal
CN104765605A (en) * 2015-03-19 2015-07-08 广东欧珀移动通信有限公司 Display method of desktop icon and mobile terminal
CN105302540A (en) * 2015-05-25 2016-02-03 维沃移动通信有限公司 Automatic collating method for desktop application icons of mobile terminal and mobile terminal thereof
CN106155477A (en) * 2016-06-24 2016-11-23 北京奇虎科技有限公司 The method of adjustment of screen-icon size, device and terminal
CN107566502A (en) * 2017-09-14 2018-01-09 奇酷互联网络科技(深圳)有限公司 Recover method, equipment, mobile terminal and the computer-readable storage medium of desktop

Similar Documents

Publication Publication Date Title
CN109407957A (en) Screen touch control method, terminal and computer readable storage medium
CN109343775A (en) Double screen terminal screen switching method, terminal and computer readable storage medium
CN108900698A (en) Method, wearable device, terminal and the computer storage medium of controlling terminal
CN108108081A (en) Method for information display, mobile terminal and readable storage medium storing program for executing based on double-sided screen
CN109857544A (en) Resource reclaim control method, terminal and computer readable storage medium
CN109933253A (en) Method for controlling application starting, terminal and computer readable storage medium
CN109062478A (en) Read display control method, mobile terminal and computer readable storage medium
CN107273433A (en) A kind of file scanning method, equipment and computer-readable recording medium
CN109462700A (en) A kind of call method, mobile terminal and computer readable storage medium
CN109525713A (en) A kind of application control method, wearable device and mobile terminal
CN110347284A (en) A kind of flexible display screen control method, terminal and computer readable storage medium
CN109725976A (en) A kind of display interface method for refreshing, mobile terminal and storage medium
CN109032711A (en) A kind of screenshot method, terminal and computer readable storage medium
CN109739346A (en) A kind of key simulating method, double screen terminal and computer readable storage medium
CN109640020A (en) A kind of video record control method, terminal and computer readable storage medium
CN109445660A (en) A kind of wearable device control method, mobile terminal and wearable device
CN110351423A (en) A kind of unread message process control method, terminal and computer readable storage medium
CN109918101A (en) Terminal and its application component management method, computer readable storage medium
CN109840127A (en) Terminal and its display control method, computer readable storage medium
CN109621410A (en) A kind of game control method, terminal and computer readable storage medium
CN109067976A (en) desktop automatic switching method, mobile terminal and computer readable storage medium
CN109151163A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109189482A (en) A kind of display control method, terminal and computer readable storage medium
CN107566607A (en) One kind notice display methods, mobile terminal and computer-readable recording medium
CN107688424A (en) A kind of browsing method of people of unread information, equipment and computer-readable recording medium

Legal Events

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

Application publication date: 20190618

RJ01 Rejection of invention patent application after publication