A kind ofly on portable terminal, carry out the method that quick song is searched and downloaded
Technical field
The present invention relates to a kind of download of songs method, particularly a kind of on portable terminal the method for download song.
Background technology
Download of songs is current moving and the very common and useful business function of internet arena.The searching requirement that this business is provided by client according to the user finds the song that meets search condition to supply user's download in server Qu Ku.Modal example is the user imports singer or song at the terminal a name, and server finds this singer or song title pairing one first perhaps a series of songs to return to the user.
The traditional approach of looking for song and download song on the portable terminal, particularly mobile phone is through web browser input keyword visit music searching engine, obtains the result and selects for the user.The user clicks corresponding downloading page link entering and the last actual download address button of clicking comes download song.On portable terminal, because the restriction of terminal physical size, the efficient of input method is lower usually.The user can be very consuming time through keyboard or screen input one first complete song title, and because the phonetic input accounts for dominant position on mobile terminal input method, and it is very common that the user imports the situation of unisonance wrong word.Such as, being entered as " Kawasaki " to Wang Fei " legend ", this possibly directly cause server to search the song of wanting less than the user.Moreover the user does not confirm singer's name, still is " Fan Xiaoxuan " like " Fan Xiaoxuan ", searches " FXX " through the singer and just can filter out correct singer's name.And uncertain some song title full name of user sometimes still is " several hrs on the aircraft " like " on the aircraft several hours " of model tawny daylily dawn.Because the incorrect results abnormity or the mistake that will cause server to return of input.
Have a kind of karaoke chamber order programme in the market, it has adopted a kind of mode through the input first phonetic letter to retrieve corresponding song, and song information is to be built in the database of system.Want to look for the song of " legend " by name such as the user, the first letter of pinyin " CQ " through input " legend " on on-screen keyboard just can match all first letter of pinyin and select for the user with the result that " CQ " starts.But in the music player application scene in the Android intelligent mobile phone system, also there is not the realization of similar functions.And because the KTV order programme belongs to special-purpose order programme, on implementation, can not be applicable to the Android system, and also be not suitable for the characteristics of mobile phone in outward appearance and the operation.
In addition, the user looks for song when using the music software of android mobile phone at present, and searching song all is to travel through through web search and according to the results list that returns to find target song.It is this that return results is more consuming time back and forth through web search.So be necessary very much to develop song lookup method special-purpose on a suitable portable terminal, particularly smart mobile phone.
Summary of the invention
Technical problem to be solved by this invention provides a kind of efficient on portable terminal, at a high speed and the method for easy to operately search song and downloading.
A kind of method that quick song is searched and downloaded of on portable terminal, carrying out of the present invention, it may further comprise the steps:
1) let the user at first select query pattern through the UI interface; Promptly piece together inquiry or piece together inquiry according to singer's name head according to song title is first; If the user selects to piece together inquiry then directly get into step 7) according to song title is first, if the user selects to piece together inquiry then get into step 2 according to singer's name is first);
2) user imports singer's name first letter of pinyin or numeral search singer through clicking soft keyboard A-Z or 0-9;
3) client is searched local singer's database, matees the tabulation that obtains meeting the result according to first letter of pinyin, and gives the user through displaying interface; If the user wants to dwindle return results quantity, further input Pinyin initial, then client is returned step 3) and is continued to handle.
4) user comes traversing result through page turning up and down, selects to want the singer that looks for, clicks all songs that get into this singer;
5) client is tabulated according to all song polymerizations of from this singer's database, returning him and is presented to the user;
6) user's first letter of pinyin or the numeral that can further import song reduces the scope, and also can come traversing result through page turning up and down;
7) user is through clicking first letter of pinyin or the numeral that soft keyboard A-Z or 0-9 import song title; If the user wants to dwindle return results quantity, further the input Pinyin initial is come, and then returns step 7) and continues to handle; Otherwise
Directly jump to step 9;
8) the local song database of client query obtains meeting result's tabulation according to first letter of pinyin and numeral coupling, and passes through displaying interface and give the user If the user wants to dwindle return results quantity, further the input Pinyin initial is come, and then returns step 8) and continues to handle If the user selects to represent the singer's label among the result, then get into all song patterns of this singer, return step 5), otherwise get into step 9);
9) user comes traversing result through page turning up and down, finally finds desired song, finishes.
Tabulation in the said step 8) comprises the doublet of song title and corresponding singer's name.
The present invention compares following advantage with traditional approach:
1, the retrieval of song is in the prefabricated database in this locality, to inquire about, and does not need access websites and waits for the website feedback result, and reaction speed is very fast like this, and the user only need import initial just can obtain matching result immediately.
2, song is retrieved according to song title and singer's name different mode, so just makes things convenient for the user better to locate, and the song of wanting to search for all Wang Fei such as the user is then directly requested a song into from the singer and looked for the song of whole Wang Fei of being exactly that Wang Fei comes out.
3, song is searched for through first letter of pinyin, and the user can import complete Chinese character just can find the result.And the user can also be random go to browse relevant singer or song.For example, by the mode that song title is looked for song, user input " HKTK " can come out all different singer's versions " as boundless as the sea and the sky " or other song with this initial beginning.
4, the retrieval of song is with input dynamic change result, rather than the alphabetical point of being totally lost confirms that submission just can see the result, and the user just can inquire about very easily like this.
5, the downloading mode of song is become simply, the user need not come return results through import whole song Chinese names at network search engines, but directly through the mode of butt joint network engine, the song that lets the user click in the tabulation just can one-touch download.
Description of drawings
Fig. 1 is a flow chart of the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing the present invention is further described:
Fig. 1 is the flow chart of the embodiment of the invention, has used singer's name and song title to search for song, and client terminal local has singer's name database and the song database with singer's classification foundation by name.As shown in Figure 1, when the user prepares to search for title of the song that singer Wang Fei sings for the song of " legend ", carry out according to the following step:
1) client lets the user select to use which kind of search modes through the interface, promptly specifically is with title of the song way of search or singer's way of search.
For first kind of situation, the user selects with the title of the song way of search.Client lets user's input alphabet (or numeral) through soft keyboard, and when each user had imported a character, client was inquired about also return results from the song title database retrieval.Simultaneously, the inconvenience of experiencing for fear of the excessive user of causing of result data amount, n(n can dispose before restriction only represented) bar writes down to the user, and the user can be by last page or leaf, following all the other records of page operations traversal.Record is that the form with song title and singer's doublet provides; For example user's input " CQ " in this example; Query Database obtains: " helping "-" Zhao's biography ", " legend "-" Zhou Huajian ", " spring and autumn "-" Zhang Jingxuan "; " legend "-" Wang Fei " or the like tabulation, this list element is made up of song and singer.The user can directly select then search procedure end of song; Perhaps the user selects singer's list of songs that then the system searching song database is corresponding with this singer to return; Each element of this list of songs is song title only, and user such as aforementioned manner travel through, select through last page or leaf and nextpage.The user can also further filter through soft keyboard input " CQ " (first letter of pinyin of legend).Search procedure finishes after selecting song.
For second kind of situation, the user selects to search for the mode of singer's name.Client lets user's input alphabet (or numeral) through soft keyboard, and when each user had imported a character, client was inquired about also return results from the retrieval of singer's name database.Simultaneously, the inconvenience of experiencing for fear of the excessive user of causing of result data amount, n(n can dispose before restriction only represented) bar writes down to the user, and the user can be by last page or leaf, following all the other records of page operations traversal.The form of record is exactly each singer's full name, and the user selects can to let after " Wang Fei " the local song database of client query, return all list of songs of this singer, and shape is like Eyes On Me, and legend are if only the people is permanent or the like result.For fear of the excessive inconvenience that causes on the user experience of result data amount; Restriction only represents preceding n (n can dispose) bar and writes down to the user; The user can be through last page or leaf; Following all the other records of page operations traversal, the user can also further filter through soft keyboard input " CQ " (first letter of pinyin of legend) and reduce the scope." legend " of the song " Wang Fei " that the last selection of user inquires for, the song search procedure finishes.
Have following some details to need explanation:
1, song and singer's database are placed on cell-phone customer terminal this locality; Generally speaking depositing the common song clauses and subclauses in 100,000 first China and foreign countries in the database is enough as far as most users, and each record mainly comprises song title, song title first letter of pinyin; Singer's name and singer's name first letter of pinyin; Every record can not surpass 50 bytes, only needs the 5MB capacity if deposit with text, deposits with the form of database can not surpass 20M yet.And the general sd of android system card or memory size all are more than sufficient.Because the apk form of release process is the zip compression, so use this technology to make the program size increase of issue very limited (5M less than), this just lets large-scale consumer use becomes possibility.
2, the first letter of pinyin that passes through of singer and song matees, and case-insensitive in the time of has relatively been got rid of because the inconsistent result who causes of capital and small letter omits.
The above only is a preferred implementation of the present invention, should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention, can also make some improvement, and these improvement also should be regarded as protection scope of the present invention.