Android的MediaStore的SQLite数据库的位置 [英] Android MediaStore sqlite db location

查看:1511
本文介绍了Android的MediaStore的SQLite数据库的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到使用的MediaStore SQLite数据库。据我了解,在MediaStore包含除其他默认音乐应用程序中定义的播放列表。其实,我想重复播放列表,但应用程序不允许的。不知怎的,我以为我可以解决这个问题,如果我只是能找到实际的数据库文件。但我得到了现在完全撇在一边,因为我只是找不到分贝。顺便说一句,我正在升级Froyo。

I am trying to find the sqlite database used by the MediaStore. As far as I understand, the MediaStore contains amongst others the playlists defined in the default Music app. I actually would like to duplicate a playlist, but the app does not allow that. Somehow I thought I could fix this if I just could find the actual db file. But I got completely sidetracked now, because I just cannot find the db. Btw, I am running FroYo.

推荐答案

有一个看<一href="http://android.git.kernel.org/?p=platform/packages/providers/MediaProvider.git;a=blob;f=src/com/android/providers/media/MediaProvider.java;h=33ff7dca3a951d8cbf8b2e340dd7b9c1d2d5d3ea;hb=HEAD">Android来源我们感兴趣的类似乎是 android.provider.MediaStore ,并在那里, getDatabaseForUri()方法似乎产生不同的数据库中为每个外部存储卡和一个名为 internal.db

Having a look at the Android source the class we're interested in seems to be android.provider.MediaStore and in there, the getDatabaseForUri() method seems generate a different database for each external storage card and one called internal.db.

所以,我觉得你感兴趣的文件是:

So I think the file you're interested in is:

/data/data/com.android.providers.media/databases/internal.db

不过,我该数据库的副本没有在Java源代码中使用的 audio_playlists 表,所以我不能确定这是正确的。

However, my copy of that database doesn't have the audio_playlists table used in the Java source so I'm not certain this is right.

这篇关于Android的MediaStore的SQLite数据库的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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