private void test() {
Cursor c = getContentResolver().query(Images.Thumbnails.EXTERNAL_CONTENT_URI, null, null, null, null);
for(int i = 0 ; i < c.getColumnCount() ; i++)
Log.v(tag, c.getColumnName(i));
if(c.moveToFirst()){
do{
StringBuffer sb = new StringBuffer();
for(int i = 0 ; i < c.getColumnCount() ; i++)
sb.append(c.getString(i)).append("/");
Log.v(tag, sb.toString());
}while(c.moveToNext());
}
Log.v(tag, "=====================================");
c = getContentResolver().query(Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null);
String[] fields = new String[c.getColumnCount()];
for(int i = 0 ; i < c.getColumnCount() ; i++) {
Log.v(tag, c.getColumnName(i));
fields[i] = c.getColumnName(i);
}
if(c.moveToFirst()){
do{
StringBuffer sb = new StringBuffer();
for(int i = 0 ; i < fields.length ; i++)
sb.append(c.getString(i)).append("/");
Log.v(tag, sb.toString());
}while(c.moveToNext());
}
}
Cursor c = getContentResolver().query(Images.Thumbnails.EXTERNAL_CONTENT_URI, null, null, null, null);
for(int i = 0 ; i < c.getColumnCount() ; i++)
Log.v(tag, c.getColumnName(i));
if(c.moveToFirst()){
do{
StringBuffer sb = new StringBuffer();
for(int i = 0 ; i < c.getColumnCount() ; i++)
sb.append(c.getString(i)).append("/");
Log.v(tag, sb.toString());
}while(c.moveToNext());
}
Log.v(tag, "=====================================");
c = getContentResolver().query(Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null);
String[] fields = new String[c.getColumnCount()];
for(int i = 0 ; i < c.getColumnCount() ; i++) {
Log.v(tag, c.getColumnName(i));
fields[i] = c.getColumnName(i);
}
if(c.moveToFirst()){
do{
StringBuffer sb = new StringBuffer();
for(int i = 0 ; i < fields.length ; i++)
sb.append(c.getString(i)).append("/");
Log.v(tag, sb.toString());
}while(c.moveToNext());
}
}

































최근 덧글