在Kindle Fire的访问媒体库 [英] Accessing Media Library on Kindle fire

查看:255
本文介绍了在Kindle Fire的访问媒体库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些Android的code,可以让用户选择自己的设备上的歌曲:

 意向意图=新的Intent();
        intent.setAction(Intent.ACTION_PICK);
        intent.setData(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);        startActivityForResult(意向,0);

这适用于大多数Android设备很好,但不是的Kindle Fire。在Kindle上,该活动将不可用。是否有其他活动来试试呢?还是根本的Kindle不允许这些要求呢?


解决方案

  

在的Kindle,活动将不可用。


您正在请求音频。 Kindle Fire的HD不与音频播放应用程序交付,所以没有什么能够处理的意图 MediaStore.Video.Media.EXTERNAL_CONTENT_URI 的作品,路由你的个人视频应用程序。


  

是否有其他活动来试试呢?


这必须是由一些第三方应用程序支持的东西。

I have some Android code that lets a user choose a song on their device:

        Intent intent = new Intent();
        intent.setAction(Intent.ACTION_PICK);
        intent.setData(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);

        startActivityForResult(intent, 0);

This works fine on most Android devices, but not the Kindle Fire. On Kindle, the activity is not available. Is there another activity to try? Or does Kindle simply not allow these requests?

解决方案

On Kindle, the activity is not available.

You are requesting audio. The Kindle Fire HD does not ship with an audio playing app, so there is nothing that could handle that Intent. MediaStore.Video.Media.EXTERNAL_CONTENT_URI works, routing you to the "Personal Videos" app.

Is there another activity to try?

It would have to be something supported by some third-party app.

这篇关于在Kindle Fire的访问媒体库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆