A self-powered photodetector based on a ZnO nanoarrays/CdS/GaN structure with a responsivity as high as 176 mA W−1 at 300 nm.