Cursor android.content.ContentResolver.query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
这个selectionArgs只能写一个么??
这个selectionArgs只能写一个么??
解决方案 »
- android 4.0怎样实现开机自启动服务,没有activity 急!急!急!哪位大神帮帮忙,谢了
- 开发一个多功能android视频播放器需要设计哪些数据库表
- android 加密有人懂吗
- 关于android AsyncTask 上传图片的问题
- eclipse导入项目的问题
- 关于android 2.1源码中开机logo上闪动的光标
- Can the APP be system uid and sdcard_rw gid?
- 华为推送除了能帮助开发者解决技术问题,还有什么好处啊?
- 关于Android环境中进程间通信的问题
- 最美应用的界面怎么写,麻烦给点指导~
- handler.obtainMessage()
- 安卓调用地图
String[] projection = new String[] { "distinct "
+ MediaStore.Audio.Media.ARTIST ,MediaStore.Audio.Media._ID};
String audio_ids = category.toString().replace('[', ' ').replace(']', ' ');
String[] selectionArgs = new String[]{audio_ids};
ContentResolver resolver = mContext.getContentResolver();
Cursor c = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
projection, " _id = ?", selectionArgs,
MediaStore.Audio.Media.DEFAULT_SORT_ORDER);selectionArgs = 174, 175, 176, 177, 178, 179, 180这样一条都查询不出来。