Issue
I am looking to pick from the images stored on my emulator SD card. For this project I am only concerned with the emulator, I don't have to make allowances for real world mobile devices.
I have copied images to my emulator SD card, but I do not see those images when I run the following code:
File folder = new File(Environment.getExternalStorageDirectory() + "/Barcodes");
Log.i(TAG, "folder is " + folder);
Uri folderURI = Uri.fromFile(folder);
imgPicker.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, folderURI);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, REQUEST_CODE);
}
});
Any Pointers? When I run the activity I do not see the photos that I've copied to my emulator file system.
Solution
Update to Platform Tools SDK fixed this issue
Answered By - AmericanCities
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.