coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 192 forks source link

How to get path of image and name of image #2

Closed loop closed 11 years ago

loop commented 11 years ago

Is there a way to get just the path to the image and the file name of the image?

coomar2841 commented 11 years ago

Yes. To get the image details after processing, there's a method in the corresponding listeners.

public void onImageChosen(ChosenImage image);

And from the ChoosenImage object, you can get all the other details. (Original path as well)

loop commented 11 years ago

All I see is getFilePathOriginal(). I need the the path to image and the file name. I don't actually want the /mydirectory/to/image/MyPhoto.jpg I need /mydirectory/to/image/ and MyPhoto.jpg separately.

coomar2841 commented 11 years ago

Nope. sorry. You can split of the original file path, if you want to. May be, in the future, I would be adding metadata about the actual file.