2013. 5. 31. 17:09


Uri targetUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; 

 String targetDir = Environment.getExternalStorageDirectory().toString() + "/saturday9"; 


targetUri = targetUri.buildUpon().appendQueryParameter("bucketId",String.valueOf(targetDir.toLowerCase().hashCode())).build();


 Log.d("kth","targetUri : "+targetUri);

 Intent intent = new Intent(Intent.ACTION_VIEW, targetUri);

 startActivity(intent);



결과:

05-31 17:07:04.843: D/kth(14184): targetUri : content://media/external/images/media?bucketId=1443034118





Posted by hoonihoon