从互联网在Android应用程序下载专辑封面 [英] Download album art from internet in an android application
问题描述
我知道艺术家和TRACKNAME一首歌曲,但我不能确定什么样的服务或如何下载专辑封面的曲目。
I know the artist and trackname for a song, but I am unsure of what service or how to download album art for the track.
我相信iTunes和亚马逊都提供服务,但我不确定如何整合这些服务,任何链接或建议AP preciated。
I believe iTunes and Amazon both offer services but I am unsure of how to integrate these services, any links or suggestions are appreciated.
推荐答案
要使用亚马逊,你需要注册成为开发者为他们的公共Web服务。
To use Amazon you'll need to sign up as a developer for their public web services.
这主要是刚拿到,你需要,让你的电话到他们的Web服务API的访问密钥。
This is mainly just to get the access key that you'll need for making your calls to their web service API.
您需要做的使用艺术家和专辑名称的产品搜索,这将返回一个ASIN号。一旦你有一个号码,你可以建立的网址,以实际的专辑封面,即:
You'll need to do a product search using the artist and album name, this will return an ASIN number. Once you have that number you can build the URL to the actual album art, ie:
http://images.amazon.com/images/P/*ASIN goes here*.01._SCLZZZZZZZ_.jpg
这篇关于从互联网在Android应用程序下载专辑封面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!