The files need to be stored on the external device if you want to recover them, but you can give it a try on the Internal Storage. Since the storage system is quite different, I believe that you will have small success rate if the program doesn't support EXT file system.
Attach the device, open the application and scan for deleted items.