CN106502652B - A kind of method for switching theme and server - Google Patents

A kind of method for switching theme and server Download PDF

Info

Publication number
CN106502652B
CN106502652B CN201610862240.1A CN201610862240A CN106502652B CN 106502652 B CN106502652 B CN 106502652B CN 201610862240 A CN201610862240 A CN 201610862240A CN 106502652 B CN106502652 B CN 106502652B
Authority
CN
China
Prior art keywords
mobile terminal
theme
distance
target topic
associated mobile
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.)
Active
Application number
CN201610862240.1A
Other languages
Chinese (zh)
Other versions
CN106502652A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610862240.1A priority Critical patent/CN106502652B/en
Publication of CN106502652A publication Critical patent/CN106502652A/en
Application granted granted Critical
Publication of CN106502652B publication Critical patent/CN106502652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a kind of method for switching theme and mobile terminals.This method comprises: receiving the location information of at least two associated mobile terminals;According to preset rules, the reference distance of each associated mobile terminal and reference position is calculated;Obtain the corresponding target topic of reference distance of each mobile terminal;Sending theme switching command, associated mobile terminal, the theme switching command have been that associated mobile terminal switches the instruction of respective theme to respective target topic for control to described at least two.The present invention passes through the location information for obtaining associated mobile terminal, and the reference distance according to the positional information calculation each associated mobile terminal and reference position, the target topic switched to each mobile terminal is determined according to the reference distance, the theme synchronism switching to each associated mobile terminal is realized, the interactivity between user is improved in theme switching.

Description

A kind of method for switching theme and server
Technical field
The present invention relates to field of communication technology more particularly to a kind of method for switching theme and server.
Background technique
With the rapid development of mobile device and internet, the function of internet application is also constantly covering me Details of each of living.Although their basic function is more and more abundant, these basic functions are for every It is all consistent for a user, then basic function machine-made in this way cannot be met the needs of users again.With The continuous improvement of user demand, user can wish to pursue some personalizations on the basic function of the application program of mobile terminal Function.And these personalized functions can not only allow user to customize the style oneself liked, and can also solve Application Program Interface list A pair of of user's bring tired out sense, and in due course variation can allow people fresh and new.
Wherein, theme (wallpaper) application of application program is a personalized important embodiment, almost in all manufacturers Mobile terminal (such as mobile phone) in be all built-in with subject application, wallpaper application program.Pass through subject application, wallpaper Application program, user can get rid of unalterable color and picture, wallpaper, icon and the interface that autonomous selection is liked oneself Style can quickly and easily realize that mobile phone interface switches, to make one's own mobile phone interface, newly-increased one is liked its Reason.
And when the theme to mobile terminal switches over, existing handover scheme is according to the aesthetic of user oneself mostly Voluntarily selection is applied to the theme of the application program or mobile terminal, and carries out manual switching, but manual switching theme meeting Increase the operating procedure of user, user experience is poor.
For this purpose, derived the scheme automatically switched according to the individual demand of user to the theme of application program, but It is that current theme automatically switches scheme and can only switch over for the mobile terminal or application program of user oneself, and can not It is enough to be interacted with the other users there are friend relation.Therefore, interactive not strong between theme switches upper user.
It can be seen that existing theme handover scheme is in the prevalence of not strong problem interactive between user.
Summary of the invention
The embodiment of the present invention provides a kind of method for switching theme and mobile terminal, to solve existing theme handover scheme institute Interactive not strong problem between existing user.
In a first aspect, being applied to server, the method packet the embodiment of the invention provides a kind of method for switching theme It includes:
Receive the location information of at least two associated mobile terminals;
According to preset rules, the reference distance of each associated mobile terminal and reference position is calculated;
Obtain the corresponding target topic of reference distance of each mobile terminal;
Sending theme switching command, associated mobile terminal, the theme switching command have been control to described at least two Associated mobile terminal switches the instruction of respective theme to respective target topic.
Second aspect, the embodiment of the invention also provides a kind of server, the server includes:
Position receiving module, for receiving the location information of at least two associated mobile terminals;
Distance calculation module, for calculating the ginseng of each associated mobile terminal and reference position according to preset rules Range from;
Theme obtains module, the corresponding target topic of reference distance for obtaining each mobile terminal;
Instruction sending module, it is described for sending theme switching command to described at least two associated mobile terminals Theme switching command is that associated mobile terminal switches the instruction of respective theme to respective target topic for control.
In this way, the embodiment of the present invention passes through the location information for obtaining associated mobile terminal, and according to the location information The reference distance for calculating each associated mobile terminal and reference position is determined according to the reference distance to each mobile terminal The target topic switched realizes the theme synchronism switching to each associated mobile terminal, improves in theme switching Interactivity between user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of the method for switching theme of one embodiment of the invention;
Fig. 2 is the flow chart of the method for switching theme of another embodiment of the present invention;
Fig. 3 is the schematic diagram of the polygon of another embodiment of the present invention construction;
Fig. 4 is the block diagram of the mobile terminal of one embodiment of the invention;
Fig. 5 is the block diagram of another mobile terminal of one embodiment of the invention;
Fig. 6 is the block diagram of the mobile terminal of another embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the mobile terminal of one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Fig.1, the flow chart of the method for switching theme of one embodiment of the invention is shown, server, institute are applied to The method of stating can specifically include following steps:
Step 101, the location information of at least two associated mobile terminals is received;
It is closed when being associated between multiple (at least two) mobile terminals (such as mobile phone) there are the good friend of certain a application program (such as the contact person of address list each other, wechat good friend etc., closes as long as multiple mobile terminals can be made to exist also or each other when being Connection relationship), each mobile terminal can send respective location information to server, and such server can obtain this The location information of several mobile phones.
Step 102, according to preset rules, the reference distance of each associated mobile terminal and reference position is calculated;
Wherein, server can calculate it according to preset rules according to the location information of each associated mobile terminal Reference distance between reference position, wherein the different calculated reference distances of rule institute is different.
Step 103, the corresponding target topic of reference distance of each mobile terminal is obtained;
Wherein it is possible to which foundation determines that reference distance institute is right for the calculated each reference distance of each mobile terminal institute The target topic that each mobile terminal answered will switch to.Wherein, theme may include a variety of interface elements, such as screen locking, figure Mark, wallpaper, font, the tinkle of bells and each look & feel etc., they are all within protection scope of the present invention.
Step 104, theme switching command to described at least two associated mobile terminal, the theme switchings are sent to refer to It enables to control associated mobile terminal and switching the instruction of respective theme to respective target topic.
Wherein, in order to described at least two associated mobile terminal switch theme, theme can be sent by server Switching command is to each associated mobile terminal, so that respective theme can be switched to each mesh by each mobile terminal Mark theme.
In this way, the embodiment of the present invention passes through the location information for obtaining associated mobile terminal, and according to the location information The reference distance for calculating each associated mobile terminal and reference position is determined according to the reference distance to each mobile terminal The target topic switched realizes the theme synchronism switching to each associated mobile terminal, improves in theme switching Interactivity between user.
The technical solution of above-described embodiment in order to better understand the present invention is come below with reference to specific example shown in Fig. 2 To above-mentioned technical proposal of the invention into elaborating.
Step S1 establishes good friend's incidence relation to different mobile terminal user for a application program.
Specifically, referring to Fig. 2, user can add one or more good friends when using using X, here user A and User B becomes friend relation, then after completing good friend's initialization, when these good friends open " distance switching " switch When, just these good friends are established with good friend's incidence relation using X.Wherein, user A and user B correspond to mobile terminal A and Mobile terminal B.
Subject resource is arranged in step S2.
Specifically, can select the multiple themes of selection as subject resource in theme application shop.
Figure it is seen that the subject resource (also known as resource group) of setting will be stored in server, for each good friend User sharing.
Step S3 establishes the mapping table between distance range and target topic.
Specifically, distance range as shown in Table 1 and target can be arranged according to the predetermined manner of at least one of Mapping table between theme: a kind of to can be that (such as user be from the master of above-mentioned setting according to the theme of user's selection Theme is selected in topic resource), a target topic corresponding to each distance range is set;There are also one kind can be according to theme Color change rule, a target topic (such as above-mentioned subject resource from setting is set corresponding to each distance range Middle system selects corresponding theme that above-mentioned mapping relations are arranged according to above-mentioned color change rule automatically), specifically, can be with It is regular to color changes such as dark colors according to cool colour to warm colour or light color according to distance sequence from small to large, come be arranged each away from From a target topic corresponding to range.
As can also be seen from Table 1, the present invention can not only switch over the theme of mobile terminal, can also be to using journey The theme or wallpaper of sequence switch over, and method is similar, and details are not described herein.
Distance range/km 1~2 2~3 3~4 4~5
Target topic or wallpaper α β γ δ
Table 1
Once the user of so mobile terminal side establishes the mapping between distance range and target topic by step 3 Relation table, the user that server can receive a mobile terminal send by reflecting between the distance range and target topic Penetrate relation table, and server side can be stored in, so that each good friend user shares, i.e., other associated mobile terminal is used Family can also modify to the mapping table and be uploaded to server.
It wherein, in one embodiment, include user A~E there are the user of friend relation to application X, in five users Any one user is here user A, after the mapping table between resource group, distance range and target topic, They can all share to server, so that other B~E users modify and use.And server can be also shared to after modifying, with The mapping table between subject resource and distance range and target topic for obtaining each user is all consistent and newest 's.
Step S4 receives the location information of at least two associated mobile terminals according to preset temporal frequency.
It here is five location informations of mobile terminal A~E, in this example, each mobile terminal can be according to default Temporal frequency send respective location information to server.That is, the executing subject for obtaining location information here is server.
But in other embodiments, it can also be sent by other four mobile terminals according to preset temporal frequency each From location information to a mobile terminal, such as mobile terminal A.
That is, the embodiment of the present invention is for obtaining the executing subject of location information and being not specifically limited.
Step S5 calculates the distance between they according to the location information of each associated mobile terminal, distance here The reference distance for being them between reference position.
Wherein, in one optionally embodiment, step S5 can be accomplished by the following way: by described at least two The location information of a associated mobile terminal constructs a polygon as multiple vertex;Calculate each vertex and described more The distance between the central point of side shape;Set each distance to the reference distance of each mobile terminal.
Specifically, server can construct the geographical location of mobile terminal A~E as multiple vertex as shown in Figure 3 Polygon, then calculate the geographical location of each mobile terminal to central point O (i.e. reference position) distance (i.e. referring to away from From), which is respectively s1, s2, s3, s4 and s5.
Step S6 obtains the corresponding target topic of reference distance of each mobile terminal.
With continued reference to the first of step S5, optionally embodiment, server can be according to mapping relations shown in table 1 Table searches the corresponding distance range of each distance s1, s2, s3, s4 and s5, and theme corresponding to the distance range is true It is set to the target topic of corresponding mobile terminal.
In Fig. 2, due to being the distance between good friend s1, s2, s3, s4 and s5 that server side calculates, then, it can be with The reference of each mobile terminal is obtained by the mapping table between the inquiry distance range being locally stored and target topic Distance corresponding target topic id, the i.e. id of resource.
Step S7 sends theme switching command to each associated mobile terminal, and the theme switching command is Associated mobile terminal switches the instruction of respective theme to respective target topic for control.
With continued reference to the first optionally embodiment of step S5 and S6, since server end has determined that each shifting The id of the target topic of dynamic terminal, then theme switching command can be sent to five mobile terminals, wherein theme switching command Switch the instruction of respective theme to respective target topic to control associated mobile terminal A~E, wherein each finger It include each resource id in order.By taking distance s1 as an example, such as s1 is 1.5km, then the corresponding theme of distance s1 is α, then the master Topic α is the target topic of mobile terminal A;For other mobile terminals target topic method with to the mesh of mobile terminal A The method of determination for marking theme is identical, and details are not described herein.
Certainly, in other embodiments, in order to realize mobile terminal side to switching wallpaper flexible choice, the server The distance s1, s2, s3, s4 and s5 directly can be included in theme switching and referred to after calculating distance s1, s2, s3, s4 and s5 Corresponding each mobile terminal is sent in order, in this way, mobile terminal A~mobile terminal E can pass through query service device side Mapping table between distance range and target topic obtains the id of the target topic that will respectively switch.
The method of determination of the distance between good friend by means of the first above-mentioned optional way of the present invention, it is each good to make It is had differences between the target topic that will switch of friend, then user can be between the target topic switched to according to them Difference and above-mentioned mapping table judge who is closer with the distance of oneself, enhancing wallpaper switches in the interactivity between user.
It in another optionally embodiment, when executing step S5, can be accomplished by the following way: will be described The location information of at least two associated mobile terminals constructs a polygon as multiple vertex;Calculate each vertex with The average value of the distance between the central point of the polygon;By the average value be set as each mobile terminal reference away from From.
Specifically, referring to Fig. 2, server established according to the location information of each mobile terminal it is as shown in Figure 3 After polygon, the distance between good friend can be calculated, distance here is all mobile terminals to central point O (i.e. reference position) The average value (i.e. reference distance) of distance (distance s1, s2, s3, s4 and s5) i.e. (s1+s2+s3+s4+s5)/5 be denoted as savg。
So, when optionally embodiment executes step S6 to second based on step S5, so that it may according to shown in table 1 Mapping table, search which distance range that average distance savg belongs in mapping relations, and by the distance range institute Corresponding theme is determined as the target topic of each mobile terminal.
In Fig. 2, due to being the distance between good friend savg that server side calculates, it can by inquiry storage away from The id of target topic, the i.e. id of resource are determined from the mapping relations between theme.
So, after in second based on step S5, optionally way of example executes step S6, in step S7, due to Server end has determined that the id of the target topic of each mobile terminal, then theme switching command can be sent to five shiftings Dynamic terminal, wherein theme switching command is that associated mobile terminal A~E switches respective theme to the same target for control The instruction of theme, wherein include the corresponding resource id of target topic in the instruction.
Certainly, in other embodiments, in order to realize mobile terminal side to switching wallpaper flexible choice, the server Directly distance savg can be included in theme switching command and be sent to each movement eventually after calculating distance savg End, in this way, mobile terminal A~E can pass through the mapping table between the distance range and target topic of query service device side To determine the id for the target topic that will switch.
For example, distance savg is 2.5km, then the corresponding theme of distance savg is β, then theme β is all movements Terminal A~mobile terminal E target topic.
The method of determination of the distance between above-mentioned the first optional way good friend by means of the embodiment of the present invention, can make The target topic that will switch of each good friend is completely the same, even if being in different geographical locations between good friend, but they Theme still can be switched to identical theme, the emotion enhanced between user and good friend connects, and further enhances theme Switch in the interactivity between user.
Optionally, in one embodiment, each mobile terminal according to respective theme switching command by respective master Topic switches to before target topic, according to the method for the embodiment of the present invention further include: judge each mobile terminal it is local whether It is stored with corresponding target topic;If not stored have corresponding target topic, downloaded from the theme shop of the application program Corresponding target topic.
Specifically, the id for the subject resource that will switch is received from server side in each mobile terminal referring to Fig. 2 After (or distance returned by server side, then calculate the id of corresponding subject resource), it can be determined that local whether to be stored with Corresponding subject resource downloads corresponding theme from the theme shop of application X if local be not present corresponding subject resource Resource, so as to the switching of subsequent theme.
Although it should be noted that illustrate only two users in Fig. 2, i.e., the switching stream of two mobile terminal sides The switching flow of journey, the mobile terminal side of remaining substantial four user is similar with the switching flow of user B, therefore, herein not It shows.
In addition, the main body of execution had both related to mobile terminal side and has further related to server in switching flow shown in Fig. 2 Side, but in different embodiments, executing subject can also be mobile terminal.In other words, the operation of mobile terminal side can To be realized by any one mobile terminal side in friend relation, since substantially process is similar, details are not described herein.
By means of the technical solution of the above embodiment of the present invention, the embodiment of the present invention passes through positioning and personalized combination, Enable the friend circle of user and switched according to the average value of respective geographical location to the distance of central point or the distance it is different or Identical theme enhances the interactivity and interest between user, user experience is strong in the theme switching of application program.
Referring to Fig. 4, the block diagram of the mobile terminal of one embodiment of the invention is shown.Mobile terminal shown in Fig. 4 includes:
Position receiving module 401, for receiving the location information of at least two associated mobile terminals;
Distance calculation module 402, for according to preset rules, calculating each associated mobile terminal and reference position Reference distance;
Theme obtains module 403, the corresponding target topic of reference distance for obtaining each mobile terminal;
Instruction sending module 404, for sending theme switching command to described at least two associated mobile terminals, institute Stating theme switching command is that associated mobile terminal switches the instruction of respective theme to respective target topic for control.
Optionally, referring to Fig. 5, on the basis of fig. 4, the mobile terminal may also include that
Mapping table receiving module 405, for receive at least one of setup module be arranged distance range with Mapping table between target topic:
First setup module 406, the theme for being selected according to mobile terminal user, is arranged corresponding to each distance range A target topic;
Second setup module 407 is arranged one corresponding to each distance range for the color change rule according to theme A target topic.
Optionally, the theme acquisition module 403 includes:
Submodule 413 is inquired, for obtaining the reference distance pair of each mobile terminal by inquiring the mapping table The target topic answered.
Optionally, the distance calculation module 402 includes:
Submodule 412 is constructed, for using the location information of described at least two associated mobile terminals as multiple tops It puts and constructs a polygon;
Apart from computational submodule 422, for calculating the distance between the central point on each vertex Yu the polygon;
First setting submodule 432, for setting each distance to the reference distance of each mobile terminal.
Average distance computational submodule 442, for calculating the distance between the central point on each vertex Yu the polygon Average value;
Second setting submodule 452, for setting the average value to the reference distance of each mobile terminal.
Optionally, the position receiving module 401 includes:
Position receiving submodule 411, for receiving at least two associated mobile terminals according to preset temporal frequency Location information.
Mobile terminal can be realized that mobile terminal in the embodiment of the method for Fig. 1 to Fig. 3 realizes to each associated shifting The theme switching of dynamic terminal improves the interactive effect between user in the theme switching of application program, to avoid repeating, Which is not described herein again.
Fig. 6 is the block diagram of the mobile terminal of another embodiment of the invention.Mobile terminal 600 shown in fig. 6 includes: at least One processor 601, memory 602, at least one network interface 604 and user interface 603.It is each in mobile terminal 600 Component is coupled by bus system 605.It is understood that bus system 605 is logical for realizing the connection between these components Letter.Bus system 605 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But it is For the sake of clear explanation, in Fig. 6 various buses are all designated as bus system 605.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 602 of the system and method for description of the embodiment of the present invention is intended to include but is not limited to these With the memory of any other suitable type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application The program or instruction stored in program 6022, processor 601 be used for receives at least two associated mobile terminal position believe Breath;According to preset rules, the reference distance of each associated mobile terminal and reference position is calculated;Obtain each mobile terminal The corresponding target topic of reference distance;Theme switching command is sent to described at least two associated mobile terminals, it is described Theme switching command is that associated mobile terminal switches the instruction of respective theme to respective target topic for control.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601. Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 602, processor 601 reads the information in memory 602, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.
Optionally, processor 601 is also used to: receive distance range be arranged according to the predetermined manner of at least one of and Mapping table between target topic: the theme selected according to mobile terminal user is arranged corresponding to each distance range One target topic;According to the color change rule of theme, a target topic corresponding to each distance range is set.
Optionally, processor 601 is also used to: by inquiring the mapping table, obtaining the reference of each mobile terminal Apart from corresponding target topic.
Optionally, processor 601 is also used to: using the location information of described at least two associated mobile terminals as more A vertex and construct a polygon;Calculate the distance between the central point on each vertex Yu the polygon;It will be each described Distance is set as the reference distance of each mobile terminal.
Optionally, processor 601 is also used to: using the location information of described at least two associated mobile terminals as more A vertex and construct a polygon;Calculate the average value of the distance between central point of each vertex and the polygon;It will The average value is set as the reference distance of each mobile terminal.
Optionally, processor 601 is also used to: receiving at least two associated mobile terminals according to preset temporal frequency Location information.
Mobile terminal 600 can be realized that mobile terminal in previous embodiment realizes to each associated mobile terminal Theme switching improves the interactive effect between user, to avoid repeating, here no longer in the theme switching of application program It repeats.
Fig. 7 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 7 700 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric Brain etc..
Mobile terminal 700 in Fig. 7 includes radio frequency (Radio Frequency, RF) circuit 710, memory 720, input Unit 730, display unit 740, processor 760, voicefrequency circuit 770, WiFi (Wireless Fidelity) module 780 and electricity Source 790.
Wherein, input unit 730 can be used for receiving mobile terminal user input number or character information, and generate with The mobile terminal user of mobile terminal 700 is arranged and the related signal input of function control.Specifically, the embodiment of the present invention In, which may include touch panel 731.Touch panel 731, also referred to as touch screen collect mobile terminal and use (for example mobile terminal user uses any suitable object or attachment such as finger, stylus for the touch operation of family on it or nearby Operation on touch panel 731), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 731 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects mobile terminal 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 the processor 760, and can receive the hair of processor 760 Next order is simultaneously executed.Furthermore, it is possible to using the multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave reality Existing touch panel 731.In addition to touch panel 731, input unit 730 can also include other input equipments 732, other inputs are set Standby 732 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One of mark, operating stick etc. are a variety of.
Wherein, display unit 740 can be used for showing the information by mobile terminal user's input or be supplied to mobile terminal and uses The information at family and the various menu interfaces of mobile terminal 700.Display unit 740 may include that display panel 741 optionally can To configure display using the forms such as LCD or Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) Panel 741.
It should be noted that touch panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 760 is sent to determine the type of touch event, is followed by subsequent processing device 760 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 760 is the control centre of mobile terminal 700, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 721, and calling storage Data in second memory 722 execute the various functions and processing data of mobile terminal 700, thus to mobile terminal 700 Carry out integral monitoring.Optionally, processor 760 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/ Or the data in the second memory 722, processor 760 be used for receives at least two associated mobile terminal position believe Breath;According to preset rules, the reference distance of each associated mobile terminal and reference position is calculated;Obtain each mobile terminal The corresponding target topic of reference distance;Theme switching command is sent to described at least two associated mobile terminals, it is described Theme switching command is that associated mobile terminal switches the instruction of respective theme to respective target topic for control.
Optionally, processor 760 is also used to: receive distance range be arranged according to the predetermined manner of at least one of and Mapping table between target topic: the theme selected according to mobile terminal user is arranged corresponding to each distance range One target topic;According to the color change rule of theme, a target topic corresponding to each distance range is set.
Optionally, processor 760 is also used to: by inquiring the mapping table, obtaining the reference of each mobile terminal Apart from corresponding target topic.
Optionally, processor 760 is also used to: using the location information of described at least two associated mobile terminals as more A vertex and construct a polygon;Calculate the distance between the central point on each vertex Yu the polygon;It will be each described Distance is set as the reference distance of each mobile terminal.
Optionally, processor 760 is also used to: using the location information of described at least two associated mobile terminals as more A vertex and construct a polygon;Calculate the average value of the distance between central point of each vertex and the polygon;It will The average value is set as the reference distance of each mobile terminal.
Optionally, processor 760 is also used to: receiving at least two associated mobile terminals according to preset temporal frequency Location information.
As it can be seen that the embodiment of the present invention can be realized the theme switching to each associated mobile terminal, in mobile terminal Theme switching on improve interactive effect between user, to avoid repeating, which is not described herein again.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of method for switching theme is applied to server, which is characterized in that the described method includes:
Receive the location information of at least two associated mobile terminals;
According to preset rules, the reference distance of each associated mobile terminal and reference position is calculated;
Obtain the corresponding target topic of reference distance of each mobile terminal;
Sending theme switching command, associated mobile terminal, the theme switching command have been that control has been closed to described at least two The mobile terminal of connection switches the instruction of respective theme to respective target topic;
It is described receive at least two the location information of associated mobile terminal the step of before, the method also includes:
It receives according to the mapping table between the predetermined manner of at least one of distance range being arranged and target topic:
According to the theme that mobile terminal user selects, a target topic corresponding to each distance range is set;
According to the color change rule of theme, a target topic corresponding to each distance range is set.
2. the method according to claim 1, wherein the reference distance for obtaining each mobile terminal is corresponding The step of target topic includes:
By inquiring the mapping table, the corresponding target topic of reference distance of each mobile terminal is obtained.
3. the method according to claim 1, wherein described according to preset rules, each associated shifting of calculating The step of dynamic terminal and the reference distance of reference position, comprising:
The location information of described at least two associated mobile terminals is constructed into a polygon as multiple vertex;
Calculate the distance between the central point on each vertex Yu the polygon;
Set each distance to the reference distance of each mobile terminal.
4. the method according to claim 1, wherein described according to preset rules, each associated shifting of calculating The step of dynamic terminal and the reference distance of reference position, comprising:
The location information of described at least two associated mobile terminals is constructed into a polygon as multiple vertex;
Calculate the average value of the distance between central point of each vertex and the polygon;
Set the average value to the reference distance of each mobile terminal.
5. the method according to claim 1, wherein the position for receiving at least two associated mobile terminals The step of confidence ceases, comprising:
The location information of at least two associated mobile terminals is received according to preset temporal frequency.
6. a kind of server, which is characterized in that the server includes:
Position receiving module, for receiving the location information of at least two associated mobile terminals;
Distance calculation module, for according to preset rules, calculate the reference of each associated mobile terminal and reference position away from From;
Theme obtains module, the corresponding target topic of reference distance for obtaining each mobile terminal;
Instruction sending module, for sending theme switching command to described at least two associated mobile terminals, the theme Switching command is that associated mobile terminal switches the instruction of respective theme to respective target topic for control;
The server further include:
Mapping table receiving module, for receiving the distance range and target topic that the setup module of at least one of is arranged Between mapping table:
First setup module, the theme for being selected according to mobile terminal user are arranged corresponding to each distance range one Target topic;
A target corresponding to each distance range is arranged for the color change rule according to theme in second setup module Theme.
7. server according to claim 6, which is characterized in that the theme obtains module and includes:
Submodule is inquired, for obtaining the corresponding mesh of reference distance of each mobile terminal by inquiring the mapping table Mark theme.
8. server according to claim 6, which is characterized in that the distance calculation module includes:
Submodule is constructed, for constructing the location information of described at least two associated mobile terminals as multiple vertex One polygon;
Apart from computational submodule, for calculating the distance between the central point on each vertex Yu the polygon;
First setting submodule, for setting each distance to the reference distance of each mobile terminal.
9. server according to claim 6, which is characterized in that the distance calculation module includes:
Submodule is constructed, for constructing the location information of described at least two associated mobile terminals as multiple vertex One polygon;
Average distance computational submodule, for calculating being averaged for the distance between each vertex and the central point of the polygon Value;
Second setting submodule, for setting the average value to the reference distance of each mobile terminal.
10. server according to claim 6, which is characterized in that the position receiving module includes:
Position receiving submodule, for according to preset temporal frequency receive at least two associated mobile terminal position believe Breath.
CN201610862240.1A 2016-09-27 2016-09-27 A kind of method for switching theme and server Active CN106502652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610862240.1A CN106502652B (en) 2016-09-27 2016-09-27 A kind of method for switching theme and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610862240.1A CN106502652B (en) 2016-09-27 2016-09-27 A kind of method for switching theme and server

Publications (2)

Publication Number Publication Date
CN106502652A CN106502652A (en) 2017-03-15
CN106502652B true CN106502652B (en) 2019-09-27

Family

ID=58291074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610862240.1A Active CN106502652B (en) 2016-09-27 2016-09-27 A kind of method for switching theme and server

Country Status (1)

Country Link
CN (1) CN106502652B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491125B (en) * 2018-03-12 2021-05-25 维沃移动通信有限公司 Operation control method of application store and mobile terminal
CN110442415B (en) * 2019-08-01 2023-03-31 创维集团智能科技有限公司 Terminal application style switching and controlling method, display terminal, server and system
CN116483227A (en) * 2022-01-14 2023-07-25 华为技术有限公司 Appearance setting method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012783A (en) * 2010-09-16 2011-04-13 宇龙计算机通信科技(深圳)有限公司 Method and terminal for controlling terminal wallpaper
CN102355623A (en) * 2011-06-29 2012-02-15 青岛百灵信息科技有限公司 System and method for changing applicable desktop theme of mobile terminal according to position of mobile terminal
CN103269394A (en) * 2013-04-16 2013-08-28 广东欧珀移动通信有限公司 Setting method and system of application theme of mobile terminal
CN103593153A (en) * 2012-08-21 2014-02-19 百度在线网络技术(北京)有限公司 Mobile terminal and page cross-equipment synchronization control method applied to same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012783A (en) * 2010-09-16 2011-04-13 宇龙计算机通信科技(深圳)有限公司 Method and terminal for controlling terminal wallpaper
CN102355623A (en) * 2011-06-29 2012-02-15 青岛百灵信息科技有限公司 System and method for changing applicable desktop theme of mobile terminal according to position of mobile terminal
CN103593153A (en) * 2012-08-21 2014-02-19 百度在线网络技术(北京)有限公司 Mobile terminal and page cross-equipment synchronization control method applied to same
CN103269394A (en) * 2013-04-16 2013-08-28 广东欧珀移动通信有限公司 Setting method and system of application theme of mobile terminal

Also Published As

Publication number Publication date
CN106502652A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN103826007B (en) Method, device and the terminal unit that terminal is remotely controlled
CN107370656B (en) Instant messaging method and device
US8611968B2 (en) Method and mobile terminal for processing contacts
JP5605885B1 (en) Virtual try-on system and virtual try-on program
US9883349B2 (en) Method and device for displaying information which links to related information provided by user's friends at user's location
CN111047379B (en) House decoration information processing method, device and system
CN107741809A (en) Interactive approach, terminal, server and system between a kind of virtual image
CN106502652B (en) A kind of method for switching theme and server
TW201604762A (en) Method and apparatus of touch control for multi-point touch terminal
CN105657638A (en) Method and device for function sharing between electronic devices
US10936140B2 (en) Method and device for displaying response
CN106454735A (en) Method for processing WIFI information and mobile terminal
CN105656734A (en) Method, device and system for controlling intelligent housing system
CN107360601A (en) A kind of method for switching network, mobile terminal and computer-readable recording medium
CN106657202A (en) Method and system for pushing information intelligently
CN110399570B (en) Geographic object recommendation method, device and storage medium
CN106446108B (en) A kind of sharing method of picture, mobile terminal and server
CN106972941B (en) A kind of group chat method and mobile terminal
CN106855744B (en) A kind of screen display method and mobile terminal
CN106210006B (en) A kind of setting information sharing method, mobile terminal and Cloud Server
CN110119201A (en) Method and device for virtual experience of household appliance matching with home environment
CN115917512A (en) Artificial intelligence request and suggestion card
CN111817929A (en) Equipment interaction method and device, household equipment and storage medium
CN107659716B (en) Resource sharing method and mobile terminal
CN109640272A (en) A kind of localization method and mobile terminal

Legal Events

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