CN108184016A - A kind of method, terminal and computer readable storage medium that ringing tone is set - Google Patents

A kind of method, terminal and computer readable storage medium that ringing tone is set Download PDF

Info

Publication number
CN108184016A
CN108184016A CN201711427490.3A CN201711427490A CN108184016A CN 108184016 A CN108184016 A CN 108184016A CN 201711427490 A CN201711427490 A CN 201711427490A CN 108184016 A CN108184016 A CN 108184016A
Authority
CN
China
Prior art keywords
icon
music
ringing tone
preset
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.)
Withdrawn
Application number
CN201711427490.3A
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201711427490.3A priority Critical patent/CN108184016A/en
Publication of CN108184016A publication Critical patent/CN108184016A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • H04M19/041Encoding the ringing signal, i.e. providing distinctive or selective ringing capability

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of method, terminal and computer readable storage medium for setting ringing tone, wherein method includes:If detecting, the icon of application program is predetermined action triggers, judges whether the icon is preset icon;If the icon is preset icon, judge whether terminal is currently playing music;If the terminal is playing music, whether the music for judging playing meets preset condition;If the music played meets preset condition, the music played is set as to the ringing tone of the application program.The embodiment of the present invention triggers preset icon by deliberate action, can the currently playing music of terminal be quickly set as ringing tone, save the interactive step of user setting ringing tone, improve the operating experience of user.

Description

A kind of method, terminal and computer readable storage medium that ringing tone is set
Technical field
The present invention relates to ringing tone technical field more particularly to a kind of the method for ringing tone, terminal are set and computer-readable deposit Storage media.
Background technology
With the development of economy with the progress of science and technology, smart mobile phone has been deep into people’s lives, and multimedia is in intelligence Application in energy mobile phone has also been popularized, and abundant entertainment also contributes to the use of people's smart mobile phone.When people make When wanting to set ringing tone with smart mobile phone, mainly there is the approach of following two setting ringing tones at present, when enter in the setting of mobile phone, It is set subsequently into ringing tone, the type of selection setting ringing tone, such as phone ringing tone, short message ringing tone, the sound that user is finally selected to like It is happy to complete ringing tone setting;Another kind is the music application opened in mobile phone, and the music that user likes is chosen to be set to ringing tone, The mode of either any setting ringing tone operates all unusual very complicateds.
Invention content
The embodiment of the present invention provides a kind of method, terminal and computer readable storage medium for setting ringing tone, it is intended to solve The technical issues of tradition setting ringing tone operates very very complicated.
In a first aspect, an embodiment of the present invention provides a kind of setting ringing tone method, this method includes:If it detects using journey The icon of sequence is predetermined action triggers, judges whether the icon is preset icon;If the icon is preset icon, end is judged Whether end is currently playing music;If the terminal is playing music, it is default whether the music for judging playing meets Condition;If the music played meets preset condition, the music played is set as the application program Ringing tone.
Second aspect, an embodiment of the present invention provides a kind of terminal, which includes performing above-mentioned first aspect The unit of method.
The third aspect, an embodiment of the present invention provides another terminal, including processor, input equipment, output equipment and Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein, the memory is for storage branch The computer program that terminal performs the above method is held, the computer program includes program instruction, and the processor is configured to use In calling described program instruction, the method for performing above-mentioned first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer storage media Computer program is stored with, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor State the method that processor performs above-mentioned first aspect.
The embodiment of the present invention triggers preset icon by deliberate action, and the music that terminal is playing is set as default figure The ringing tone of application is marked, the interactive step of user setting ringing tone can be saved, the currently playing music of terminal is quickly set as pre- If the ringing tone of icon improves the interest of user's operation, improves user experience.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, general for this field For logical technical staff, without creative efforts, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is a kind of schematic flow diagram of the method for setting ringing tone provided in an embodiment of the present invention;
Fig. 2 is the sub-step schematic flow diagram of step S110 in setting ringing tone method shown in Fig. 1;
Fig. 3 is the sub-step schematic flow diagram of step S130 in setting ringing tone method shown in Fig. 1;
Fig. 4 is the sub-step schematic flow diagram of step S140 in setting ringing tone method shown in Fig. 1;
Fig. 5 is a kind of schematic flow diagram of the method for setting ringing tone that another embodiment of the present invention provides;
Fig. 6 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 7 is the subelement schematic block diagram of the first judging unit in terminal shown in Fig. 6;
Fig. 8 is the subelement schematic block diagram of third judging unit in terminal shown in Fig. 6;
Fig. 9 is the subelement schematic block diagram of setting unit in terminal shown in Fig. 6;
Figure 10 is a kind of terminal schematic block diagram that another embodiment of the present invention provides;
Figure 11 is a kind of terminal schematic block diagram that further embodiment of this invention provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combinations and all possible combinations of one or more of the associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet computer of (for example, touch-screen display and/or touch tablet) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch tablet).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use at least one public of such as touch sensitive surface Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.In this way, the public physical structure of terminal is (for example, touch Sensing surface) it can support the various application programs with user interface intuitive and transparent for a user.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram for setting ringing tone method provided in an embodiment of the present invention.This method It can apply in the terminals such as smart mobile phone (such as Android phone, IOS mobile phones), tablet computer or intelligent wearable device, It is illustrated by taking mobile phone as an example in the present embodiment.As shown in Figure 1, this method includes the following steps S110~S140:
If S110, detecting that the icon of application program is predetermined action triggers, judge whether the icon is preset icon.
In one embodiment, such as in the present embodiment, the preset icon includes:Phone application icon, short message application drawing It is marked with and clock application icon, certain preset icon is not limited to icon described above, can also be that other can set bell The application icon of sound.In the present embodiment, the deliberate action is not limited to double-click the application icon, certainly described default move Manner described above can also be other trigger actions, such as pressing for meeting preset pressure value etc..
In one embodiment, such as in the present embodiment, as shown in Fig. 2, the step S110 may include following sub-step S111~S113:
S111, it obtains to identify the identification information of the icon.
When icon of the user by the application program in deliberate action triggering mobile phone desktop, the terminal obtains the figure Target identification information.
S112, judge whether acquired identification information belongs to the identification information corresponding to the preset icon.
Specifically, the identification information of the icon terminal obtained is believed with the identification corresponding to the preset icon Breath matching, for example, with phone application icon matches, applied with short message and match and matched with clock application icon.
If S113, acquired identification information belong to the identification information corresponding to the preset icon, the icon is judged For preset icon.
When only described icon is with the preset icon successful match, the icon can be just judged for preset icon, such as User triggers phone application icon, then successful match, and user triggers browser application icon, then matches unsuccessful.
If S120, the application icon are preset icon, judge whether terminal is currently playing music.
After judging the icon for preset icon, then judge whether mobile phone is currently playing music again, that is, sentence Whether machine of cutting off the hands currently is playing music, terminates if music is not played, and only mobile phone is playing music just into next A step.
If S130, the terminal are playing music, whether the music for judging playing meets preset condition.
In one embodiment, such as in the present embodiment, it may include following sub-step S131 with reference to Fig. 3, the step S130 ~S132:
Whether the music that S131, detection are playing is local music.
If S132, the music played are local musics, the music played described in judgement meets default item Part.
The preset condition must be local music for the music played, because only that local music just can be with Ringing tone is directly disposed as, so needing whether the music for judging playing is local music before setting.
If S140, the music played meet preset condition, the music played is set as described The ringing tone of application program.
The music played meets the preset condition for local music, is set according to the corresponding ringing tone of preset icon Interface is put, the local music is set as the tinkle of bells, such as the preset icon is phone application icon, it should according to the phone With the corresponding phone ringing tone setting interface of icon, the local music is set as to the ringing tone of phone application, in one embodiment, Such as in the present embodiment, it may include following sub-step with reference to Fig. 4, the step S140:S141~S143:
The music played described in S141, calling.
After the music played described in judgement is local music, the music played described in calling is used for conduct The music file of ringing tone is set.
S142, call the icon corresponding ringing tone that interface is set according to the identification information of the icon.
Specifically, call corresponding ringing tone that interface, such as user is set to trigger short message according to the icon of user's triggering Application icon then calls short message ringing tone to set interface.
S143, the ringing tone that the music played is set as to the application program based on ringing tone setting interface.
The different preset icons corresponds to different ringing tone setting interfaces, such as phone application icon corresponds to phone Ringing tone sets interface, and short message application icon corresponds to short message ringing tone setting interface, and clock application icon corresponds to the setting of clock ringing tone and connects Mouthful.In the present embodiment, the preset icon is short message application icon, corresponding short message ringing tone setting interface, by music text Part is set as the ringing tone of short message application, when mobile phone receives new message, plays the music file.
The method of setting ringing tone provided in an embodiment of the present invention triggers preset icon by deliberate action, and terminal is being broadcast The music put is set as the ringing tone of preset icon application, can save the setting ringing tone interactive step of user, increases the interest of operation Taste improves user experience.
Referring to Fig. 5, Fig. 5 is a kind of schematic flow diagram for setting ringing tone method that another embodiment of the present invention provides.It should Method can be applied in terminals such as smart mobile phone (such as Android phone, IOS mobile phones), tablet computer or intelligent wearable devices In, it is illustrated by taking mobile phone as an example in the present embodiment.As shown in figure 5, this method includes the following steps S210~S250:
If S210, detecting that the icon of application program is predetermined action triggers, judge whether the icon is preset icon.
In one embodiment, such as in the present embodiment, the preset icon includes:Phone application icon, short message application drawing It is marked with and clock application icon, certain preset icon is not limited to icon described above, can also be that other can set bell The application icon of sound.In the present embodiment, the deliberate action is not limited to double-click the application icon, certainly described default move Manner described above can also be other trigger actions, such as pressing for meeting preset pressure value etc..
In one embodiment, such as in the present embodiment, the step S111~S113 of the step S210 and above-described embodiment Identical, the step S210 may include sub-step S211~S213:
S211, it obtains to identify the identification information of the icon.
When icon of the user by the application program in deliberate action triggering mobile phone desktop, the terminal obtains the figure Target identification information.
S212, judge whether acquired identification information belongs to the identification information corresponding to the preset icon.
Specifically, the identification information of the icon terminal obtained is believed with the identification corresponding to the preset icon Breath matching, for example, with phone application icon matches, applied with short message and match and matched with clock application icon.
If S213, acquired identification information belong to the identification information corresponding to the preset icon, the icon is judged For preset icon.
When only described icon is with the preset icon successful match, the icon can be just judged for preset icon, such as User triggers phone application icon, then successful match, and user triggers browser application icon, then matches unsuccessful.
If S220, the application icon are preset icon, judge whether terminal is currently playing music.
After judging the icon for preset icon, then judge whether mobile phone is currently playing music again, that is, sentence Whether machine of cutting off the hands currently is playing music, terminates if music is not played, and only mobile phone is playing music just into next A step.
If S230, the terminal are playing music, whether the music for judging playing meets preset condition.
In one embodiment, such as in the present embodiment, the step of the sub-step and above-described embodiment of the step S230 S131~S132 is identical, and the step S230 may include following sub-step S231~S232:
Whether the music that S231, detection are playing is local music.
If S232, the music played are local musics, the music played described in judgement meets default item Part.
The preset condition must be local music for the music played, because only that local music just can be with Ringing tone is directly disposed as, so needing whether the music for judging playing is local music before setting.
If S240, the music played meet preset condition, the music played is set as described The ringing tone of application program.
The music played meets the preset condition for local music, is set according to the corresponding ringing tone of preset icon Interface is put, the local music is set as the tinkle of bells, such as the preset icon is phone application icon, it should according to the phone With the corresponding phone ringing tone setting interface of icon, the local music is set as to the ringing tone of phone application, in the present embodiment, The sub-step of the step S240 is identical with step S141~S143 in above-described embodiment, and the step S240 may include following Sub-step:S241~S243:
The music played described in S241, calling.
After the music played described in judgement is local music, the music played described in calling is used for conduct The music file of ringing tone is set.
S242, call the icon corresponding ringing tone that interface is set according to the identification information of the icon.
Specifically, call corresponding ringing tone that interface, such as user is set to trigger short message according to the icon of user's triggering Application icon then calls short message ringing tone to set interface.
S243, the bell that the music played is set as to the preset icon application based on ringing tone setting interface Sound.
The different preset icons corresponds to different ringing tone setting interfaces, such as phone application icon corresponds to phone Ringing tone sets interface, and short message application icon corresponds to short message ringing tone setting interface, and clock application icon corresponds to the setting of clock ringing tone and connects Mouthful.In the present embodiment, the preset icon is short message application icon, corresponding short message ringing tone setting interface, by music text Part is set as the ringing tone of short message application, when mobile phone receives new message, plays the music file.
If S250, the music played are unsatisfactory for preset condition, the music played described in download and return Step S230 is to judge whether the music played meets preset condition.
In one embodiment, it is described to be unsatisfactory for the i.e. described music played of preset condition not such as in the present embodiment It is local music, therefore after it is not local music to detect the music played, the sound played described in download It is happy, it returns again to and continues to determine whether to meet preset condition.
The method of setting ringing tone provided in an embodiment of the present invention triggers preset icon by deliberate action, to playing sound Happy application sends the instruction of setting ringing tone, detects whether the music played is local music, if what terminal was playing Music then downloads the music for non-local music, and the music that terminal is playing is set as to the ringing tone of preset icon application, The setting ringing tone interactive step of user can be saved, Online Music can also be set to increase the interest of operation as the tinkle of bells, carry High user experience.
The embodiment of the present invention also provides a kind of terminal, which includes the unit for performing the above method.Specifically, join It is a kind of schematic block diagram of terminal provided in an embodiment of the present invention to see Fig. 6, Fig. 6.The terminal of the present embodiment includes:First judges list Member 310, second judgment unit 320, third judging unit 330 and setting unit 340.
If first judging unit 310 for detecting that the icon of application program is predetermined action triggers, judges the icon Whether it is preset icon.
In one embodiment, such as in the present embodiment, the preset icon includes:Phone application icon, short message application drawing It is marked with and clock application icon, certain preset icon is not limited to icon described above, can also be that other can set bell The application icon of sound.In the present embodiment, the deliberate action is not limited to double-click the application icon, certainly described default move Manner described above can also be other trigger actions, such as pressing for meeting preset pressure value etc..As shown in fig. 7, institute It states the first judging unit 310 and further includes subelement:Acquiring unit 311, the 4th judging unit 312 and the first identifying unit 313.
Acquiring unit 311, for obtaining the identification information for identifying the icon.
When icon of the user by the application program in deliberate action triggering mobile phone desktop, the terminal obtains the figure Target identification information.
Whether the 4th judging unit 312, the identification information for judging acquired belong to corresponding to the preset icon Identification information.
Specifically, the identification information corresponding to the identification information and preset icon of the icon terminal obtained Match, such as match and matched with clock application icon with phone application icon matches, with short message application.
First identifying unit 313, if belonging to the identification letter corresponding to the preset icon for acquired identification information Breath, judges the icon for preset icon.
When only described icon is with the preset icon successful match, the icon can be just judged for preset icon, such as User triggers phone application icon, then successful match, and user triggers browser application icon, then matches unsuccessful.
Second judgment unit 320 if being preset icon for the application icon, judges whether terminal is currently playing Music.
After judging the application icon for preset icon, then judge whether mobile phone is currently playing music again, Judge whether mobile phone is currently playing music, terminate if music is not played, only mobile phone just enters in broadcasting music Next step.
Third judging unit 330, if playing music for the terminal, whether the music for judging playing meets Preset condition.
In one embodiment, such as in the present embodiment, with reference to Fig. 8, it is single that the third judging unit 330 further includes following son Member:331 and second identifying unit 332 of detection unit.
Whether detection unit 331 is local music for detecting the music played.
Second identifying unit 332 if being local music for the music played, is playing described in judgement Music meets preset condition.
The preset condition must be local music for the music played, because only that local music just can be with Ringing tone is directly disposed as, so needing whether the music for judging playing is local music before setting.
Setting unit 340, if meeting preset condition for the music played, by the music played It is set as the ringing tone of the application program.
The music played meets the preset condition for local music, is set according to the corresponding ringing tone of preset icon Interface is put, the local music is set as the tinkle of bells, such as the preset icon is phone application icon, it should according to the phone With the corresponding phone ringing tone setting interface of icon, the local music is set as to the ringing tone of phone application, in one embodiment, Such as in the present embodiment, with reference to Fig. 9, the setting unit 340 further includes following subelement:First call unit 341, second Call unit 342 and ringing tone setting unit 343.
First call unit 341, for calling the music played.
After the music played described in judgement is local music, the music played described in calling is used for conduct The music file of ringing tone is set.
Second call unit 342, for the corresponding ringing tone of the icon being called to set according to the identification information of the icon Interface.
Specifically, call corresponding ringing tone that interface, such as user is set to trigger short message according to the icon of user's triggering Application icon then calls short message ringing tone to set interface.
Ringing tone setting unit 343 is answered for the music played to be set as described based on ringing tone setting interface With the ringing tone of program.
The different preset icons corresponds to different ringing tone setting interfaces, such as phone application icon corresponds to phone Ringing tone sets interface, and short message application icon corresponds to short message ringing tone setting interface, and clock application icon corresponds to the setting of clock ringing tone and connects Mouthful.In the present embodiment, the preset icon is short message application icon, corresponding short message ringing tone setting interface, by music text Part is set as the ringing tone of short message application, when mobile phone receives new message, plays the music file.
The method of setting ringing tone provided in an embodiment of the present invention triggers preset icon by deliberate action, and terminal is being broadcast The music put is set as the ringing tone of preset icon application, can save the setting ringing tone interactive step of user, increases the interest of operation Taste improves user experience.
The embodiment of the present invention also provides a kind of terminal, which includes the unit for performing the above method.Specifically, join It is a kind of schematic block diagram of terminal provided in an embodiment of the present invention to see Figure 10, Figure 10.The terminal of the present embodiment includes:First judges Unit 410, second judgment unit 420, third judging unit 430, setting unit 440 and download unit 450.
If first judging unit 410 for detecting that the icon of application program is predetermined action triggers, judges the icon Whether it is preset icon.
In one embodiment, such as in the present embodiment, the preset icon includes:Phone application icon, short message application drawing It is marked with and clock application icon, certain preset icon is not limited to icon described above, can also be that other can set bell The application icon of sound.In the present embodiment, the deliberate action is not limited to double-click the application icon, certainly described default move Manner described above can also be other trigger actions, such as pressing for meeting preset pressure value etc..
In one embodiment, such as in the present embodiment, in the subelement and above-described embodiment of first judging unit 410 Unit 311~313 it is identical, first judging unit 410 may include subelement:Acquiring unit 411, the 4th judging unit 412 and first identifying unit 413.
Acquiring unit 411, for obtaining the identification information for identifying the icon.
When icon of the user by the application program in deliberate action triggering mobile phone desktop, the terminal obtains the figure Target identification information.
Whether the 4th judging unit 412, the identification information for judging acquired belong to corresponding to the preset icon Identification information.
Specifically, the identification information corresponding to the identification information and preset icon of the icon terminal obtained Match, such as match and matched with clock application icon with phone application icon matches, with short message application.
First identifying unit 413, if belonging to the identification letter corresponding to the preset icon for acquired identification information Breath, judges the icon for preset icon.
When only described icon is with the preset icon successful match, the icon can be just judged for preset icon, such as User triggers phone application icon, then successful match, and user triggers browser application icon, then matches unsuccessful.
Second judgment unit 420 if being preset icon for the application icon, judges whether terminal is currently playing Music.
After judging the application icon for preset icon, then judge whether mobile phone is currently playing music again, Judge whether mobile phone is currently playing music, terminate if music is not played, only mobile phone just enters in broadcasting music Next step.
Third judging unit 430, if playing music for the terminal, whether the music for judging playing meets Preset condition.
In one embodiment, such as in the present embodiment, in the subelement and above-described embodiment of the third judging unit 430 Unit 431~432 it is identical, the third judging unit 430 may include following subelement:The judgement of detection unit 431, second is single Member 432.
Whether detection unit 431 is local music for detecting the music played.
Second identifying unit 432 if being local music for the music played, is playing described in judgement Music meets preset condition.
The preset condition must be local music for the music played, because only that local music just can be with Ringing tone is directly disposed as, so needing whether the music for judging playing is local music before setting.
Setting unit 440, if meeting preset condition for the music played, by the music played It is set as the ringing tone of the application program.
The music played meets the preset condition for local music, is set according to the corresponding ringing tone of preset icon Interface is put, the local music is set as the tinkle of bells, such as the preset icon is phone application icon, it should according to the phone With the corresponding phone ringing tone setting interface of icon, the local music is set as to the ringing tone of phone application,
In one embodiment, such as in the present embodiment, the list in the subelement and above-described embodiment of the setting unit 440 Member 341~343 is identical, and the setting unit 440 may include following subelement:First call unit 441, the second call unit 442 and ringing tone setting unit 443.
First call unit 441, for calling the music played.
After the music played described in judgement is local music, the music played described in calling is used for conduct The music file of ringing tone is set.
Second call unit 442, for the corresponding ringing tone of the icon being called to set according to the identification information of the icon Interface.
Specifically, call corresponding ringing tone that interface, such as user is set to trigger short message according to the icon of user's triggering Application icon then calls short message ringing tone to set interface.
Ringing tone setting unit 443 is answered for the music played to be set as described based on ringing tone setting interface With the ringing tone of program.
The different preset icons corresponds to different ringing tone setting interfaces, such as phone application icon corresponds to phone Ringing tone sets interface, and short message application icon corresponds to short message ringing tone setting interface, and clock application icon corresponds to the setting of clock ringing tone and connects Mouthful.In the present embodiment, the preset icon is short message application icon, corresponding short message ringing tone setting interface, by music text Part is set as the ringing tone of short message application, when mobile phone receives new message, plays the music file.
Download unit 450 if being unsatisfactory for preset condition for the music played, is playing described in download Simultaneously whether returning unit 430 meets preset condition to music with the music that judgement is playing.
In one embodiment, it is described to be unsatisfactory for the i.e. described music played of preset condition not such as in the present embodiment It is local music, therefore after it is not local music to detect the music played, the sound played described in download It is happy, it returns again to and continues to determine whether to meet preset condition.
The method of setting ringing tone provided in an embodiment of the present invention triggers preset icon by deliberate action, to playing sound Happy application sends the instruction of setting ringing tone, detects whether the music played is local music, if what terminal was playing Music then downloads the music for non-local music, and the music that terminal is playing is set as to the ringing tone of preset icon application, The setting ringing tone interactive step of user can be saved, Online Music can also be set to increase the interest of operation as the tinkle of bells, carry High user experience.
It is a kind of terminal schematic block diagram that another embodiment of the present invention provides referring to Figure 11.The present embodiment as depicted In terminal can include:One or more processors 801;One or more input equipments 802, one or more output equipments 803 and memory 804.Above-mentioned processor 801, input equipment 802, output equipment 803 and memory 804 are connected by bus 805 It connects.Memory 802 is for storing computer program, and the computer program includes program instruction, and processor 801 is deposited for performing The program instruction that reservoir 802 stores.
Wherein, processor 801 is configured for that described program instruction is called to perform:If detect the icon quilt of application program Deliberate action triggers, and judges whether the icon is preset icon;If the icon be preset icon, judge terminal currently whether Playing music;If the terminal is playing music, whether the music for judging playing meets preset condition;It is if described The music played meets preset condition, and the music played is set as to the ringing tone of the application program.
In one embodiment, such as in the present embodiment, processor 801 perform it is described above judge the icon whether be It is specifically performed during preset icon:Obtain the identification information for identifying the icon;Judge whether acquired identification information belongs to In the identification information corresponding to the preset icon;If acquired identification information belongs to the identification corresponding to the preset icon Information judges the icon for preset icon.
In one embodiment, such as in the present embodiment, processor 801 is described above by the sound played in execution Pleasure is set as specifically performing during the ringing tone of the application program:The music played described in calling;According to the knowledge of the icon Other information calls the corresponding ringing tone setting interface of the icon;The music played is set based on ringing tone setting interface Ringing tone for the application program.
In one embodiment, such as in the present embodiment, processor 801 is performing the music described above for judging playing Whether preset condition is met:Detect whether the music played is local music;If the music played is local Music, the music that is playing described in judgement meet preset condition.
In one embodiment, such as in the present embodiment, processor 801 specifically also performs:If the music played Be unsatisfactory for preset condition, download the music played and return the music that the judgement is playing whether meet it is default The step of condition.
It should be appreciated that in embodiments of the present invention, alleged processor 801 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 802 can include Trackpad, fingerprint and adopt sensor (for acquiring the finger print information of user and fingerprint Directional information), microphone etc., output equipment 803 can include display (LCD etc.), loud speaker etc..
The memory 804 can include read-only memory and random access memory, and to processor 801 provide instruction and Data.The a part of of memory 804 can also include nonvolatile RAM.For example, memory 804 can also be deposited Store up the information of device type.
In the specific implementation, processor 801, input equipment 802, the output equipment 803 described in the embodiment of the present invention can Perform the realization side described in the first embodiment and second embodiment of the method for setting ringing tone provided in an embodiment of the present invention Formula also can perform the realization method of the described terminal of the embodiment of the present invention, and details are not described herein.
A kind of computer readable storage medium, the computer-readable storage medium are provided in another embodiment of the invention Matter is stored with computer program, and the computer program includes program instruction, and described program instruction is realized when being executed by processor: If detecting, the icon of application program is predetermined action triggers, judges whether the icon is preset icon;If the icon is Preset icon, judges whether terminal is currently playing music;If the terminal is playing music, the sound played is judged Whether pleasure meets preset condition;If the music played meets preset condition, the music played is set Ringing tone for the application program.
In one embodiment, which, which is executed by processor, described judges have when whether the icon is preset icon Body is realized:Obtain the identification information for identifying the icon;Judge whether acquired identification information belongs to the default figure The corresponding identification information of mark;If acquired identification information belongs to the identification information corresponding to the preset icon, institute is judged Icon is stated as preset icon.
In one embodiment, which is executed by processor described is set as described by the music played It is implemented during the ringing tone of application program:The music played described in calling;Institute is called according to the identification information of the icon State the corresponding ringing tone setting interface of icon;The music played is set as described using journey based on ringing tone setting interface The ringing tone of sequence.
In one embodiment, which is executed by processor that described to judge whether the music that is playing meets default It is implemented during condition:Detect whether the music played is local music;If the music played is this rock noise Happy, the music played described in judgement meets preset condition.
In one embodiment, it is implemented when which is executed by processor:If the music played is not Meet preset condition, the music played described in download simultaneously returns to whether the music for judging playing meets default item The step of part.
The computer readable storage medium can be the internal storage unit of the terminal described in aforementioned any embodiment, example Such as the hard disk or memory of terminal.The computer readable storage medium can also be the External memory equipment of the terminal, such as The plug-in type hard disk being equipped in the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both The internal storage unit for including the terminal also includes External memory equipment.The computer readable storage medium is described for storing Other programs and data needed for computer program and the terminal.The computer readable storage medium can be also used for temporarily When store the data that has exported or will export.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein Member and algorithm steps can be realized with the combination of electronic hardware, computer software or the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple units or component can be tied It closes or is desirably integrated into another system or some features can be ignored or does not perform.In addition, shown or discussed phase Coupling, direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the embodiment of the present invention Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit is individually physically present or two or more units integrate in a unit.It is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (10)

  1. A kind of 1. method that ringing tone is set, which is characterized in that including:
    If detecting, the icon of application program is predetermined action triggers, judges whether the icon is preset icon;
    If the icon is preset icon, judge whether terminal is currently playing music;
    If the terminal is playing music, whether the music for judging playing meets preset condition;
    If the music played meets preset condition, the music played is set as the application program Ringing tone.
  2. 2. according to the method described in claim 1, it is characterized in that, described judge whether the icon is preset icon, including:
    Obtain the identification information for identifying the icon;
    Judge whether acquired identification information belongs to the identification information corresponding to the preset icon;
    If acquired identification information belongs to the identification information corresponding to the preset icon, judge the icon for default figure Mark.
  3. 3. according to the method described in claim 2, it is characterized in that, it is described by the music played be set as it is described should With the ringing tone of program, including:
    The music played described in calling;
    The corresponding ringing tone setting interface of the icon is called according to the identification information of the icon;
    The music played is set as to the ringing tone of the application program based on ringing tone setting interface.
  4. 4. according to the method described in claim 1, it is characterized in that, whether the music for judging playing meets default item Part, including:
    Detect whether the music played is local music;
    If the music played is local music, the music played described in judgement meets preset condition.
  5. 5. it according to the method described in claim 1, it is characterized in that, further includes:
    If the music played is unsatisfactory for preset condition, the music played described in download simultaneously returns to the judgement just Whether the music of broadcasting meets preset condition the step of.
  6. 6. according to the method described in claim 1, it is characterized in that, the preset icon includes:Phone application icon, short message should With icon and clock application icon.
  7. 7. according to the method described in claim 1, it is characterized in that, the deliberate action is double-clicks the application icon.
  8. A kind of 8. terminal, which is characterized in that the list including being used to perform the method as described in claim 1-7 any claims Member.
  9. 9. a kind of terminal, which is characterized in that the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein, the memory is used to store computer program, the computer Program includes program instruction, and the processor is configured for calling described program instruction, perform such as any one of claim 1-7 The method.
  10. 10. a kind of computer readable storage medium, which is characterized in that the computer storage media is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor perform such as right when being executed by a processor It is required that 1-7 any one of them methods.
CN201711427490.3A 2017-12-22 2017-12-22 A kind of method, terminal and computer readable storage medium that ringing tone is set Withdrawn CN108184016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711427490.3A CN108184016A (en) 2017-12-22 2017-12-22 A kind of method, terminal and computer readable storage medium that ringing tone is set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711427490.3A CN108184016A (en) 2017-12-22 2017-12-22 A kind of method, terminal and computer readable storage medium that ringing tone is set

Publications (1)

Publication Number Publication Date
CN108184016A true CN108184016A (en) 2018-06-19

Family

ID=62547534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711427490.3A Withdrawn CN108184016A (en) 2017-12-22 2017-12-22 A kind of method, terminal and computer readable storage medium that ringing tone is set

Country Status (1)

Country Link
CN (1) CN108184016A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049977A (en) * 2019-11-27 2020-04-21 维沃移动通信有限公司 Alarm clock reminding method and electronic equipment
CN114500728A (en) * 2020-11-13 2022-05-13 华为终端有限公司 Incoming call ringtone setting method, incoming call prompting method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123201A (en) * 2011-01-20 2011-07-13 深圳市五巨科技有限公司 Ringtone shearing method and device of mobile terminal
CN104850420A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Method for setting prompting tone and electronic equipment
CN105657171A (en) * 2016-01-13 2016-06-08 广东欧珀移动通信有限公司 Ring tone setting method and system
CN106888317A (en) * 2017-01-03 2017-06-23 努比亚技术有限公司 A kind of interaction processing method, device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123201A (en) * 2011-01-20 2011-07-13 深圳市五巨科技有限公司 Ringtone shearing method and device of mobile terminal
CN104850420A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Method for setting prompting tone and electronic equipment
CN105657171A (en) * 2016-01-13 2016-06-08 广东欧珀移动通信有限公司 Ring tone setting method and system
CN106888317A (en) * 2017-01-03 2017-06-23 努比亚技术有限公司 A kind of interaction processing method, device and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049977A (en) * 2019-11-27 2020-04-21 维沃移动通信有限公司 Alarm clock reminding method and electronic equipment
CN111049977B (en) * 2019-11-27 2021-09-28 维沃移动通信有限公司 Alarm clock reminding method and electronic equipment
CN114500728A (en) * 2020-11-13 2022-05-13 华为终端有限公司 Incoming call ringtone setting method, incoming call prompting method and electronic equipment
CN114500728B (en) * 2020-11-13 2023-07-18 华为终端有限公司 Incoming call bell setting method, incoming call prompting method and electronic equipment

Similar Documents

Publication Publication Date Title
CN106528745B (en) Method and device for recommending resources on mobile terminal and mobile terminal
CN107181858B (en) Method and terminal for displaying notification message
CN107733984A (en) A kind of method, terminal and computer-readable recording medium for pushing screen locking information
CN107846511A (en) A kind of method, terminal and computer-readable recording medium for accessing moving advertising
CN106341538B (en) A kind of method for pushing and mobile terminal of lyrics poster
CN107257417A (en) Message prompt method and terminal, computer installation and computer-readable recording medium
CN108170438A (en) A kind of application program automatic installation method, terminal and computer-readable medium
CN106156583A (en) A kind of method of speech unlocking and terminal
CN108270920A (en) A kind of wallpaper setting method, terminal and computer readable storage medium
CN107193598A (en) One kind application startup method, mobile terminal and computer-readable recording medium
CN107197082A (en) A kind of information prompting method and terminal
CN106453904A (en) Information reminding method and terminal
CN107704613A (en) A kind of approaches to IM, terminal and computer-readable recording medium
CN107729781A (en) The anti-lost method of mobile terminal, mobile terminal and computer-readable recording medium
CN106909366A (en) The method and device that a kind of widget shows
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
CN111596971B (en) Application cleaning method and device, storage medium and electronic equipment
CN107465818A (en) The method and terminal of a kind of virtual incoming call
CN108549518A (en) A kind of method, apparatus that music information is shown and terminal device
CN107463350A (en) A kind of footmark method of adjustment and terminal
CN108184016A (en) A kind of method, terminal and computer readable storage medium that ringing tone is set
CN106254677A (en) A kind of scene mode setting method and terminal
CN107391989A (en) Message treatment method, device, terminal and storage medium
CN106445283A (en) Emoticon acquisition method and terminal
CN108632461A (en) Method, apparatus, terminal and the computer readable storage medium of alarm clock calling

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20180619

WW01 Invention patent application withdrawn after publication