安卓+送作品+谷歌音乐测试版测试版、作品、音乐

由网友(爱哭但不会输)分享简介:我试图让一个作品设备同步的MP3与谷歌音乐测试版上。所以我使用游标来获取所有专辑IDS和尝试的标准方法比为每个记者的作品:I'm trying to get the artworks on a device that syncs mp3s with Google Music Beta. So I try the st...

我试图让一个作品设备同步的MP3与谷歌音乐测试版上。所以我使用游标来获取所有专辑IDS和尝试的标准方法比为每个记者的作品:

I'm trying to get the artworks on a device that syncs mp3s with Google Music Beta. So I try the standard approach using a cursor to get all the album IDS and than for each of them the correspondent artwork:

public void getAlbumIDS(){
    Cursor cur = mContentResolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,  new String [] {MediaStore.Audio.Media.ALBUM_ID}, null, null, null);
    startManagingCursor(cur);
    if (cur.getCount() > 0) {
        while (cur.moveToNext()) {
            int albumId = cur.getInt(cur.getColumnIndex(MediaStore.Audio.Media.ALBUM_ID));
            // Do stuff with albumId
        }
    }
    cur.close();
    stopManagingCursor(cur);
}

这个我应该得到的与设备同步的专辑所有的IDS,但cur.getCount()等于零。

with this I should get all the IDS of the albums synced with the device, but cur.getCount() is equal to zero.

我知道这是正确的方式来获取信息时的音乐存储在设备(其实在这种情况下,一切工作正常),但我越来越疯狂检索艺术品同步与谷歌音乐测试版...

I know that this is the right way to get info when music is stored in the device (in fact in that case everything works fine), but I'm getting crazy to retrieve artworks synced with Google Music Beta...

你能帮帮我吗?

推荐答案

我不知道是否有可能从谷歌音乐测试版访问歌曲或相关信息,该应用程序之外。

I don't know if it's possible to access songs or information about them from Google Music Beta outside of that app.

有人更了解比我也许可以提供一个解决方案,但我至少可以提供一些思路。即使有可能,我几乎可以肯定,你正在尝试的方式做到这一点,现在将无法工作。

Someone more knowledgeable than I might be able to offer a solution, but I can at least offer some thoughts. Even if it's possible, I'm almost positive that the way you are trying to do it right now won't work.

音乐测试做下载歌曲,并使其可脱机使用,但它并没有将它们存储在音乐的正常位置。如果有,那么其他音乐应用将指数的歌曲,能够发挥他们。不是这种情况,那么该歌曲必须存储在别处。我试图通过SD卡搜索查找音乐,但我还没有成功。

Music Beta does download songs and make them available for use offline, but it doesn't store them in the normal location for music. If it did, then other music apps would index those songs and be able to play them. This is not the case, so the songs must be stored elsewhere. I've tried searching through the SD card to find the music but I haven't had any success.

这是有道理的,当你想想看,因为谷歌不希望被别人开发的音乐播放器(亚马逊为例)从谷歌音乐测试版中的歌曲。

This makes sense when you think about it, because Google doesn't want music players developed by others (Amazon for instance) to play songs from Google Music Beta.

阅读全文

相关推荐

最新文章